[solved] problem composing pattern

Splash Forums PrettyFaces Users [solved] problem composing pattern

Tagged: ,

This topic contains 2 replies, has 2 voices, and was last updated by  danielsudpr 7 years, 1 month ago.

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

    danielsudpr
    Participant

    I’ve tried to use a pattern like this:

    <url-mapping id=”home-2″>

    <pattern value=”/home/new” />

    <view-id>subsystems/comum/pages/home.xhtml</view-id>

    </url-mapping>

    but for some reason I getting an error, any ideas?

    PS: the error is…

    javax.servlet.ServletException: javax.servlet.ServletException: java.io.FileNotFoundException: /home/subsystems/comum/pages/home.xhtml Not Found in ExternalContext as a Resource

    #20169

    Seems like your view ID is not correct. Try adding a “/” in front of the view id:

    /subsystems/comum/pages/home.xhtml

    Maybe you will also have to replace xhtml by jsf. But this depends on the configuration of your FacesServlet.

    /subsystems/comum/pages/home.jsf

    #20170

    danielsudpr
    Participant

    Thank you chkal,

    I’ve just place another / and it worked perfectly!

    And you were right, the .xhtml was the way I mapped the Faces Servlet.

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

You must be logged in to reply to this topic.

Comments are closed.