Method not found

Splash Forums PrettyFaces Users Method not found


This topic contains 1 reply, has 2 voices, and was last updated by  Christian Kaltepoth 7 years, 12 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #25797


    I have the configuration seen below – my problem is that I sometimes get a ‘Method not found’. My method is declared with ‘id’ as a long value – but I see that pretty faces tries to call it with the parameter as a string value? How can I ensure that my method will be called with a long value rather than a string?

    The parameter in my url is always a number and can without problem be casted to a long.

    Thanks in advance for any help 🙂

    ` <url-mapping id=”myList”>
    <pattern value=”/list/#{ id }” />
    <view-id value=”/pages/List.xhtml” />


    With this configuration PrettyFaces will simply convert the id to a query parameter. And query parameters are always strings. So PrettyFaces isn’t (and cannot) do any conversion here.

    Which version of PrettyFaces are you using? And could you post the exact error you are getting?

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

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

Comments are closed.