Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.1.2-SNAPSHOT
-
None
-
Doesn't matter.
Description
If you use the <t:messages> tag in conjunction with <h:outputLabel> without specifying the 'for' attribute, the page will not render and an exception will be thrown:
java.lang.NullPointerException: expr
at javax.faces.component.UIComponentBase.findComponent(UIComponentBase.java:210)
at org.apache.myfaces.renderkit.html.ext.HtmlMessageRenderer.createOutputLabelMap(HtmlMessageRenderer.java:200)
This could be easily avoided by declaring the 'for' attribute as required in the TLD.