Dynamic URL Pattern

Splash Forums PrettyFaces Users Dynamic URL Pattern

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  andy_pretty 1 month, 2 weeks ago.

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

    andy_pretty
    Participant

    Can We build our own URL pattern from backend and assigned to a bean and get that in pretty face mappings.

    String urlpattern = “store/”+bean.getvalue1+”/”+bean.getvalue2+”/cat.xhtml”;

    bean.setUrlPattern(urlpattern);

    <url-mapping id=”sample”>
    <pattern>#{bean.urlPattern}</pattern>
    <view-id>/store/cat.xhtml</view-id>
    </url-mapping>

    Can we use this way.consider null check will be taken care.

    -Anand

    #27415

    PrettyFaces is now built on top of Rewrite. With Rewrite you can create your mapping rules programmatically. See the documentation for details:

    Rewrite

    #27416

    andy_pretty
    Participant

    Thank you for your link.I will look into this solution

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

You must be logged in to reply to this topic.

Comments are closed.