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
[EMAIL PROTECTED]
*************************************



----Original Message Follows----
From: Vinicius Caldeira Carvalho <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <user@struts.apache.org>
To: Struts Users Mailing List <user@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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to