This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
John it isn't that bad. You can call a JSF and use GET.
Suppose I want to call a page with eventID=1234 and the jsp file is init.jsp then
Will do the job. Just add the code below the taglib declaration in your JSP.
Now suppose I put a welcome declaration as index.jsp then write this and only this in the index.jsp file
Then you can call
And get the same result. For domain I mean the URL with or without 8080 depending on your config.
Now the handy thing about this is that if the eventID isn't set the eventID setter isn't called. So this gets really interesting for initialization purposes. If my faces is called through "GET" with a valid eventID then the eventID setter is called and I can do initialization steps. On all further requests to the faces the GET params are stripped so initialization is automatically skipped.
But yes JSF still gives me the "oh thats they way they wanted this done, hmmm"