struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <niall.pember...@blueyonder.co.uk>
Subject Re: Problem Dynamically creating form properties
Date Thu, 19 Feb 2004 00:10:57 GMT
You can find the source here...

http://www.niallp.pwp.blueyonder.co.uk/

Niall
----- Original Message ----- 
From: "Michael McGrady" <mike@michaelmcgrady.com>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Wednesday, February 18, 2004 11:54 PM
Subject: Re: Problem Dynamically creating form properties


> I would be interested int his, Niall.
>
> At 10:46 AM 2/17/2004, you wrote:
> >I have a version of DynaBean based on the MutableDynaClass interface
which
> >allows properties to be added dynamically - which anyone would be free to
> >use (I tried to attach here but struts-user rejected the mail saying "we
> >don't accept executable content" ). We have also equivalent versions of
the
> >DynaValidatorForm and DynaValidatorActionForm based on this  "dynamic"
> >DynaBean.
> >
> >Advantages - no more ActionForm declarations, but it still the "standard"
> >DynaBean and can plug into the Validator framework.
> >
> >LazyDynaBean - "dynamic" DynaBean
> >LazyDynaClass - implements the MutableDynaClass interface
> >
> >LazyValidatorForm - etension of ValidatorForm which is backed by
> >LazyDynaBean (equivalent to DynaValidatorForm)
> >LazyValidatorActionForm - path based LazyValidatorForm (equivalent to
> >DynaValidatorActionForm)
> >
> >I can email this directly to anyone who wants it - or even better if
someone
> >could offer/suggest a site to load it up to.
> >
> >Niall
> >
> >
> >
> >----- Original Message -----
> >From: "Guillermo Meyer" <gmeyer@interbanking.com.ar>
> >To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
> >Sent: Tuesday, February 17, 2004 2:07 PM
> >Subject: RE: Problem Dynamically creating form properties
> >
> >
> > > Actually, not today, because this development we made is not Open
> > > Source, but who knows... may we remake it and open it for free use.
> > >
> > > Cheers.
> > > Guillermo
> > >
> > > -----Original Message-----
> > > From: Paul-J Woodward [mailto:paul-j.woodward@db.com]
> > > Sent: Martes, 17 de Febrero de 2004 10:41 a.m.
> > > To: Struts Users Mailing List
> > > Subject: RE: Problem Dynamically creating form properties
> > >
> > >
> > > That sounds excellent, is it available for use?
> > >
> > > Paul
> > > ------------------------------------------------------------
> > > Global Equity Derivatives Technology
> > > Deutsche Bank [/]
> > > ------------------------------------------------------------
> > >
> > >
> > >
> > >
> > > "Guillermo Meyer" <gmeyer@interbanking.com.ar>
> > > 17/02/2004 09:43
> > > Please respond to "Struts Users Mailing List"
> > >
> > >
> > >         To:     "'Struts Users Mailing List'"
> > > <struts-user@jakarta.apache.org>
> > >         cc:
> > >         Subject:        RE: Problem Dynamically creating form
properties
> > >
> > >
> > > I previuosly posted a mail to this list asking why DynaForms are
called
> > > Dynamic if you have to declare them statically in Struts-Config. But
> > > there was no answer :(
> > >
> > > We created in our project a DynamicBean (previous DynaBean release and
> > > when Struts 1.1 was no available) and extended ActionForm to be a
holder
> > > of DynamicBean (somethind like this: ((DynamicForm)form).getModel()
> > > returns a DynamicBean with all properties.)
> > >
> > > So, we add html:text fields to the JSP and these are populated to this
> > > DynamicForm without the need of declaring this property anywhere. And
we
> > > have optionall Contract asserter to verify properties in a DynamicBean
> > > when needed (usually when using DynamicBean as a DTO between Actions
and
> > > Business delegates)
> > >
> > > Cheers.
> > > Guillermo.
> > >
> > >
> > > -----Original Message-----
> > > From: Bernard Gaughran [mailto:bernardgaughran@yahoo.ie]
> > > Sent: Martes, 17 de Febrero de 2004 07:11 a.m.
> > > To: struts-user@jakarta.apache.org
> > > Subject: Problem Dynamically creating form properties
> > >
> > >
> > > Can someone PLEASE help?
> > >
> > > I need to create a User Interface (in JSP) which
> > > presents the user with a number of input fields. The
> > > number of input fields is not known until run-time
> > > (based on user selections in a previous screens).
> > >
> > > The 2 issues I see are:
> > > 1. generating the JSP dynamically with the correct
> > > number of properties
> > > 2. accessing these form fields in the action class.
> > >
> > > Normally, form property definitions need to be
> > > defined at compile time (whether you use Action Forms
> > > or DynaForms)
> > >
> > > Ideally, I'd like to use the struts framework to avail
> > > of Validator,etc,etc. Also, I would like to use Struts
> > > Dyna Forms.
> > >
> > > Can anyone advise a suitable approach & sample code?
> > >
> > > Bernard Gaughran
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Finance: Get your refund fast by filing online.
> > > http://taxes.yahoo.com/filing.html
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> > > NOTA DE CONFIDENCIALIDAD
> > > Este mensaje (y sus anexos) es confidencial, esta dirigido
> > > exclusivamente
> > > a las personas direccionadas en el mail y puede contener informacion
> > > (i)de
> > > propiedad exclusiva de Interbanking S.A. o (ii) amparada por el
secreto
> > > profesional. Cualquier opinion en el contenido, es exclusiva de su
autor
> > > y
> > > no representa necesariamente la opinion de Interbanking S.A. El acceso
> > > no
> > > autorizado, uso, reproduccion, o divulgacion esta prohibido.
> > > Interbanking
> > > S.A no asumira responsabilidad ni obligacion legal alguna por
cualquier
> > > informacion incorrecta o alterada contenida en este mensaje. Si usted
ha
> > >
> > > recibido este mensaje por error, le rogamos tenga la amabilidad de
> > > destruirlo inmediatamente junto con todas las copias del mismo,
> > > notificando al remitente. No debera utilizar, revelar, distribuir,
> > > imprimir o copiar este mensaje ni ninguna de sus partes si usted no es
> > > el
> > > destinatario. Muchas gracias.
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> > > NOTA DE CONFIDENCIALIDAD
> > > Este mensaje (y sus anexos) es confidencial, esta dirigido
exclusivamente
> >a las personas direccionadas en el mail y puede contener informacion
(i)de
> >propiedad exclusiva de Interbanking S.A. o (ii) amparada por el secreto
> >profesional. Cualquier opinion en el contenido, es exclusiva de su autor
y
> >no representa necesariamente la opinion de Interbanking S.A. El acceso no
> >autorizado, uso, reproduccion, o divulgacion esta prohibido. Interbanking
> >S.A no asumira responsabilidad ni obligacion legal alguna por cualquier
> >informacion incorrecta o alterada contenida en este mensaje. Si usted ha
> >recibido este mensaje por error, le rogamos tenga la amabilidad de
> >destruirlo inmediatamente junto con todas las copias del mismo,
notificando
> >al remitente. No debera utilizar, revelar, distribuir, imprimir o copiar
> >este mensaje ni ninguna de sus partes si usted no es el destinatario.
Muchas
> >gracias.
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>



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


Mime
View raw message