hi,

this is another possibility - the question is: is it really necessary for
solving the given scenario?
if his login scenario isn't just a virtual example i think "the easy" way is
enough.

maybe marc will provide some additional information about the use case/his
idea. so we don't have to guess the intention.

regards,
gerhard



2007/11/13, Rafa Pérez <[EMAIL PROTECTED]>:
>
> Hi,
>
> I suppose you mean doing something like:
>
> <tr:commandButton action="#{bean.someAction('parameter')}" />
>
> If so, in Seam there is a custom ELResolver that lets you pass parameters
> into action methods.
>
> HTH,
>
> - - Rafa
>
> On Nov 13, 2007 4:22 PM, Gerhard Petracek <[EMAIL PROTECTED]>
> wrote:
>
> > hello marc,
> >
> > i'm not sure if i got your question/idea... - why do you need a
> > (special) parameter to login/logout?
> > just a try to answer your question:
> > did you already consider to use simple navigation rules instead of
> > parameters?
> >
> > regards,
> > gerhard
> >
> >
> >
> > 2007/11/9, nikkomarc <[EMAIL PROTECTED]>:
> >
> > >
> > > Hi,
> > >
> > > In an action method, I can redirect to a different pass url parameters
> > > and
> > > redirect to a different url page as shown below:
> > >
> > >    public String login() {
> > >     //logic...
> > >
> > >                           try
> > >                           {
> > >                           String contextPath =
> > > eContext.getRequestContextPath();
> > >                           String servletPath =
> > > eContext.getRequestServletPath();
> > >                           String viewId = context.getViewRoot
> > > ().getViewId();
> > >                           System.out.println(contextPath +
> > > "/home.jsf?actionType=logout");
> > >                           
> > > eContext.redirect(eContext.encodeActionURL(contextPath
> > > +
> > > "/home.jsf?actionType=logout"));
> > >                           }
> > >                           catch (Exception e)
> > >                           {
> > >
> > >                           }
> > >                         return null;
> > >         }
> > >
> > > However, I'd like to do the same thing but use the jsf mechanism.  How
> > > can I
> > > pass url parameters in to another page using the jsf framework ?
> > >
> > > Thanks,
> > >
> > > Marc
> > > --
> > > View this message in context:
> > > http://www.nabble.com/passing-url-parameters-in-jsf-action-method-tf4774747.html#a13659062
> > > Sent from the MyFaces - Users mailing list archive at Nabble.com.
> > >
> > >
> >
> >
> > --
> >
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
>
>
>


-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to