donderdag 12 november 2009

richfaces calendar tag fails when nested in paragraph tag

When nesting the richfaces calendar tag in a paragraph tag (<p>) it doesn't work anymore. For example this code:
<p>#{bundle.availabilityDate} <rich:calendar id="validUntilDate"
     value="#{glossaryVersionController.glossaryVersion.availabilityDate}" /></p>

resulted in the popup not showing and this javascript error on rendering the xhtml page:
Fout: obj is null
Bronbestand: http://server:port/application/a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/calendar.js.xhtml
Regel: 97

When this richfaces calendar tag is used outside a paragraph tag all works well.

1 opmerking:

  1. Thank you. I was facing the same problem when using a rich:calendar component inside a h:label.