简体   繁体   中英

RichFaces, a4j:ajax rerender after valueChangeListener call

Look my jsf, please: http://pastebin.com/yRLyZ9KJ or http://pastebin.com/hqYSU5eJ The problem is: first rerender loginPage and then is called #{loginBean.onLanguageSelect}. Why? PS: Sorry for my bad English.

Same problem here. I need to reRender AFTER a valueChangeListener. Example:

<h:selectOneMenu valueChangeListener="#{back.change}" 
onchange="submit()" value="#{item.value}" >
<f:selectItems value="#{back.ordemItems}"/>
<a4j:support event="onchange" reRender="parentPainel" />
</h:selectOneMenu> 

valueChangeListener is not the way to go. I had the same issue solved it by using a onclick. It would be :

<h:selectOneMenu id="language" binding="#{loginBean.languageEntry}">
    <f:selectItems value="#{loginBean.languages}" />
    <a4j:support event="onclick" ajaxSingle="true" reRender="loginPage" actionListener="#{loginBean.onLanguageSelect}" />
</h:selectOneMenu>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM