Pretty faces action method should tigger first.

Splash Forums PrettyFaces Users Pretty faces action method should tigger first.

This topic contains 2 replies, has 2 voices, and was last updated by  jvr 1 year, 2 months ago.

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

    jvr
    Participant

    IN preetty faces action method should tigger first and then after setter method shhould be called.
    I am using JSF2.
    Iis it possible.?
    Any one could you please help me.
    <url-mapping id=”objectlist”>
    <pattern> /room/list/#{room.type}</pattern>
    <query-param decode=”true” name=”clear”>#{room.num}</query-param>
    <view-id> /room/listview/list.xhtml </view-id>
    <action phaseId=”RENDER_RESPONSE”> #{roomsviewBean.prepareRoomsView} </action>
    </url-mapping>

    Action method:

    public String prepareRoomsView(){
    }

    // setter

    public void setNum(String num){
    this.num = num;
    }

    • This topic was modified 1 year, 2 months ago by  jvr.
    #27207

    No, I don’t think that this is possible. The basic idea of PrettyFaces is to inject query parameters “as soon as possible”.

    I’m curious. Why do you need to call the setter after the action. That’s a very uncommon requirement.

    #27208

    jvr
    Participant

    Thank you, Christian.

    For the book markable url.
    I resolved this issue.
    Thanks

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

You must be logged in to reply to this topic.

Comments are closed.