Java Mailing List Archive

http://www.junlu.com/

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

struts 2 s:select and converter

benoit

2007-03-09



Hello,

i wrote a type converter in order to use an s:select with a plain objet
instead of manage id...
and it works when i add my object but when i want to edit, the converter is
not called
and my list is not rightly selected. i foud a workaround by using the value
attribute :
value="article.famille.id"
like this
<s:select key="article.type" headerKey="-1"
   headerValue="Selectionner un type" list="types"
   listKey="id" listValue="nom" required="true" theme="xhtml"
value="article.type.id"/>

Do you know how to use type converter in order to manage pojo in select tag
instead of using id ?

Thanks,
BenoƮt.
--
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.