Team,
i am running the described setup on a maven based jetty (8.0.1) and get some strange exceptions in IE8 (only!).
The Error that IE is given me, looks like:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
Timestamp: Wed, 29 Feb 2012 14:09:38 UTC
Message: Unexpected call to method or property access.
Line: 23
Char: 22640
Code: 0
URI: http://127.0.0.1:8080/javax.faces.resource/jquery/jquery.js.jsf?ln=primefaces&v=3.0.1
The described piece of code in 'javax.faces.resource/jquery/jquery.js.jsf?ln=primefaces&v=3.0.1' on line 23, char 22640 is the '{' after the 'finally':
resolveWith:function(bw,bv){
if(!bs&&!bu&&!br){
bv=bv||[];
br=1;
try{
while(bt[0]){
bt.shift().apply(bw,bv)
}
}finally{
bu=[bw,bv];
br=0
}
}
return this
}
Here the JSF XHTML to reproduce this error:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<f:view contentType="text/html">
<h:head>
</h:head>
<h:body>
<h:form>
<h:form>
<p:dialog id="testDialog" header="Test Dialog" modal="true"
widgetVar="testDialog" dynamic="true" resizable="true"
maximizable="true" showEffect="fade" hideEffect="explode">
<h:outputText value="Dialog!" />
</p:dialog>
<p:commandLink styleClass="button" oncomplete="testDialog.show()">
<h:outputText value="Click me!" />
</p:commandLink>
</h:form>
</h:form>
</h:body>
</f:view>
</html>
The following JSF XHTML is not throwing the error:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<f:view contentType="text/html">
<h:head>
</h:head>
<h:body>
<h:form>
<p:dialog id="testDialog" header="Test Dialog" modal="true"
widgetVar="testDialog" dynamic="true" resizable="true"
maximizable="true" showEffect="fade" hideEffect="explode">
<h:outputText value="Dialog!" />
</p:dialog>
<p:commandLink styleClass="button" oncomplete="testDialog.show()">
<h:outputText value="Click me!" />
</p:commandLink>
</h:form>
</h:body>
</f:view>
</html>
The difference is the nested form in the first example. This is heavily idealized example but reflects the same behavior if i nest components and dialogs. Whenever a form is nested, the above error occurs in IE8. FF and others just open the Dialog as expected.
If would avoid to nest forms but this is impossible because mojarra would not allow me to put, e.g. a commandLink that is contained in a component without sorrounding it by a form.
CommandButton is behaving the same way. I've read several other approaches and bugs related to the error message of the IE but did'nt found any solution or useful hint.
The following would be interesting to me:
a) Are you able to reproduce this given behavior? b) Do you have any ideas how to work around or solve this (maybe updating jquery in some way)?
Fist i attempted to validate my HTML5, but even with non-HTML5 and very reduced html it occurs.
Thanks for any help, hint or maybe link to any information in advance!
Regards,
the Dude
PS: Please if you think you know something, push me to put some more details or required resources, i would be lucky to also help others here!