dev@jsftemplating.java.net

Re: JSFTemplating: Comments on https://jsftemplating.dev.java.net/tutorials/setup.html

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Fri, 06 Oct 2006 17:40:21 -0700

Chris Kutler wrote:
> Hello,
>
> Comments on https://jsftemplating.dev.java.net/tutorials/setup.html
>
> No need to reply. These are just questions that went thru my head as I
> was doing the setup.
>
> About the web.xml:
>
> It has the following entry. Is this meant to imply that the state
> saving method must be client in order for JSFTemplating to work.
>
> <context-param>
> <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> <param-value>client</param-value>
> </context-param>
Thanks for pointing this out! Nope, it's not required. In the past
(when I was using JSF 1.1) my experience was that during development
client-side state saving was more developer-friendly. Namely the View
would sometimes be remembered in session causing updates not to be seen
-- I believe all these issues are now fixed in JSF (not sure which
versions -- 1.2 works well though).
> The welcome file is set to index.jsf, which is odd because the setup
> instructions do not use an index.jsf, but a hello.jsf instead. I tried
> it with the welcome file set to hello.jsf and it works fine. Is this a
> typo or is there some reason to set the welcome file to index.jsf
Thanks! This is a typo (cut'n pasted from an existing web.xml). I've
fixed this error and removed the state-saving one from above. I added
the "com.sun.jsftemplating.DEBUG" flag, though.
> I am experimenting using this from Java Studio Creator IDE. My one
> bump so far:
>
> o The IDE keeps overwriting the <welcome-file> tag. Sometimes I can
> trick it by setting the web.xml in the build directory. So, for
> experimental apps, I am using Page1.jsp as my start page and I have a
> hyperlink on that page that goes to hello.jsf, or whatever.

I'm very curious how this works out for you... I haven't tried to do
this. So are you using Creator to create the Navigation rules? I'm not
sure if Creator will recognize the .jsf pages, so that may not work...
it's on my todo list talk to Craig about Creator's strategy in this area...

Thanks for the feedback!

Ken