Adding Todo Lists (Handlers and the Service Layer) - ColdBox Series Part 8d

Now we are really getting into this ColdBox stuff. We've got a view set up, we've got some handlers, we've auto-wired our handlers, and we've added ColdSpring into our application. Now we can start to do stuff.

So where did we leave off last time? Thinking.... thinking... thinking... oh yeah.

Accepting user input

Before we went off on a tangent of setting up ColdSpring and Autowiring Handlers, we had two simple handler methods inside of the list.cfc handler. We had addList() and doAddList().

[More]

Adding Todo Lists (Autowiring our Handler) - ColdBox Series Part 8c

As Luis stated in the comments section of my last post, we need to set up autowiring in our handler component. This is really cool stuff. I did not do this the first time around because my post was getting to long and because I wanted to demonstrate both ways of doing it.

What is autowiring?

When you are using object factories (like Lightwire and ColdSpring) in your ColdBox applications, you can set up dependency injection for handlers, plugins and interceptors. This is done using the Autowire Interceptor.

[More]

Adding Todo Lists (Integrating ColdSpring into our Application) - ColdBox Series Part 8b

In the last post, we looked at how to create a view and how to use handlers to display that view and to receive user input from the view. Now we need to do something with that user input. Here is what we need to get done first:

  1. Create our todoService.cfc
  2. Set up ColdSpring to create our todoService object and inject its dependencies
  3. Instantiate our todoService object in our handlers so that we can start to do something useful

Wow! That's a lot. It may not seem like a lot, but it is. So let's get started. here is our doAddList() handler method so far.

[More]

Adding Todo Lists - ColdBox Series Part 8a

So we've set up our Coldbox Application, we've built our model, now we need to build some front-end pieces and handlers to work with our model through the service layer.

Today we will begin by creating a form and some handlers. In the next few posts we will look at creating the service layer, form validation, and persistence.

[More]

Setting up a ColdBox Application - ColdBox Series Part 2

I guess I am making this a series. Well, let's get started.

I am not going to start with the typical "What is a MVC Framework" or "ColdBox is..." kind of posts. For two reasons:

  1. No one wants that, we want to jump right into structure and code, right?
  2. You can already read those things:

In this series we are building a To-Do List application using ColdBox and ColdSpring.

[More]

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]

More Entries

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