Re: [T4] ValidationDelegate to edit attributes?

2007-05-10 Thread Norman Franke
Alas, I decided to use 4.0.x due to the instability of 4.1 for this project. I guess for now, I'll just print the label in red and nothing else. I can't do the "**" after the field since that completely messes up the formatting (everything being placed rather precisely.) I could probably

Re: [T4] ValidationDelegate to edit attributes?

2007-05-04 Thread Jesse Kuhnert
If using tap 4.1.2 (I know, sorry ) I think it just works as expected - but there's also some new api calls for handling stuff like this - ie appendAttribute() / getAttribute() / etc... http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/IMarkupWriter.html On 5/4/07, Norman Franke

[T4] ValidationDelegate to edit attributes?

2007-05-04 Thread Norman Franke
I'm trying to develop a customized ValidationDelegate that add a class to fields with an error. It works if the field doesn't already have a class attribute. What I want to do is add the class name to the existing attribute. Just adding one yields two class="" attributes, which doesn't seem