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?


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


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).


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