hot to migrate construction pretty:mappingId to rewrite

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

This topic contains 2 replies, has 3 voices, and was last updated by  Lincoln Baxter III 2 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25131

    kanikman
    Participant

    <p:commandButton action=”pretty:someMappingId”>

    How i can do it with 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

    #25133

    We chose not to integrate quite so much with JSF Navigation in Rewrite (you can still use the rewrite-config-prettyfaces module if you want that.) The reason for this is because JSF navigation has actually improved quite a big in 2.0, and there is not as much need to provide a competing navigation feature that leads to more complexity (if people are doing navigation both ways.) So to keep it simple, we opted out 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Comments are closed.