问题
I got a page with a form like this :
<h:form>
<h:commandButton value="click" action="#{searchBean.doSearch}" >
<f:ajax execute="@form" render="result"></f:ajax>
</h:commandButton>
<a4j:outputPanel id="result" >
<h:commandLink value="click" action="#{searchBean.doShowDetail(searchBean.result)}" rendered="#{searchBean.result != null}" />
</a4j:outputPanel>
</h:form>
doShowDetail
action redirects to another page in whicth result details are shown.
Result is correctly rendered after form submitting, but current page is refreshed.
If you reload manually the page then the desired page is displayed.
I use implicit navigation rules. Below the doShowDetail
code :
public String doShowDetail(Object result) {
flash.put("result", result);
return "details?faces-redirect=true";
}
Am I missing something?
Thx.
来源:https://stackoverflow.com/questions/7920112/jsf-2-0-a-navigation-case