[ 
https://issues.apache.org/jira/browse/TAPESTRY-1647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12543182
 ] 

Howard M. Lewis Ship commented on TAPESTRY-1647:
------------------------------------------------

This is not a big deal, with the provision that in western languages with 
left-to-right rendering, the label will usually precede the Field, which means 
that the error state of the field will not be known at the time the label 
renders.

You can see built in logic to defer part of the rendering of the Label until 
the end of the Heartbeat, to a) link the Label to the Field (the Field will 
have a valid clientId after it renders) and b) to change the CSS class of the 
Label if the field is in error.  

To mark a field required may require similar logic, though required is more 
likely to be valid before the Field renders than its error state.

> Need to be able to render elements before and after form labels
> ---------------------------------------------------------------
>
>                 Key: TAPESTRY-1647
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1647
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0.6
>            Reporter: Dan Adams
>            Assignee: Dan Adams
>
> The ValidationDecorator interface allows you to render additional attributes 
> on the label, elements before and after the field, and attributes on the 
> field. Need to add beforeLabel() and afterLabel() methods.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to