Yes, it gets called, although it's never true because the actionListener method 
never 
gets called.

--
Rob

@objectsource.org


---------- Original Message -----------
From: Eric Hsieh <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Fri, 1 Apr 2005 13:53:16 -0800 (PST)
Subject: Re: selecting nodes in tree2

> Rob,
> 
> Does that check for t.nodeSelected work in the
> styleClass clause?
> 
> I tried doing what you did but am getting some kind of
> javascript errors.
> 
> --- Rob Decker <[EMAIL PROTECTED]> wrote:
> > I have the following:
> > 
> >   <h:panelGrid columns="4"
> > styleClass="#{t.nodeSelected ? 'selected' :
> > 'unselected'}">
> >     <h:commandLink
> > actionListener="#{t.setNodeSelected}"
> > immediate="tree" id="branch">
> >       <h:graphicImage
> > value="/images/yellow-folder-open.png" 
> >                rendered="#{t.nodeExpanded}"
> > border="0"/>
> >       <h:graphicImage
> > value="/images/yellow-folder-closed.png" 
> >                rendered="#{!t.nodeExpanded}"
> > border="0"/>
> >     </h:commandLink>
> >   .
> >   .
> >   .
> >   </h:panelGrid>
> > 
> > When I click on the folder the actionListener is
> > supposed to be called. It never 
> > happens. Is node selection a client-side only thing?
> > Even if it is, why does't the 
> > actionListener get called? 
> > 
> > 
> > --
> > Rob
> > 
> > @objectsource.org
> > 
> >
> 
>               
> __________________________________ 
> Yahoo! Messenger 
> Show us what our next emoticon should look like. Join the fun. 
> http://www.advision.webevents.yahoo.com/emoticontest
------- End of Original Message -------

Reply via email to