myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger" <mkien...@gmail.com>
Subject Re: core, myfaces-builder-plugin: issues noticed
Date Wed, 04 Jun 2008 20:21:31 GMT
On 6/4/08, Leonardo Uribe <lu4242@gmail.com> wrote:
>  * @JSFJspProperty name = "message" inheritedTag="true" returnType =
> "java.lang.String" longDesc = "alternate validation error message format
> string"
>   */
> public class CSVValidator extends ValidatorBase
>
> Inheritance of properties for converters and validators are not supported
> (in my concept there is no sense to allow this, but if there is a strong
> reason we can study the impact and change it), so all properties defined on
> the parent (in that case ValidatorBase) should be defined again with
> inheritedTag="true".

I guess I'd have to disagree that there's no sense in allowing
inheritance of properties on validators and converters.  The original
goal of the ValidatorBase class was to provide a message properties to
all subclasses.

Why would you extend a validator or converter if you weren't planning
on using the same properties of the parent?

Mime
View raw message