You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vinicius Caldeira Carvalho <vi...@squadra.com.br> on 2005/04/09 14:49:15 UTC
html:options
Hello there! I've always used the <html:options> with the collection
attribute, so I had a separate bean with the collection. But now I'd
like to have that collection on my form bean cuz it'll be stored on the
session, and I have a utility filter that always remove my formbeans
stored on the session after the end of an usercase. So for this specific
case, having the collection inside my form seemed to be the best
solution since I don't need to care about that bean later. Ok. But for
my surprise struts lacks support for collections insides the formbeans
<html:select property="documentType">
<html:options property="documentList"/>
</html:select>
This prints documenttype as value and property, but I'd like to have a
way to say which accessor is my label and which is property.
Isn't this possible?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: html:options
Posted by Ruben Cepeda <ru...@hotmail.com>.
Viniciius,
Here is a link to the options user guide secition of the Struts user guide:
http://struts.apache.org/userGuide/struts-html.html#options
Look at the LabelName and LabelProprety attributes.
*************************************
Ruben Cepeda
ruben_cepeda@hotmail.com
*************************************
----Original Message Follows----
From: Vinicius Caldeira Carvalho <vi...@squadra.com.br>
Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
To: Struts Users Mailing List <us...@struts.apache.org>
Subject: html:options
Date: Sat, 09 Apr 2005 09:49:15 -0300
Hello there! I've always used the <html:options> with the collection
attribute, so I had a separate bean with the collection. But now I'd like to
have that collection on my form bean cuz it'll be stored on the session, and
I have a utility filter that always remove my formbeans stored on the
session after the end of an usercase. So for this specific case, having the
collection inside my form seemed to be the best solution since I don't need
to care about that bean later. Ok. But for my surprise struts lacks support
for collections insides the formbeans
<html:select property="documentType">
<html:options property="documentList"/>
</html:select>
This prints documenttype as value and property, but I'd like to have a way
to say which accessor is my label and which is property.
Isn't this possible?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org