-
1. Re: a4j:support and partial page updating
sivaprasad9394 Jun 20, 2012 1:39 AM (in response to artgonch)Hi,
If you are able to set the value to true in the backend function ..please foloww the step and try,
<a4j:support event="onchange" ajaxSingle="true" action="#{userSessionBean.changeDictionaryAction}" reRender="displayBtnPanel,showDictBtn"/>
_____________
<a4j:outputPanel id="displayBtnPanel">
<a4j:region rendered="#{userSessionBean.showDictBtnVisible == true}">
<a4j:commandButton value="..." title="#{header_var.dict_btn_tip}"
action="#{userSessionBean.showDictAction}"
reRender="mpViewSearchValues"
rendered="#{userSessionBean.showDictBtnVisible}"
id="showDictBtn"/>
</a4j:region>
</a4j:outputPanel>
-
2. Re: a4j:support and partial page updating
artgonch Jun 20, 2012 11:25 PM (in response to sivaprasad9394)Thank you, but unfortunately this has effect
-
3. Re: a4j:support and partial page updating
ivan_ra Jun 21, 2012 7:06 AM (in response to artgonch)showDictBtn initially not present on form, so it cant be rerendered.
You have to rerender already existing component, like this:
<h:selectOneMenu style="width:100px" value="#{userSessionBean.simpleDictPreffix}" id="dict-preffix"
valueChangeListener="#{userSessionBean.dictPreffixListValueChanged}">
<f:selectItems value="#{applicationData.searchList}"/>
<a4j:support event="onchange" ajaxSingle="true" action="#{userSessionBean.changeDictionaryAction}" reRender="dictBtnPanel"/>
</h:selectOneMenu>
...
<h:panelGroup id="dictBtnPanel">
<a4j:commandButton value="..." title="#{header_var.dict_btn_tip}"
action="#{userSessionBean.showDictAction}"
reRender="mpViewSearchValues"
rendered="#{userSessionBean.showDictBtnVisible}"
id="showDictBtn"/>
</h:panelGroup>