Actions and parameters defined in pretty-config.xml invoked twice

Splash Forums PrettyFaces Users Actions and parameters defined in pretty-config.xml invoked twice

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

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

    Hi,

    I have a really strange problem with invoking of actions or parameters in beans declared in pretty-config.xml

    <url-mapping id=”category”>

    <pattern value=”/#{localizationBean.countryISO}/#{localizationBean.language}/category/#{pageBean.virtualPageId}/#{pageBean.categoryId}” />

    <view-id>/pages/content_page.xhtml?pageId=products_productList

    </view-id>

    <action>#{productListBean.setup()}</action>

    </url-mapping>

    This is one example of url mapping in this file. All setters for the parameters in the pattern are called twice as well as the defined action.

    It is a case for all url mappings defined in the pretty-config.xml.

    Thanks and Regards,

    Frosina

    #23204

    Do you deploy to a Servlet 3.0 compatible container? And do you have the PrettyFilter configured in your web.xml? If so, could you post the relevant part?

    #23205

    My servlet version is 2.4 (tomcat version 6.x). I just notice that I have two prettyphase listeners registered on phase ANY

    So both of them make this actions to execute twice.

    Do you know why I get 2 pretty phase listeners registered?

    #23206

    Did you manually add the PrettyPhaseListener to your faces-config.xml? If so, I think that you can remove it, because the JSF implementation will pick up the listener automatically.

    #23207

    I had 2 jars of pretty-faces in different kind of sub-project on classpath, so that is the reason why I had the listener was invoked twice.

    Thanks.

    #23208

    Nice to hear that you fixed your problem. :)

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

You must be logged in to reply to this topic.

Comments are closed.