jsf ajax viewcope reloads whole page -


when perform ajax call with:

<h:form id="showentriesform">     <h:commandbutton value="einträge anzeigen" onclick="javascript:this.disabled=true;" id="showentryb">     <f:ajax event="click" execute="@form" render=":main :showentriesbutton" listener="#{bean.showentries}"/>     </h:commandbutton>  </h:form> 

it executes @prerender commands again , seems reloads whole page. thought ajax reload parts tell reload?

or prerender executed? need else prerender fetch get-variables once when view created?

regards

@prerender event gets fired before given view gets rendered, means annotated methods should called if of components belonging view need updated.

not sure methods do, maybe should try @init annotation.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -