-
1. Re: suggestionBox brakes if Tomahawk inputCalendar tag used
doctor12 May 6, 2008 1:41 PM (in response to sansaric)Yes.
I have same problem with t:inputCalendar in rich:simpleTogglePanel in IE7
<rich:simpleTogglePanel switchType="ajax">
<t:inputCalendar renderAsPopup="true"/>
</rich:simpleTogglePanel>
<a4j:log popup="false"/>
When open rich:simpleTogglePanel I see in log next messages:
...
debug[20:51:55,491]: script in response with src=/test-app/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12100887/prototype.PrototypeResourceLoader/prototype.js
debug[20:51:55,491]: append element to document
...
debug[20:51:55,681]: Evaluate script replaced area in document: //SimpleTogglePanelManager.add(new SimpleTogglePanel("content:f:p1", "true"));
error[20:51:55,691]: . Error message: Could not complete the operation due to error 80020101.
debug[20:51:55,691]: Evaluate script replaced area in document: //content_3Af_3A_5FidJsp51CalendarVar=new org_apache_myfaces_PopupCalendar();...
And error in IE7: Object doesn't support this action.
This error occur in rich file simpleTogglePanel.js on merge method:
...
SimpleTogglePanelManager.add = function(value) {
var tmp = new Object();
tmp[value.panelId] = value;
this.panels=this.panels.merge(tmp);
}
...
Problem in diff versions of prototype.js from rich & tomahawk.
I'm using tomahawk 1.1.5, richfaces 3.1.3.
In rich prototype.js version is 1.5.0
tomahawk - 1.4.0
My test page render HTML like:
...
script type="text/javascript" src="/test-app/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12100887/prototype.PrototypeResourceLoader/prototype.js"
script type="text/javascript" src="/test-app/prototype.js"
...
Where test-app/prototype.js - version 1.5.0 from rich sources and a4j:log look as:
...
debug[21:24:39,865]: script in response with src=/cer-web/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12100887/prototype.PrototypeResourceLoader/prototype.js
debug[21:24:39,865]: Such element exist in document
...
no errors in log and IE7 status bar -
2. Re: suggestionBox brakes if Tomahawk inputCalendar tag used
sansaric May 6, 2008 2:07 PM (in response to sansaric)Thanks for the reply. I ended up using the rich:calendar component instead of the tomahawk equivalent.