navigate to other page with same pattern

Splash Forums PrettyFaces Users navigate to other page with same pattern

This topic contains 2 replies, has 2 voices, and was last updated by  hairi11 3 months ago.

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

    hairi11
    Participant

    Hi.

    I’m trying to navigate to different view from the same context navigation.

    /app/search/#{code}
    /app/publication/search.xhtml

    /app/search/#{code}
    /app/journal/search.xhtml

    the different is on #{code}.

    if code is ‘P’ then should go to /app/publication/search.xhtml
    if code is ‘J’ then should go to /app/journal/search.xhtml

    Now its take the first one as default path.
    Even the code is ‘J’ it still go to /app/publication/search.xhtml

    How to achieve this?

    Thanks.

    /Hairi

    #27566

    You could use two different patterns:

    /app/search/P#{code}
    

    and

    /app/search/J#{code}
    
    #27567

    hairi11
    Participant

    thanks for the idea.

    its good if it can detect the url mapping using data to.

    Regards

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

You must be logged in to reply to this topic.

Comments are closed.