Finally I've found that:
s:if test=#attr.myListIterator.hasNext
did the trick. The thing is that I wasn't able to figure out where to
find out var defined objects. Now I know that are accessed trough
#attr.
I hope it will help those people with a similar problem.
Cris
On Thu, Nov 19, 2009 at 1:04 PM, Cristian Peraferrer
corellia...@gmail.com wrote:
Hi,
I'm trying to show a There are no items in the list message in my
application. I'm using a subset the following way:
s:subset source=myList decider=myDecider var=myListIterator
s:if test=#myListIterator.hasNext()
s:iterator status=status
tr class=s:if test=#status.eveneven/s:ifs:elseodd/s:else
tds:property value=%{name}//td
tds:property value=%{type}//td
/tr
/s:iterator
/s:if
s:else
tr
td colspan=2There are no items in the list/td
/tr
/s:else
/s:subset
But I'm not able to find how to access to the subset iterator... to
check if the iterator (or the subset list) is empty.
I'd appreciate any help.
Thanks,
Cris
--
GPG Key-ID: 0x564903FA - JID: corell...@swissjabber.ch
--
GPG Key-ID: 0x564903FA - JID: corell...@swissjabber.ch
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org