I've seen tr:iterator not behave well when laying out commandLinks
horizontally.  I've had much better luck with the Facelets ui:repeat tag
for this kind of stuff.  Unfortunately it doesn't have a varStatus.

 

________________________________

From: Francisco Passos [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 27, 2007 12:42 PM
To: MyFaces Discussion
Subject: [Trinidad] tr:iterator

 

Good afternoon!

I'm using tr:iterator to present various commandLinks on a page.
The problem is: they are always duplicated. I've checked and the list on
the bean only has 2 elements. However 4 links are generated. Here's the
xhtml: 

<tr:iterator id="tabber" value="#{fichaBean.gruposAtributos}"
var="grupoAtributos" binding="#{fichaBean.tabNavigationPane}"
varStatus="status"> 
        
            <tr:spacer width="15px" /> 

            <tr:commandLink id="tab" text="#{grupoAtributos.ndenomin }"
partialSubmit="true" selected="#{grupoAtributos.igrupoid eq
fichaBean.selectedGroupId}" actionListener="#{fichaBean.refreshIt}">
                <tr:setActionListener from="#{grupoAtributos.igrupoid}"
to="#{fichaBean.selectedGroupId}" />
            </tr:commandLink>
            
</tr:iterator>


Does anyone know why this happens and what I can do to avoid it?

Thank you,
Francisco Passos

The information transmitted herewith is sensitive      information of Chordiant 
Software or its customers and is intended only for use to the individual or 
entity to which it is addressed. If the reader of this message is not the 
intended recipient, you are hereby notified that any review, retransmission, 
dissemination, distribution, copying or other use of, or taking of any action 
in reliance upon, this information is strictly prohibited. If you have received 
this communication in error, please contact the sender and delete the material 
from your computer.

Reply via email to