I am trying to modify the myfaces collapsiblepanel example such that an actionlistener is fired when the headerLink is created.
The code is
<
h:form id="form"> <t:dataTable id="test_dt" var= "person" value= "#{thirdCollapsiblePanelBean.persons}" preserveDataModel= "false"> <h:column> <t:collapsiblePanel id="test4" var= "test4collapsed" value= "#{person.collapsed}"> < f:facet name="header" > <t:div style="width:500px;background-color:#CCCCCC;" > <h:outputText value="Person" /> <t:headerLink immediate="true" actionListener ="#{thirdCollapsiblePanelBean.callFunction}" > <h:outputText value="> Details" rendered ="#{test4collapsed}" /> <h:outputText value="v Overview" rendered ="#{!test4collapsed}" /> </t:headerLink> <h:commandLink value=" test" action= "#{person.test}" /> </t:div> </f:facet> <h:inputText id="firstname_input" value= "#{person.firstName}" /> <h:commandLink value="test" action= " #{person.test}" actionListener="#{thirdCollapsiblePanelBean.callFunction}" /> </t:collapsiblePanel> </h:column> </t:dataTable> </h:form> But the actionListener doesnt work in headerLink. has anybody else experienced the same problem. Any solutions to it?Hassnain
