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 10 years, 11 months ago.

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


    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” />



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


    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…


    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.



    It is strange… :S

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

    exception: /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)

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

Comments are closed.