Re: jsf analogy to struts action

2005-12-26 Thread tony kerz
thanks for the suggestions. - i don't think i need any jsf facilities during processing, so your first suggestion would be most pragmatic. - just in case i end up needing to go the second route though, for this or something else, how does one call the standard navigation handler manually? -

Re: jsf analogy to struts action

2005-12-26 Thread Craig McClanahan
On 12/26/05, tony kerz [EMAIL PROTECTED] wrote: thanks for the suggestions.- i don't think i need any jsf facilities during processing,so your first suggestion would be most pragmatic.- just in case i end up needing to go the second route though, for this or something else, how does one call the

Re: jsf analogy to struts action

2005-12-22 Thread Tony Kerz
thanks craig, you bring good points about confusion being proportional to the number of technologies applied. in this particular case, the mechanism i'm trying to construct is a relatively familiar one where a user is confirming a registration to a website by clicking a url link in a

Re: jsf analogy to struts action

2005-12-22 Thread Craig McClanahan
On 12/22/05, Tony Kerz [EMAIL PROTECTED] wrote: thanks craig,you bring good points about confusion being proportional to the numberof technologies applied.in this particular case, the mechanism i'm trying to construct is arelatively familiar one where a user is confirming a registration to a

Re: jsf analogy to struts action

2005-12-21 Thread Craig McClanahan
On 12/21/05, tony kerz [EMAIL PROTECTED] wrote: right, i'm looking for the process to be initiated by a url punched intoa browser, not a user clicking a h:commandButton or h:commandLinkcontrol.as i can have a url drop directly into an action and use mapping.findForward(outcome) to use the struts

jsf analogy to struts action

2005-12-20 Thread tony kerz
at the risk of asking a stupid question: if i wanted to have a user hit a url and have some processing take place which then results in one of several available pages being displayed, in struts i could easily accomplish that with an action class. what would be the appropriate way to accomplish

Re: jsf analogy to struts action

2005-12-20 Thread Mike Kienenberger
UICommand action=#{bean.process} // On bean public String process() { // process if (result1) return processResult1; if (result2) return processResult2; if (result3) return processResult3; if (result4) return processResult4; return processResultDefault; }

Re: jsf analogy to struts action

2005-12-20 Thread Laurie Harper
But what about if you need to do this for the initial page? (i.e. you don't have a page to put a command link on...) I want this to be able to have bookmarkable URLs in my app, where different URLs may map to the same view (JSP) -- for example, URLs /app/users/tom and /app/users/jim would

Re: jsf analogy to struts action

2005-12-20 Thread Laurie Harper
Oops, spoke too soon... the trouble with the servlet approach is that to-view-id in faces-config isn't a context relative path, it's relative to the Faces servlet... So I guess it's time to dig into custom nav handlers. L. Laurie Harper wrote: But what about if you need to do this for the

Re: jsf analogy to struts action

2005-12-20 Thread Craig McClanahan
On 12/20/05, Laurie Harper [EMAIL PROTECTED] wrote: Oops, spoke too soon... the trouble with the servlet approach is thatto-view-id in faces-config isn't a context relative path, it's relativeto the Faces servlet... So I guess it's time to dig into custom navhandlers. The interpretation of a view