Java Mailing List Archive

http://www.junlu.com/

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

[S2] Tag select have problems

Alexandre Mendonça Lima

2007-01-22

Replies:

Hi everyone,

I got last version Struts 2.0.3 today and updated now my application but one
page is gone wrong.
In this page, I have the code:
<s:select name="filtroRegiao" list="todasRegioes" listKey="id"
listValue="descricao" headerKey="-1" headerValue=" " />
My Action class have two atributes: todasRegioes is a java.util.List and
filtroRegiao is a java.lang.String. The list todasRegioes have instances
from class Regiao which have atributes id and descricao.
When I submitted my form to same page for refresh it, the select doesn't
show the value selected, always show the value setting in headerKey.
Anyone can help me?

Alexandre Lima


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

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