-
1. Re: reRender called before actionListener
ilya_shaikovsky Oct 13, 2008 2:59 PM (in response to hemantmahidhara)It's impossible that reRender is called after actionListener.. Because reRender is a client side JS operation which takes place after responce returned to the client(after all the phases on server side finished) :)
Seems you meant something else? Probably you means that some wrong data fetched? Describe please more presice the case. -
2. Re: reRender called before actionListener
hemantmahidhara Oct 13, 2008 3:34 PM (in response to hemantmahidhara)Scenario 1: detailsPanel only has h:outputText elements in it that get data from the displayBean.
When I click on the a4j:commandLink the actionListener gets called on the bean. Then the reRender gets called (i am assuming), instantiates the displayBean and populates the detailsPanel. -- this is correct behaviour.
Scenario 2: detailsPanel has a rich:dataTable in it that gets data from the displayBean.
When I click on the a4j:commandLink, first the displayBean gets instantiated, populates the displayPanel and then the actionListener gets called on the bean. -- this is problematic behaviour -
3. Re: reRender called before actionListener
hemantmahidhara Oct 13, 2008 3:37 PM (in response to hemantmahidhara)Let me try to explain again:
Scenario 1: detailsPanel only has h:outputText elements in it that get data from the displayBean.
When I click on the a4j:commandLink the actionListener gets called on the testBean. Then the reRender gets called (i am assuming), instantiates the displayBean and populates the detailsPanel. -- this is correct behaviour.
Scenario 2: detailsPanel has a rich:dataTable in it that gets data from the displayBean.
When I click on the a4j:commandLink, first the displayBean gets instantiated, populates the displayPanel and then the actionListener gets called on the testBean. -- this is problematic behaviour