I
would make a Set available from your Action and have your Action do the work of
creating the Set from your List
-----Original Message-----
From: Mathias Berg [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 4:47 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [OS-webwork] About ww:iterator tagHmm, well our result is in a list containing beans with result data.Can i set a value in the stack, like prevValue. And later in the iterator loop check if this prevValue is equal to newValue.Like this? OrganizationName is the beans property value. SearchResult gives a list containing beans (POJO's).<ww:iterator status="row" value="searchResultTransport.searchResult" >
<ww:if test="organizationName != prevOrgName">....write orgName</ww:if><ww:set name="prevOrgName" value="organizationName" /></ww:iterator>or is there a better way to deal with this./Mathias-----Original Message-----
From: Jason Carreira [mailto:[EMAIL PROTECTED]
Sent: den 5 januari 2004 17:53
To: [EMAIL PROTECTED]
Subject: RE: [OS-webwork] About ww:iterator tagFor 1: No... use a Set instead of a List if you want only unique values-----Original Message-----
From: Mathias Berg [mailto:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 3:55 AM
To: WebWork (E-mail)
Subject: [OS-webwork] About ww:iterator tagAbout the iterator tag.
1. Does there exist a function with the iterator tag, that check if the prev, value is the same as the next. Then if so skip printing that value.2. Is there a odd/even handling when iterating through a list? So you can print out a table with every odd row with a grey background, and even row as white.
Is there some good docs about the UI iterator tag? Any help is appreciated.
Regards, Mathias