+1 James
-----Original Message----- From: Paul Benedict [mailto:[EMAIL PROTECTED] On Behalf Of Paul Benedict Sent: Saturday, June 30, 2007 12:49 AM To: Struts Developers List Subject: Re: s1: FormTag/OptionTag I propose adding a superclass to BaseHandlerTag because all W3C form-related elements (that's more than input fields) share a "common attributes" ... so I want the new superclass to be the basis for the FormTag and OptionTag too, so that I don't have to hardcode the same properties. I would then push those common attributes from BaseHandlerTag to the new class. Paul Niall Pemberton wrote: > On 6/29/07, Paul Benedict <[EMAIL PROTECTED]> wrote: >> Does anyone know why FormTag and OptionTag do not inherit from >> BaseHandlerTag? > > I don't know because I wasn't around at the start when these classes > were being developed. I'd hazard a guess though - most of the html > tags are geared around form field elements (text, textarea, checkbox > etc) which share alot of common attributes - and are defined in > BaseHandlerTag to avoid repetition. Looking at form tag - it doesn't > share many of those and so it makes no sense to inherit from a base > class that defines them all. The same is true for option tag. > > Niall > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]