Easiest way is to have a synthetic property that gets 
the real (unsorted) list and sorts it before returning 
it.

Alternately, you may be able to get some mileage out of 
OGNL for doing some of this.  It can invoke static 
methods, such as @java.util.Collections@sort() ...

--
[EMAIL PROTECTED]

http://tapestry.sf.net
> Hi all:
> 
>     I have a problem , want to sort the output of "Foreach" component.
> Just like the code in XSL :
> 
> <xsl:for-each select="XXX">
>       <xsl:sort order="descending" select="@yyy" /> 
> < </xsl:for-each>
> 
> I I'm familiar with XSL , so I take XSL for example ...
> 
> By the way , it seems that developing Tapestry components like writing XSL...
> For example , <xsl:value-of select="xxx"> equals Tapestry "Insert",
> and <xsl:when test="xxx"> equals Tapestry "Conditional" ...
> 


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to