strange behaviour for tabPanel
lmk May 4, 2009 10:10 AMHello,
I have a problem using tabPanel, when the switchType is ajax, switching tabs does not work, server dont send ajax response;
when switchType is server, switching tabs works, but, ajax request inside tab has a the same behaviour: ajax request is sent, but response never reurned.
NB: tested on 3.3.0.GA and last CR.
<rich:tabPanel id="admin" switchType="ajax" style="width:90%;"
selectedTab="#{beanTabs.selectedTab}" >
<rich:tab label="User" name="#{beanTabs.userTab}"
rendered="#{identification.admin}" ignoreDupResponses="true">
<h:panelGroup rendered="#{beanTabs.selectedTab==beanTabs.userTab}">
<ui:include src="user.xhtml" />
</h:panelGroup>
</rich:tab>
<rich:tabPanel>user.xhtml
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:t="http://myfaces.apache.org/tomahawk">
<h:form id="userDemand">
<rich:comboBox selectFirstOnUpdate="false"
defaultLabel="Enter some value" value="#{userBean.filterCompany}"
id="combo_user" width="200" style="margin-left:90px;"
immediate="true">
<t:selectItems value="#{bean.companies}" var="list"
itemLabel="#{list.name}" itemValue="#{list.name}" />
<a4j:support event="onselect" reRender="userList"
action="#{userBean.filterUserByCompany}" ajaxSingle="true">
</a4j:support>
<a4j:support event="onchange" reRender="userList"
action="#{userBean.filterUserByCompany}" ajaxSingle="true">
</a4j:support>
</rich:comboBox>
<h:outputText value="#{msg.label_user} *" />
<h:selectOneMenu value="#{userBean.updateUserId}" id="userList"
style="margin-left:90px;width:200px;">
<f:selectItem itemLabel="Select one" itemValue="#{bean.zero}" />
<t:selectItems value="#{userBean.users}" var="list"
itemLabel="#{list.lastname} #{list.firstname}"
itemValue="#{list.userId}" />
<a4j:support event="onchange" reRender="user,combo_user"
action="#{userBean.onSelectUserUpdate}" ajaxSingle="true" process="user">
</a4j:support>
</h:selectOneMenu>
</h:panelGrid>
<a4j:outputPanel id="user">
...
...
have I miss something?
best regards!