You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "David W." <dw...@yahoo.com> on 2000/08/02 21:08:14 UTC
Fwd: FW: OptionsTag Modification
I never saw any comments about this. Did anyone have
any thoughts?
David Winterfeldt
I wanted to have the OptionsTag be able to accept a
collection that contained an object that had a method
to get the 'value' and the 'label'. This way I can
sort the collection, but make sure the values stay
together. I made a modification to the tag to make
this work. You can pass in a runtime reference to a
collection and give the method names that go with
them. If you don't supply all three of these new
attributes, it does everything the way the original
tag did. If everyone thinks that this is a useful
option, it could be added to struts.
Add these attributes to the OptionsTag:
<attribute>
<name>collection</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
<attribute>
<name>label</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
David Winterfeldt
__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/