- I mainly use JSF at work
- Indeed.com showed a major drop in JSF jobs.
- There was a certain job that looked interesting and it wanted Spring experience
So, I figured no time like the present and on top of that it seems JSF 2.0 is going to address quite a few issues, so I will jump back into it then. What I like about Spring so far is it just seems a little more straight forward, especially since you use regular old html/jsp tags. Of course you can use JSF inside of Spring, but I have gotten to that yet.
As I have been learning Spring, I've been using the book "Expert Spring MVC and Web Flow" from Apress. It is a good book and if you have a general idea Spring and its concepts, I think it is better to start with it.
The Meat
I ran into an issue on storing the login info from the form bean (backing object) in the session, the book seemingly suggested method injection to tell the controller to get the backing object from the ApplicationContext. Well, before I read that part I remembered reading about Spring having web scoping for its beans. So, I add the bean to the spring xml file and then added a dependency in each appropriate controller, overrode the formBackingObject method, and it worked fine. This seems a lot easier than injecting a method.
Here are some reading assignments (more for me to store for future reference actually):
Form input vs button
Some nice firefox add-ons
Java Vs C vs interpreted langs
Rest Antipatterns
Something I want to do on the side
A little complaint about my homepage MSN. Why does MS feel they need to change the focus when you pull up msn.com. I open IE and start typing in the address bar and hit enter and before I realize it 1/2 the text I typed has went into the crappy MSN search box on the top of the page. UGHHHHHHH
0 comments:
Post a Comment