Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

s2: numbers being formatted during display in s:select tag

cilquirm

2007-02-22



This is so odd, yet I'm surprised no one's come across this.

This is S2 built off the 2_0_X branch ( no modifications, straight clean
build ), running under Java 1.5 in both resin and tomcat.

Given a snippet like so :

<s:action name="listAllAuthors" namespace="/general"
id="authorsAction"></s:action>
<s:select name="author" list="#authorsAction.allAuthors"
listKey="id.longValue()" listValue="%{lastName + ', ' + firstName}"
label="Author"/>

the output of the id is a formatted string :

<select name="author" id="save_author">
  <option value="1,103,161">Please, Helpme </option>
  <option value="1,103,339">Being, Earnest</option>
...
</select>

(names have been changed to protect the innocent )

Anyone else come across this.

Is this a bug? Known workaround?

Thanks for any input,

aadi
--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.