[ http://issues.apache.org/jira/browse/TAPESTRY-314?page=all ]
Howard M. Lewis Ship closed TAPESTRY-314:
-----------------------------------------
Resolution: Fixed
accesskey attribute works, as an informal parameter. However, there's the
issue that the display label should probably identify the accesskey (usually by
underlining it). The displayName property won't have that markup (it needs to
be simple text). Perhaps the FieldLabel could add the necessary underline.
Also, may need to revisit the relationship between the FieldLabel and the
validation delegate; perhaps there should be another delegate decoration
method, so that the delegate can write a CSS style id or class attribute into
the <label>. Currently, the decorations go around the <label>.
> FieldLabel should generate a <label> element
> --------------------------------------------
>
> Key: TAPESTRY-314
> URL: http://issues.apache.org/jira/browse/TAPESTRY-314
> Project: Tapestry
> Type: Improvement
> Components: Framework
> Versions: 4.0
> Reporter: Howard M. Lewis Ship
> Assignee: Howard M. Lewis Ship
> Fix For: 4.0
>
> Currently, the FieldLabel component just outputs a string (and has hooks into
> the validation delegate).
> Ideally, it should generate a <label> element around the string.
> Support for informal paramater, specifically to support accesskey, would work.
> The problem is that the for attribute references a form element's id
> attribute, which is typically not set by Tapestry (TextField, ValidField,
> etc., set the name).
> To make this work we either need to generate unique ids for form control
> elements, or only generate the <label> if the element includes a "id"
> informal parameter. Not sure which is the lesser evil.
--
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]