You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Omar Colombari <om...@gmail.com> on 2012/11/19 08:27:40 UTC

s:select rendering

The "s:select" component sometime has a wrong rendering. In the html page
is shown as value of the options the object references (like @package.bean)
or
for the "s:select" component using fixed list value sometime is rendering
the couple "key=label" and not the value

Example:
<s:select name="test" list="#{'1':'A','2':'B','3':'C','4':'D'}"
required="true" />

Rendering in page is:
<select>
<option value="1=A">1=A </option>
<option value="2=B">2=B </option>
<option value="3=C">3=C </option>
<option value="4=D">4=D </option>
</select>

It is strange because if the server is restarted the issue has fixed.

What could be?



Omar.

Re: s:select rendering

Posted by Lukasz Lenart <lu...@apache.org>.
2012/11/19 Omar Colombari <om...@gmail.com>:
> The "s:select" component sometime has a wrong rendering. In the html page
> is shown as value of the options the object references (like @package.bean)
> or
> for the "s:select" component using fixed list value sometime is rendering
> the couple "key=label" and not the value

What server do you use? Which Struts 2 version ?


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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