select list help

2007-09-25 Thread Henry Park
How can I modify the following select list to display '1 of 10, 2 of 10,
etc' instead of just the page numbers?

s:select label=Page 
  name=page 
  list=pageList 
  required=false 
value=%{page.toString()} /

The list is populated with an Integer array list.

ListInteger pageList new ArrayListInteger();

Thanks in advance,

Henry

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: select list help

2007-09-25 Thread Dave Newton
--- Henry Park [EMAIL PROTECTED] wrote:
 How can I modify the following select list to
 display '1 of 10, 2 of 10, etc' instead of just the 
 page numbers?

Change the list you pass to it.

Or use OGNL to project across a list and create a new
list with the number plus the additional info[1] if
you're feeling sassy.

d.

[1] http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/projection.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]