You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Stas Ostapenko <st...@gmail.com> on 2007/10/30 14:51:06 UTC
Redirect to URL with param from
Hi !
I want to implement such kind of functionality :
<navigation-rule>
<from-view-id>/add.jsp</from-view-id>
<navigation-case>
<from-outcome>added</from-outcome>
<to-view-id>/view.jsf?myParam=#{myManagedBean.id}</to-view-id>
<redirect/>
</navigation-case>
</navigation-rule>
Actually, I want to redirect from navigation-case to URL with param which is
a property of a managed bean. How it could be implemented ? Any suggestions
and/or examples are highly welcome.
Re: Redirect to URL with param from
Posted by Andrew Robinson <an...@gmail.com>.
JBoss Seam does this
On 10/30/07, Stas Ostapenko <st...@gmail.com> wrote:
> Hi !
>
> I want to implement such kind of functionality :
>
> <navigation-rule>
> <from-view-id>/add.jsp</from-view-id>
> <navigation-case>
> <from-outcome>added</from-outcome>
>
> <to-view-id>/view.jsf?myParam=#{myManagedBean.id}</to-view-id>
> <redirect/>
> </navigation-case>
> </navigation-rule>
>
> Actually, I want to redirect from navigation-case to URL with param which is
> a property of a managed bean. How it could be implemented ? Any suggestions
> and/or examples are highly welcome.
>
Re: Redirect to URL with param from
Posted by Matthias Wessendorf <ma...@apache.org>.
good candidate, indeed.
-M
On 10/30/07, Mario Ivankovits <ma...@ops.co.at> wrote:
> Hi!
> > <navigation-case>
> > <from-outcome>added</from-outcome>
> > <to-view-id>/view.jsf?myParam=#{myManagedBean.id}</to-view-id>
> > <redirect/>
> Have a look at MyFaces-Orchestra. Especially at urlParamNav package [1]
> to get an idea how this can be done.
>
> I hope we can provide an implementation without Orchestra in the
> upcoming MyFaces Commons project soon.
>
> Ciao,
> Mario
>
>
> [1]
> http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/urlParamNav/
>
>
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org
Re: Redirect to URL with param from
Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi!
> <navigation-case>
> <from-outcome>added</from-outcome>
> <to-view-id>/view.jsf?myParam=#{myManagedBean.id}</to-view-id>
> <redirect/>
Have a look at MyFaces-Orchestra. Especially at urlParamNav package [1]
to get an idea how this can be done.
I hope we can provide an implementation without Orchestra in the
upcoming MyFaces Commons project soon.
Ciao,
Mario
[1]
http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/urlParamNav/