Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.0.5
-
None
Description
Example code that breaks:
<t:RadioGroup t:id="group1">
<t:Radio t:id="radio1" t:value="value1"/><t:Label for="radio1"/>
</t:RadioGroup>
Exception is:
No object of type org.apache.tapestry.RadioContainer is available from the Environment.
The reason is that the Label validation rendering calls Radio.getElementName() after the RadioGroup has been popped from the environment.
A simple fix is to cache the element name:
private String _elementName;
...
public String getElementName()
...
void beginRender(MarkupWriter writer)
Cheers,
Nick.