Hi Nick,
I'm successfully using dynaforms to nest javabeans. I just stipulated the class of my bean in the struts-config form declaration and it worked.


I am not sure whether the key/value pair thing you talk of adheres to the javabean spec. If it does you should have no problem. If not, you'll have to work out how your tags in JSP should access the getter and setter methods. Not saying it can't be done, just not sure off the top of my head.

Getting the submit to work for a regular javabean, assuming you need that too, requires subclassing DynaActionForm and overriding the reset() method with your own that will instantiate and insert all the necessary beans for that request - and calling the super.reset() too.

Adam

On 09/24/2003 07:03 AM Nick Heudecker wrote:
Hi,

I've read in the docs that DynaForms only support the folloing types:

# java.lang.BigDecimal
# java.lang.BigInteger
# boolean and java.lang.Boolean
# byte and java.lang.Byte
# char and java.lang.Character
# java.lang.Class
# double and java.lang.Double
# float and java.lang.Float
# int and java.lang.Integer
# long and java.lang.Long
# short and java.lang.Short
# java.lang.String
# java.sql.Date
# java.sql.Time
# java.sql.Timestamp

I would like to add my own type to this, basically a key/value pair
object like the LabelValueBean in the Struts source.  My question is:
What do I need to do to add an additional supported type to DynaForms?



-- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9


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



Reply via email to