You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Geetika Srivastava <ge...@tcs.com> on 2011/03/18 14:38:05 UTC
Problem in page rendering
Hi,
In my JSF page I have two datatables which are present in 2 separate <
a4j:outputPanel> which are rendered based upon a flag in session. Only one
table is rendered at a time.
The flag for rendering the table is set by the actionlistener attached to
a <h:commandbutton>
On clicking of the command button, the same page should be rendered with
the table corresponding to the updated flag value.However the earlier view
is rendered which changes on refreshing the page.
Moreover the managed bean action and the actionlistener , all are getting
called.
The output panel is as follows:
<a4j:outputPanel id="myModalPanel" rendered="#{!setting.subListTable}">
Command button is as follows:
<h:commandButton value="Save Changes" styleClass="blueButtonMax" >
<a4j:support event="onclick" action="#{mobileReg.saveAlert}"
actionListener="#{setting.changeSubTable}" immediate="true"/>
</h:commandButton>
The action method and navigation rule in faces - config associated is as
follows:
public String saveAlert() {
//buisness logic goes here
return "success";
}
And i have the following entry in my faces-config.xml..
<navigation-rule>
<from-view-id>*</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/pages/header.jsp</to-view-id>
<redirect/>
</navigation-case>
</navigation-rule>
JSF 1.2 is used and the application is deployed on weblogic 10.3. Please
help me resolve.
Regards,
Geetika Srivastava
Tata Consultancy Services
Mailto: geetika.srivastava@tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you