Hi !
Take a look here :
http://blogs.nuxeo.com/sections/blogs/anahide_tchertchian/2007_09_04_how-to-invoke-method-expressions-with-parameters-in-jsf
On 11/13/07, Rafa Pérez <[EMAIL PROTECTED]> wrote:
> 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
>
>