Hi,
I've got a possible bug in Richfaces 3.3.3.
I placed a calendar inside a modalpanel. The calendar input field + icon is displayed, but the date chooser popup doesn't open. It works in Chrome 10, but not in IE8 or Firefox 3.6.15.
IE says:
Message: Object required
Line: 88
Character: 4
Code: 0
FF says:
Error: obj is null
Line: 88
The JS-Code in question is:
do{if(obj.id==id)
Essentially my JSF looks like this:
<html ...>
<head>
...
</head>
<body>
<a4j:form id="tnForm">
...some other form...
</a4j:form>
<rich:modalPanel id="printPanel" moveable="true" resizable="false" minHeight="350" minWidth="300">
<a4j:form id="dateForm">
<rich:calendar id="myCalendar" value="#{myBean.myDate}" datePattern="#{labels.calendarDateTimePattern}"></rich:calendar>
<h:commandButton value="#{labels.someAction}" action="#{myBean.someAction}"></h:commandButton>
</a4j:form>
</rich:modalPanel>
</body>
</html>
Any suggestions?
I've got it working: I had a <div> around the calendar for layout purposes. This alters the HTML DOM hierarchie and confuses the nextSibling-implementation to find certain elements in calendar.js, I guess.