You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ju...@mizuhocbus.com on 2003/09/24 22:12:41 UTC

LabelValueBean - 3 fields?

Hi, is it possible to store 3 fields in LabelValueBean instead of 2?
i.e. value, label & description?

thanx! 




= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 
This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the "Bank"). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained.
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 


Re: LabelValueBean - 3 fields?

Posted by Joe Germuska <Jo...@Germuska.com>.
At 4:12 PM -0400 9/24/03, Julie.Huang@mizuhocbus.com wrote:
>Hi, is it possible to store 3 fields in LabelValueBean instead of 2?
>i.e. value, label & description?

You could subclass LabelValueBean... (or just write your own bean 
with whatever properties you like!)

Actually, in Struts 1.1 LabelValueBean shouldn't even be called a 
bean, because it has no zero-arg constructor (this is fixed in CVS).

The use case for LabelValueBean is specifically for creating an HTML 
select menu, which only needs the two properties -- one for what is 
shown in the menu, and one for what is sent in the request if that 
choice is chosen.

Joe

-- 
Joe Germuska            
Joe@Germuska.com  
http://blog.germuska.com    
  "We want beef in dessert if we can get it there."
   -- Betty Hogan, Director of New Product Development, National 
Cattlemen's Beef Association


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