Startup with PrettyFaces

Splash Forums PrettyFaces Users Startup with PrettyFaces

This topic contains 5 replies, has 2 voices, and was last updated by  Christian Kaltepoth 8 years, 4 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #24857


    Hello everyone!

    I’m trying to use PrettyFaces into my jsf 2.2 web app.
    I configured PrettyFaces and it works but I’m not sure for the url configuration.

    Example: simple navigation from homepage to registration page using h:link


    <url-mapping id="goRegistrazionePretty">
        <pattern value="/registrazioneUtente" />
        <view-id value="/pages/homepage/registrazioneUtente.jsf" />


    <p:column rendered="#{!beanUtente.logged}">
        <p:outputLabel value="#{ApplResLbl.registrazioneLabel} "/>
        <h:link outcome="pretty:goRegistrazionePretty" value="#{ApplResLbl.registrazioneLink}" styleClass="gialloFont" title="#{ApplResLbl.registrazioneAlt}" />

    When I navigate by h:link I can see this strange url


    instead of the simple url like this


    So…how can I obtain a clear url without jffi and jftfdi id?

    Thanks in advance for any suggestions!



    Could you try this instead:

    <h:link outcome="/pages/homepage/registrazioneUtente.xhtml" value="click me" />

    Which version of PrettyFaces are you using?



    Hello Christian and thanks for your answer!
    I’m using prettyfaces-jsf2-3.3.3.jar for my web app.


    <h:link outcome="/pages/homepage/registrazioneUtente.xhtml" value="click me" />

    I’ve this new url:


    I can’t remove jffi and jftfdi from my query string….why?


    Weird. Could you try if the solution mentioned here works:

    Are you using any additional component libraries or something like this?



    Yes, I’m using primefaces-3.5.jar also!


    It’s really difficult to help you with this problem without a sample app that show this issue and allows us to do some debugging.

    Could you perhaps create a minimal sample app that reproduces this issue? You could use the Prettyfaces Maven Archetype I created some time ago:

    With this archetype you will get a minimal webapp with PrettyFaces already set up. With this it should be easy for you to add the corresponding code to reproduce this issue.

    BTW: The archetype is a bit old. So you will have to update the PrettyFaces version in the pom to 3.3.3 after the app was created.

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

The forum ‘PrettyFaces Users’ is closed to new topics and replies.

Comments are closed.