>From "Jesse Kuhnert (JIRA)" <[email protected]>:

>      [ http://issues.apache.org/jira/browse/TAPESTRY-975?page=all ]
> 
> Jesse Kuhnert reassigned TAPESTRY-975:
> --------------------------------------
> 
>     Assignee: Jesse Kuhnert

You plans on this? 
Do you have in mind anything similar to what i describe in
http://issues.apache.org/jira/browse/TAPESTRY-550 ?

> 
> > Overriding ValidationDelegate and adding a "class" attribute results in
> duplicate attributes
> >
>
--------------------------------------------------------------------------------------------
> >
> >                 Key: TAPESTRY-975
> >                 URL: http://issues.apache.org/jira/browse/TAPESTRY-975
> >             Project: Tapestry
> >          Issue Type: New Feature
> >          Components: Framework
> >    Affects Versions: 4.0.2
> >            Reporter: Matt Raible
> >         Assigned To: Jesse Kuhnert
> >             Fix For: unspecified
> >
> >
> > I have the following in my custom ValidationDelegate:
> >     public void writeAttributes(IMarkupWriter writer, IRequestCycle cycle,
> >                                 IFormComponent component, IValidator
> validator) {
> >         if (isInError()) {
> >             String cssClass = ((component.getBinding("class") != null) ?
> >                                
> component.getBinding("class").getObject().toString() : "");
> >             writer.attribute("class", cssClass + " error");
> >         }
> >     }
> > However, rather than just writing a single "class" attribute, it writes
> two:
> > class="text large error" class="text large" 
> > Ideally, only one "class" attribute gets written.  Maybe IMarkupWriter nees
> an appendAttribute() method, or it just needs to be smart enough to detect
> duplicates?
> 
> -- 
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
> 
>         
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to