Ah, I was barking up the wrong tree again :)

Thanks for the suggestion.  I do have a messages component on my page
and I'm not seeing any errors.  However, I have not implemented a
backing bean for this first page (no real need for it yet) so I am
seeing the corresponding warnings in the console.  That wouldn't play
any part would it?

Also, I do have many navigation commandLinks with the immediate
attribute set to true in order to bypass the required fields in the
login section of the page.  I've read in some posts that it might be
desirable to set up the navigation as a result of ActionEvent rather
than the action.  Is that true, or am I misinterpreting what I've read?

Thanks again!


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig
McClanahan
Sent: Tuesday, March 28, 2006 4:04 PM
To: Struts Users Mailing List
Subject: Re: [Shale] Getting the JSF Session Started

On 3/28/06, James Reynolds <[EMAIL PROTECTED]> wrote:
>
>
> I'm having to click twice to get a session started.  I based my app on

> the Shale-blank code, which includes an index.jsp file which contains 
> a <jsp:forward> tag to "welcome.jsf" to, as I understand it, get a 
> session started in the framework.


JSF itself doesn't start the session -- in this particular application,
the session is created as a side effect of executing the index.jsp page
... JSP pages always create a session (if it does not exist) unless you
declare that you do not want one.

So why the forward in this case?  Because some containers do not
correctly support a welcome file name of "welcome.jsf" where there is no
actual resource in the webapp at that location.

However, I still need to click twice on command buttons or command links
> to get any action.  Should I be using a more thorough method to ensure

> a session begins?


Without seeing your code, it's difficult to determine what might be
causing the behavior you are seeing, but it seems unlikely to me that
session existence has an impact.  One thing to check, though, is if your
page is triggering a validation error somehow -- unless you have an
<h:message> or <h:messages> component on your page, to show the messages
when the page gets redisplayed, this can be a bit puzzling to JSF
newcomers.

Thanks


Craig


---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to