jsf - h:outputLink navigation sometimes does not work -


i have navigation define 1 page this.

<h:outputlink id="idlink"  value="page1.seam" >     <f:param name="m" value="n103" />     <f:param name="mss" value="110" /> <h:outputtext value="return page 1" /> <a4j:support event="onclick" action="#{beanname.action}" limittolist="true" ignoredupresponses="true" eventsqueue="que" ajaxsingle="true" immediate="true"> </a4j:support> </h:outputlink> 

the problem there view isn't changing page1.seam , remain in page2.seam. there knows better ? appreciated. thanks.

this construct makes no sense. make normal link

<h:outputlink value="page1.seam">     <f:param name="m" value="n103" />     <f:param name="mss" value="110" />     <h:outputtext value="return page 1" /> </h:outputlink> 

and invoke action on opening of page, use <f:event type="prerenderview"> in target view instead.

<f:event type="prerenderview" listener="#{beanname.action}" /> 

see also:


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -