> if you want total control you can put this
> in the .properties of the page with the form
>
> formid.email.Required=Enter your email
> formid.subject.Requried=Subject is required
Is it not possible to put this in the properties file for the component?
I.e.:
// Constructor for Page
public MyPage( String id )
{
add( new MyForm( "myForm" );
}
// Constructor for Form
public MyForm( String id )
{
add( new MyComponent( "myComponent" );
}
So in the properties file MyComponent.properties:
email.Required=Enter your email
subject.Requried=Enter the subject
Or are the two ways you described in your last message the only ways to
possibly resolve customised messages (unless, I suppose, if I create my
own resolver)?
Essentially, I would like to have finer-grained control over my
validation messages, but not need to have to repeat them for every page.
So:
formid.email.Required = blah
requires me to rewrite them for every page, but
Required = Enter your ${label}
is not really as fine-grained as I'd like it to be.
Thanks again,
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]