You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Hasnain Badami <ha...@gmail.com> on 2006/02/28 15:06:08 UTC
HeaderLink
Hi
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
Re: HeaderLink
Posted by Sean Schofield <se...@gmail.com>.
Please post these types of questions to the user list.
Sean
On 2/28/06, Hasnain Badami <ha...@gmail.com> wrote:
> Hi
> 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
>