Issue Type: Bug Bug
Affects Versions: 4.2.2.Final
Assignee: Unassigned
Components: component-input
Created: 15/Jun/12 12:00 PM

If you set enableManualInput="true" in a rich:calendar, you get a NullPointerException :

Caused by: java.lang.NullPointerException
	at org.richfaces.renderkit.html.CalendarRenderer.convertToBoolean( [richfaces-components-ui-4.3.0-SNAPSHOT.jar:4.3.0-SNAPSHOT]
	at org.richfaces.renderkit.html.CalendarRenderer.doEncodeEnd( [richfaces-components-ui-4.3.0-SNAPSHOT.jar:4.3.0-SNAPSHOT]
	at org.richfaces.renderkit.RendererBase.encodeEnd( [richfaces-components-ui-4.3.0-SNAPSHOT.jar:4.3.0-SNAPSHOT]

Searching a bit, it seems it looks for a "readonly" attribute : see , there is a component.attributes['readonly'] but on last VDL of calendar ( ), there is no "readonly" attribute and I couldn't find any in RichFaces component Java code neither.

So my guess would be :

  • if enableManualInput="false", then the test at line 270 of CalendarRenderer ends and all works fine
  • if enableManualInput="true", then the same test try to convert "readonly" attribute to boolean, but since it doesn't exist, it tries to convert a null value and bim, NPE !
Environment: Any
Project: RichFaces
Priority: Critical Critical
Reporter: Paul Dijou
Security Level: Public (Everyone can see)
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: