Hi Francois,

the images are generate by the DefaultValidationDecorator.
You can provide your own (as i did :)) by implementing the 
ValidationDecorator interface or extending BaseValidationDecorator. 
Then you have to replace the DefaultValidationDecorator 
in the environment with your implementation...

@Inject
private Environment environment;
 
@Inject
private ThreadLocale threadLocale;

public void setupRender() {
    environment.push(ValidationDecorator.class, 
           new CssValidationDecorator(environment,threadLocale));
}

.. and every Form component on your page will use this decorator

the drawback is that you have to do it in every page you want
to replace the ValidationDecorator (alternatively you can have a
BasePage that every page in your project extends). i've already
file a JIRA so you can change it globally.

https://issues.apache.org/jira/browse/TAPESTRY-1754

g,
kris




Francois Armand <[EMAIL PROTECTED]> 
13.12.2007 14:55
Bitte antworten an
"Tapestry users" <users@tapestry.apache.org>


An
Tapestry users <users@tapestry.apache.org>
Kopie

Thema
Re: "error" image near fields and text browser : remove it ?







Francois Armand wrote:
> Hello,
> [...]
> This behaviour is problematic with text browser.
> Well, you will say that nobody use them anymore, but in the case of 
> blinded people, they use an equivalent that read pages for them, and 
> don't care of the CSS. The problem is that for this kind of browser, 
> all fields seems to be on fault since the first access to the form.

Well, it seems that a lot of things are broken with text browser. It 
seems that a lot of form do not work, perhaps due to some persisted value.
I think/hope it is due to the alpha status, and that it will evolve in a 
near future.

-- 
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
-----------
InterLDAP - http://interldap.org 
FederID - http://www.federid.org/
Open Source identities management and federation


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


Reply via email to