reRender single rich:tab with a4j:support
hgf Sep 17, 2007 9:09 AMHi,
I'm trying to rerender a single rich:tab (disable and enable this tab) with a4j:support. The following snippet only rerenders this tab rerendering the whole panelGroup (DLG_CONFIG_PNL_ALL). Trying to rerender just the rich:tab (DLG_CONFIG_PNL_LOLO) does not work.
Any idea? Thank you
<h:panelGroup id="DLG_CONFIG_PNL_ALL"> <rich:tabPanel switchType="client" id="DLG_CONFIG_PNL_ALL_TP" style="height: 400px; width: 100%;"> <rich:tab label="#{msg.DLG_CONFIG_PNL_BASIC}"> <ui:include src="/pages/basicInformation.xhtml" /> </rich:tab> <rich:tab id="DLG_CONFIG_PNL_ADDRESS" label="#{msg.DLG_CONFIG_PNL_ADDRESS}"> <ui:include src="/pages/adress.xhtml" /> </rich:tab> <rich:tab label="#{msg.DLG_CONFIG_PNL_CPE}"> <ui:include src="/pages/cpeInformation.xhtml" /> </rich:tab> <rich:tab id="DLG_CONFIG_PNL_LOLO" label="#{msg.DLG_CONFIG_PNL_LOLO}" disabled="#{!configurationHandler.mapVisible['DLG_CONFIG_PNL_LOLO']}"> <ui:include src="/pages/localLoops.xhtml" /> </rich:tab> <rich:tab id="DLG_CONFIG_PNL_DSL" label="#{msg.DLG_CONFIG_PNL_DSL}" disabled="#{!configurationHandler.mapVisible['DLG_CONFIG_PNL_DSL']}"> <ui:include src="/pages/dsl.xhtml" /> </rich:tab> <rich:tab id="DLG_CONFIG_PNL_ISDN" label="#{msg.DLG_CONFIG_PNL_ISDN}" disabled="#{!configurationHandler.mapVisible['DLG_CONFIG_PNL_ISDN']}"> <ui:include src="/pages/isdn.xhtml" /> </rich:tab> </rich:tabPanel> </h:panelGroup> <a4j:region> <h:selectOneMenu id="protocol" label="protocol" style="width: 150px" value="#{configurationHandler.PROTOCOL}" converter="spims.ProtocolConverter" required="#{configurationHandler.mapMandatory['Configuration-SAP_INFO-PROTOCOL']}" disabled="#{!configurationHandler.mapEnabled['Configuration-SAP_INFO-PROTOCOL']}" valueChangeListener="#{configurationHandler.changedProtocol}"> <f:selectItems value="#{selectItemProvider.protocolList}" /> <a4j:support event="onchange" ajaxSingle="true" focus="protocol" immediate="true" onclick="document.getElementsByTagName('body')[0].style.cursor='wait'" oncomplete="document.getElementsByTagName('body')[0].style.cursor='auto'" reRender="DLG_CONFIG_PNL_LOLO" limitToList="true" /> </h:selectOneMenu> </a4j:region>