use non-displaying params

Splash Forums PrettyFaces Users use non-displaying params

This topic contains 1 reply, has 2 voices, and was last updated by  Christian Kaltepoth 5 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18102

    jenny
    Participant

    hi all,

    my pattern is this:

    <url-mapping>

    <pattern value=”/page/#{name}” />

    <view-id>/page.jsf</view-id>

    </url-mapping>

    i have table like that:

    columns: id, name(unique), pageName

    records: 1, exampleName , page.jsf

    2, deleteName , arcieve.jsf

    Now, when i wrote “example.com/page/exampleName”, it refers page.jsf. And if i write “example.com/page/deleteName”, it refers page.jsf. But i want it to refer archieve.jsf

    I want to evaluate pageName attribute of related record.

    If i wrote example.com/page/exampleName, i want to look that entity’s pageName attribute and refer to it.

    If pageName is page.jsf, it will refer to page.jsf. If it is archive.jsf, it will redirect archive.jsf.

    Is there any solution?

    Thanks,

    Regards.

    #21722

    You can achieve something like this using dynaviews:

    http://ocpsoft.com/docs/prettyfaces/3.3.2/en-US/html/Configuration.html#config.dynaview

    But please make sure to use the latest version of PrettyFaces because the latest releases contain some important bugfixes for dynaview.

    I hope this helps

    Christian

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

You must be logged in to reply to this topic.

Comments are closed.