struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Wong <laz...@gmail.com>
Subject [S2]checkboxlist tag bug?
Date Sun, 07 Sep 2008 15:47:01 GMT

I've used checkboxlist tag with JDK 5 enum
likeļ¼š

[@s.checkboxlist key="resource.requestMethod" name="requestMethods"
		list="@org.ave7.core.model.enums.RequestMethod@values()" listKey="name()"
		listValue="name()" /]

every thing is OK, and the data can be persist to the database correctly.
but when I query the edit page, the previous data cannot be display well
(the box is not Checked!)

for the source, check the attachments.

I have debug the code, And the persist object had returned the correct enum
data array.

but the same page, the radio is OK, also used enum in JDK 5, I have check
the template and value stack, everything seems OK....  I've got no idea,
It's a bug or just I have missed something?

http://www.nabble.com/file/p19359355/resources-edit.ftl resources-edit.ftl 
http://www.nabble.com/file/p19359355/Resource.java Resource.java 
http://www.nabble.com/file/p19359355/RequestMethod.java RequestMethod.java 

-----
Blog: http://www.ryanwong.name
Can Use: English, Chinese
-- 
View this message in context: http://www.nabble.com/-S2-checkboxlist-tag-bug--tp19359355p19359355.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message