Re: [JSF] using a jsp:forward to get to backing bean method?

2005-08-25 Thread netsql
Rick, consider trying Faclets (from Java.net) w/ Struts Ti (from Dev List) combo; that may be more powerfull and more teachable. .V Rick Reumann wrote: David Haynes wrote the following on 8/22/2005 4:19 PM: I'm just fumbling my way through like most others... Trust me you don't want me

Re: [JSF] using a jsp:forward to get to backing bean method?

2005-08-22 Thread Craig McClanahan
On 8/22/05, Rick Reumann [EMAIL PROTECTED] wrote: I'm looking in my Core JSF book and I can seem to find out how to do something that I would think would/should be pretty simple... How do I use a jsp:forward to trigger a method in my backing bean? jsp:forward

Re: [JSF] using a jsp:forward to get to backing bean method?

2005-08-22 Thread Rick Reumann
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

Re: [JSF] using a jsp:forward to get to backing bean method?

2005-08-22 Thread Michael Jouravlev
David Geary advised me to use rendered attribute of view of subview, like this: f:subview id=step1 rendered=#{wizardBean.step1} You can stick whatever code you want into the method, and simply return true. I don't know is there a better way to do this. Michael. On 8/22/05, Rick Reumann [EMAIL

Re: [JSF] using a jsp:forward to get to backing bean method?

2005-08-22 Thread Rick Reumann
Michael Jouravlev wrote the following on 8/22/2005 2:41 PM: David Geary advised me to use rendered attribute of view of subview, like this: f:subview id=step1 rendered=#{wizardBean.step1} You can stick whatever code you want into the method, and simply return true. I don't know is there a

Re: [JSF] using a jsp:forward to get to backing bean method?

2005-08-22 Thread David Haynes
Rick Reumann 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

Re: [JSF] using a jsp:forward to get to backing bean method?

2005-08-22 Thread Craig McClanahan
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

Re: [JSF] using a jsp:forward to get to backing bean method?

2005-08-22 Thread David Haynes
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

Re: [JSF] using a jsp:forward to get to backing bean method?

2005-08-22 Thread Rick Reumann
Craig McClanahan wrote the following on 8/22/2005 3:38 PM: Grab Shale. Make your backing bean implement ViewController. Stick the list setup logic in the prerender() method. Smile, knowing that this technique works not only for the welcome page, but for *any* page to which you navigate (in

Re: [JSF] using a jsp:forward to get to backing bean method?

2005-08-22 Thread Rick Reumann
David Haynes wrote the following on 8/22/2005 3:57 PM: 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. I would think that I

Re: [JSF] using a jsp:forward to get to backing bean method?

2005-08-22 Thread David Haynes
Rick Reumann wrote: David Haynes wrote the following on 8/22/2005 3:57 PM: 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.

Re: [JSF] using a jsp:forward to get to backing bean method?

2005-08-22 Thread Rick Reumann
David Haynes wrote the following on 8/22/2005 4:19 PM: I'm just fumbling my way through like most others... I can relate. Trust me you don't want me as your 'JSF running back' right now in JSF Fantasy Football. I've been fumbling in all my pre-season attempts at carrying the ball:) I think

Re: [JSF] using a jsp:forward to get to backing bean method?

2005-08-22 Thread Craig McClanahan
On 8/22/05, David Haynes [EMAIL PROTECTED] wrote: 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

Re: [JSF] using a jsp:forward to get to backing bean method?

2005-08-22 Thread Rick Reumann
Wendy Smoak wrote the following on 8/22/2005 4:28 PM: Consider that Struts added services on top of Servlets and JSP... and now Shale is adding services on top of JSF. True. I keep forgetting the separation. I keep thinking JSF is to servlets/JSP as Struts is to servlets/JSP but I remember