Reply To: hot to migrate construction pretty:mappingId to rewrite

Splash Forums Rewrite Users hot to migrate construction pretty:mappingId to rewrite Reply To: hot to migrate construction pretty:mappingId to rewrite

#25132

Unfortunately you cannot currently navigate from JSF action methods using something like mapping IDs. Instead you have to use the standard JSF implicit navigation and do something like this:

<p:commandButton action=”/some-view.xhtml?faces-redirect=true”>

If you do navigation from withing an action method, you can use the Navigate class instead, which supports some more type-safety.

See “Programmatic navigation” here:

http://ocpsoft.org/rewrite/docs/migration/prettyfaces3