You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Erickson <de...@cmcflex.com> on 2004/09/22 21:42:07 UTC
Dynamically Creating Dynaforms
Hi everyone here are my goals:
Be able to dynamically create fields in a form (they will be known at
runtime, but only then)
Be able to pre-populate these fields, then harvest them from the user
I know I can do this by using session scoped beans with a map-backed form
and in the name of my fields doing something like
value(myFieldNameInTheMap). I would like to if possible avoid that. I know
with dynaforms specified in xml I can declare fields like myField of type
string then within the jsp all i need is name="myField" as opposed to
name="value(myField)". Is there anyway in my prepopulating action to create
a dynaform programatically with all the fields I need so i can just use
their names from within the jsp?
Thanks!
-David
(Ps i know its possible to do that with DynaBeans from commons.. but i'm
wondering if I'm going to have to subclass dynaform or something to
implement this)
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org