curly braces + path param + regex

Splash Forums PrettyFaces Users curly braces + path param + regex

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

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

    Lynx6
    Participant

    Hi, I have a new problem. Check out the following pattern, appears to be correct but for some reason fails when I put the curly braces to limit the number of digits:

    <pattern value=”#{ /faqs(/indice/[0-9]{1,2})?/ menuController.faqsindice}/” />

    The full rule is:

    <url-mapping parentId=”servicios” id=”faqs”>

    <pattern value=”#{ /faqs(/indice/[0-9]{1,2})?/ menuController.faqsindice}/” />

    <view-id value=”/views/servicios/faqs.xhtml” />

    <action>#{menuController.navegacion}</action>

    </url-mapping>

    For example, the following URL should be correct, but it gives me error:

    http://localhost:8080/web/servicios/faqs/indice/21/

    When I use the following pattern is successful:

    <pattern value=”#{ /faqs(/indice/[0-9]+)?/ menuController.faqsindice}/” />

    Why is this happening? Please I need your help…

    #20760

    Hi Lynx, sorry you are having trouble. Could you post the error you are receiving? And also the version of PrettyFaces, and other technologies that you are using? Thanks.

    #20761

    Lynx6
    Participant

    It is strange… :S

    description: The server encountered an internal error () that prevented it from fulfilling this request.

    exception: java.io.FileNotFoundException: /servicios/faqs/indice/2/index.xhtml Not Found in ExternalContext as a Resource

    I’m using:

    Prettyfaces 3.2.0

    NetBeans 6.9.1

    JDK 1.6 update 23

    GlassFish 3.0.1

    JSF 2

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

You must be logged in to reply to this topic.

Comments are closed.