[
https://issues.apache.org/jira/browse/TOMAHAWK-810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505151
]
Tomáš Bubeník commented on TOMAHAWK-810:
----------------------------------------
http://forum.nextapp.com/forum/lofiversion/index.php/t3745.html
> =============================================== >
[Nima:]
I've found the solution. I'm posting it in case anyone else runs into the same
problem.
<https://bugzilla.mozilla.org/show_bug.cgi?id=238559>
QUOTE
Mozilla calls onload() for all HTTP transactions that succeeded. The
only
time it calls onerror() is when a network error happened. Inside the
onerror
handler, accessing the status attribute results in this exception:
Error: [Exception... "Component returned failure code: 0x80040111
(NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]" nsresult:
"0x80040111
(NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
Moral: for Gecko XMLHttpRequest implementation you seem not allowed to
study Ajax object in onerror handler as any attempt to read its
property raise an error.
The solution change the code to:
CODE
else {
//var statusValue = this.xmlHttpRequest.status; **COMMENTED
OUT**
this.dispose();
//throw "Invalid HTTP Response code (" + statusValue + ") and
no handler set."; **COMMENTED OUT**
}
I think this should really be implemented in the next release.
+
How about wrapping ... in a setTimeout function that never timeout.
CODE
try {
setTimeout(instance.processReadyStateChange(), 0);
} finally {
if (instance.disposed) {
// Release instance reference to allow garbage collection.
instance = null;
}
}
This seems to work according to some posters.
http://groups.google.com/group/comp.lang.j...e85eec1cd76e45a
http://www.thescripts.com/forum/threadnav436534-4-10.html
> commandNavigation2 in PanelNavigation2 is not working with ajax2jsf
> -------------------------------------------------------------------
>
> Key: TOMAHAWK-810
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-810
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Panel Navigation2
> Affects Versions: 1.1.5-SNAPSHOT, 1.1.5
> Environment: Firefox under linux/windows
> Reporter: tony tony
>
> There is a problem in integrating ajax4jsf:support component into
> t:commandNavigation2 and it seems does not working.
> Basically, i would like to load a page into section "userManagementContent"
> when commandnavigation is clicked. however,
> the page is not loaded at all and i have done the ajax4jsf configuration
> which include the filter at 1st of the filter in my web.xml.
> Also, i go this error from my firefox error console:
> Error: [Exception... "Component returned failure code: 0x80040111
> (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]" nsresult: "0x80040111
> (NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
> http://ibm-cormet:8080/billingSystem/a4j.res/org.ajax4jsf.framework.ajax.AjaxScript.jsf
> :: anonymous :: line 18" data: no]
> Source File:
> http://ibm-cormet:8080/billingSystem/a4j.res/org.ajax4jsf.framework.ajax.AjaxScript.jsf
> Line: 18
> here is my snippet sample code:
> <t:div id="navDiv" forceId="true">
> <t:panelNavigation2
> binding="#{beanUserManagement.panelNavigation21}"
> id="panelNavigation21" layout="list"
> activeItemClass="on" itemClass="off"
> renderAll="true" openItemClass="on">
> <t:commandNavigation2
> binding="#{beanUserManagement.commandNavigation21}"
> id="commandNavigation21">
> <t:outputText binding="#{beanUserManagement.outputText2}"
> id="outputText2"
> value="#{messageProperties[\'file\']}"/>
> <t:commandNavigation2
> binding="#{beanUserManagement.commandNavigation24}"
> id="commandNavigation24"
> value="Test 1">
> <a4j:support binding="#{beanUserManagement.support1}"
> id="support1" event="onclick"
> action="view_create"
> reRender="userManagementContent"/>
> <f:verbatim>
> ›
> </f:verbatim>
> <t:outputText
> binding="#{beanUserManagement.outputText5}"
> id="outputText5"
>
> value="#{messageProperties[\'file.create\']}"/>
> </t:commandNavigation2>
> </t:commandNavigation2>
> </t:panelNavigation2>
> </t:div>
> <t:panelGrid binding="#{beanUserManagement.userManagementContent}"
> id="userManagementContent" columns="1" width="100%"/>
> here is my faces navigation rule:
> <navigation-rule>
> <from-view-id>/secure/usermanagement/home.jsp</from-view-id>
> <navigation-case>
> <from-outcome>view_create</from-outcome>
> <to-view-id>/secure/test.jsp</to-view-id>
> </navigation-case>
> </navigation-rule>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.