struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Watrous" <dwatr...@hotmail.com>
Subject Re: Can forms inherit from other forms
Date Fri, 11 Feb 2005 05:15:12 GMT
I'm not sure if I gather exactly what you are trying to do.  I have a set of 
classes (Party which is inherited by Person, Family, Organization, etc.) and 
in general they share the same fields.  I am using validation.  I chose to 
write one PartyForm that extends ValidatorActionForm.  This way I can use 
the same PartyForm for each Person, Family, Organization and all I need to 
do is configure in validation.xml which action uses which fields from the 
form.  Not all fields are used each time, since each party has some unique 
fields.  I can send an example tomorrow if you're interested.

DW
----- Original Message ----- 
From: "Norris Shelton" <norrisshelton@yahoo.com>
To: "Strutss" <user@struts.apache.org>
Sent: Thursday, February 10, 2005 2:50 PM
Subject: Can forms inherit from other forms


>I ran across this article
>
> http://webdeveloper.earthweb.com/repository/javascripts/2003/12/341171/cssscroll.html
>
> Has something like this every been implemented in the standard
> code?  maybe an inherit property.
>
> I have 3 forms (LazyValidatorForm)and they all have to have
> default  the same fields or have the same fields defined as
> string arrays.
>
> =====
>
> Norris Shelton
> Software Engineer
> Sun Certified Java 1.1 Programmer
> Appriss, Inc.
> ICQ# 26487421
> AIM NorrisEShelton
> YIM norrisshelton
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - 250MB free storage. Do more. Manage less.
> http://info.mail.yahoo.com/mail_250
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message