Building an Application with ColdBox and ColdSpring - Part 1

I have begun putting together an application to build using ColdBox and ColdSpring. I am doing this to demonstrate how I have been doing this to solicit feedback from the experts to see if I am making any huge or stupid mistakes and to show some new comers to OO how to build an Application using OO principles and tools. I am hoping that my learning experience and blogging can help others learn these concepts too.

As I said before, I do not consider myself an expert in Object-Orient programming or in ColdBox/ColdSpring, but I feel I know enough to demonstrate these things at a basic level. I am counting on the true experts to keep me honest.

[More]

Blogging My Experiences with ColdBox

So a week, or so, ago I suggested I might start blogging about ColdBox and my experiences with it. I got a pretty good response, so I am going to go with it.

I am not sure yet what this is going to turn into. Whether it will be a few blog posts, or a series, or just what, is unknown. For now I am thinking of just creating a new, simple application and walking through the steps that I would take build it. Not too dissimilar from what Ben Nadel is doing with his OOPhoto project. But mine will be focused on using ColdBox to build the application.

[More]

Form Handling and Validation with ColdBox, ColdSpring, and Transfer (Part 3)

This post is a continuation of another post where I am discussing form handling and validation.

Please see part 2 before you read this post.

Now, and this is where things get interesting, I call the validate() method from the TransferObject "itemBean". What you say? validate() method? There is not validate() method in a TransferObject.

I used a Transfer decorator to add a validate() method to my itemBean. I also added a populate() method. Here, have a look:

[More]

Form Handling and Validation with ColdBox, ColdSpring, and Transfer (Part 2)

This post is a continuation of another post where I am discussing form handling and validation.

Please see part 1 before you read this post.

So, after my user enters data into the form, they will hit the add/update button and the form will get posted to the next event handler, called items.editPost().

[More]

Form Handling and Validation with ColdBox, ColdSpring, and Transfer (Part 1)

The last time I blogged about this I got some great feedback, so I have gone back to it again and I am trying something new that combines some of the advice I have received from that post, and some advice from Brian Kotek.

[More]

MVC Form Handling with ColdBox, ColdSpring, and Transfer. Does this seem right?

So I have been working on my first ColdBox application the last couple of week, and one of the things I have been struggling with is Form Handling and Validation. I have not been struggling because these concepts are difficult, but with not knowing how they should be implemented in ColdBox or any other MVC framework.

The heart of my question is, when I want to display a form with values pre-populated (like when a user clicks on an 'edit' button for page in a CMS), do I pass the whole bean to the view for insertion into the input tags using getter and setter methods, or do I use the getter and setter methods in the controller to insert the values into the event/request context object and then using the events getValue and setValue() method in the view?

[More]

Some of My Questions about Object-Orient Programming with ColdFusion

Wow. Some days I feel like I am just barely treading water on this Object-Oriented Stuff. Today is one of those days. I go to do a simple search on some concept in OO and I end up spending an hour and a half reading posts from all of these frakking geniuses

that make me feel dumber than a bag of hair.

I want to ask questions, but three things stand in my way.

  1. I don't want to bombard one or two people with all of my questions
  2. If I email one or two people, I don't want them to feel obligated to answer me
  3. It's hard to ask a question when I don't know all the terminology and I need to provide a huge example of what I am doing

[More]

MVC + IoC + ORM = Amazing learning experience and a lot of fun

The next few posts in my security series will be delayed. I have been busy with some other projects, as you are about to read. I hope to have them out by the end of this week, or early next week.

So my journey into the world of Object-Oriented Programming has begun, and I am really excited about it. It is definitely a different way of thinking about programming. So far there are things that I like, things that I really like, and things that will take getting used to. There has not been a single thing that has made me say that I dislike OO (so far).

[More]

BlogCFC was created by Raymond Camden. This blog is running version 5.9.1. Contact Blog Owner