Label component needs the ability to optionally render its body.
----------------------------------------------------------------
Key: TAPESTRY-1642
URL: https://issues.apache.org/jira/browse/TAPESTRY-1642
Project: Tapestry
Issue Type: Improvement
Components: tapestry-core
Affects Versions: 5.0.5
Reporter: Nick Westgate
Priority: Minor
The component label scheme works well assuming validation and label strings are
to be the same.
This is often not desired, however. E.g:
[ ] itemName1 (some note)
[ ] itemName2 (a different note)
...
Our use-case is points displayed as part of a todo item name:
[ ] 3 - ItemName1
[ ] 7 - ItemName2
...
Using code something like this:
<div t:type="loop" t:source="itemList" t:value="item" t:volatile="true">
<input t:type="checkbox" t:id="itemCheck" t:value="item.done"
t:label="item.name"/>
<label t:type="label" t:for="itemCheck">
<span class="points">${item.points}</span> - ${item.name}
</label>
</div>
Rather than another parameter, it would be nice if label could simply check for
a body.
If present, render the body and disable the rendering of the standard label
name.
Cheers,
Nick.
--
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]