[prev in list] [next in list] [prev in thread] [next in thread] 

List:       myfaces-dev
Subject:    Re: HeaderLink
From:       "Sean Schofield" <sean.schofield () gmail ! com>
Date:       2006-02-28 15:17:05
Message-ID: 2387fbc50602280717g6ef0e510kda3ee4dbb0b896c0 () mail ! gmail ! com
[Download RAW message or body]

Please post these types of questions to the user list.

Sean

On 2/28/06, Hasnain Badami <hasnainbadami@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
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic