Hello everyone:
my code show below , i found that when there is a commandLink(h:commandLink or a4j:commanLink) in the rich:tabPanel , then the oncomplete javascript will not be triggered at all, and when i remove the commandLink inside the rich:tabPanel ,the outside commandLink oncomplete script was just working fine,can someone help me explain that,and how to work it out? many thanks!
Code:
<h:form>
<rich:panel>
<f:facet name="header"></f:facet>
<a4j:commandLink id="commandLink-outSide" value="AJAX CLICK"
action="#{competitionBean.testAction}"
oncomplete="alert('complete')" execute="@this"
render="sdassaasddasd"></a4j:commandLink>
<h:outputText value="Panel Body" /></rich:panel>
<div>
<rich:tabPanel id="subjectTabs" switchType="client">
<rich:tab id="sigle_tab" name="sigle-tab" contentClass="subject-content-class">
<h:commandLink id="commandLink-inside" value="title" styleClass="subject-text"
action="#{competitionBean.testAction}"> </h:commandLink>
</rich:tab>
</rich:tabPanel>
</div>
</h:form>
消息编辑者为:Xiaobin Zhang