You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Xavier Noria <fx...@hashref.com> on 2004/06/29 12:08:47 UTC
dynamic forms
We have some forms whose fields are unknown until runtime. How would
you implement them so that they worked within the framework smoothly?
-- fxn
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: dynamic forms
Posted by Bill Siggelkow <bi...@bellsouth.net>.
You could try Nialls Pemberton's LazyActionForm ...
http://www.niallp.pwp.blueyonder.co.uk/
Xavier Noria wrote:
> We have some forms whose fields are unknown until runtime. How would you
> implement them so that they worked within the framework smoothly?
>
> -- fxn
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: dynamic forms
Posted by Matthias Wessendorf <ma...@matthias-wessendorf.de>.
and that one
http://jakarta.apache.org/struts/faqs/indexedprops.html
there is described how to create
a "dynamic" form based on indexed-properties:
like that:
<html:form action="indexedtest5.do">
<logic:iterate name="stringbean" property="stringArray" id="foo"
indexId="ctr">
<html:text name="stringbean"
property='<%= "labelValue[" + ctr + "].label" %>' />
</logic:iterate>
<html:submit property="submitValue">Submit Changes</html:submit>
</html:form>
Hope that helps
> -----Original Message-----
> From: Xavier Noria [mailto:fxn@hashref.com]
> Sent: Tuesday, June 29, 2004 12:09 PM
> To: user@struts.apache.org
> Subject: dynamic forms
>
>
> We have some forms whose fields are unknown until runtime. How would
> you implement them so that they worked within the framework smoothly?
>
> -- fxn
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: dynamic forms
Posted by Matthias Wessendorf <ma...@matthias-wessendorf.de>.
Xavier,
did you looked at:
http://wiki.apache.org/struts/StrutsCatalogMappedBeans
all properties are stored in a map.
cheers,
> -----Original Message-----
> From: Xavier Noria [mailto:fxn@hashref.com]
> Sent: Tuesday, June 29, 2004 12:09 PM
> To: user@struts.apache.org
> Subject: dynamic forms
>
>
> We have some forms whose fields are unknown until runtime. How would
> you implement them so that they worked within the framework smoothly?
>
> -- fxn
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org