Niall,

I wonder if we can what we have.
I wonder what that would look like.
Could be interesting.

Hubert

--- Hubert Rabago <[EMAIL PROTECTED]> wrote:
> As long as we're sharing... =)
> 
> I wrote a plug-in which defines my DynaActionForms based on my DTOs.  So if
> I
> have an employee DTO, it will define a DynaActionForm for me with the
> fields
> from my employee DTO.  It helps me cut down on the repetition when my DTO
> closely matches my form beans.  The form bean definition can add onto the
> definition to allow it to hold non-DTO values such as submit buttons and
> other values.
> 
> It also knows to convert between the fields of the DTO to and from the form
> bean, kinda like BeanUtils.copyProperties.
> 
> It can also support formatting the data, so my users can enter dates or
> formatted numbers such as "123,456.00" instead of "123456.00" without me
> having to format the data in my action objects and parse it back upon
> submission.
> 
> And to further cut down on the repetition, I've also moved all form-bean
> definitions and form validation rules into one XML, so all the form
> information is together instead of in separate config files.
> 
> I'm looking to share this if anybody's interested.  I'm finishing up unit
> tests and docs for it.
> 
> - Hubert
> 
> --- Niall Pemberton <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > 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:[EMAIL PROTECTED]
> > > 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" <[EMAIL PROTECTED]>
> > > 17/02/2004 09:43
> > > Please respond to "Struts Users Mailing List"
> > >
> > >
> > >         To:     "'Struts Users Mailing List'"
> > > <[EMAIL PROTECTED]>
> > >         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:[EMAIL PROTECTED]
> > > Sent: Martes, 17 de Febrero de 2004 07:11 a.m.
> > > To: [EMAIL PROTECTED]
> > > 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: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > > 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: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> 
=== message truncated ===


__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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

Reply via email to