Craig McClanahan wrote:

On 8/22/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
Craig McClanahan wrote the following on 8/22/2005 12:50 PM:

It doesn't ... if you want to fire the standard request processing
lifecycle, you need to actually submit the request.  Using
<jsp:forward page="/foo.faces"/> will cause "/foo.jsp" to be rendered
(assuming you are using the standard extension mappings), entering the
JSF lifecycle at the Render Response phase.

What problem are you trying to solve with <jsp:forward> that can't be
solved a different way?
What I'm trying to figure out is the best way to handle setting up an
initial page when someone goes to the welcome page defined in web.xml
(ie index.jsp). What's the best way to handle this? On page 20 of Core
JSF they give the example of doing something like <jsp:forward
page="/index.faces"/> but I don't see how this would ever trigger a
method in my backing bean?


It won't.  Only a form submit will trigger those method calls.
Sorry to hi-jack this thread a bit, but I am confused. Can't the getter methods be enhanced to call the data population methods to do what Rick wants? By that I mean something like getList() containing a List which is populated by a call to, say, populateList(). Sort of:

public List getList() {
   List list = populateList();
   return list;
}

The getList would be invoked during the jsp:useBean wouldn't it?

I'm probably missing something obvious here, but this seems so much simpler.

-david-


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

Reply via email to