[jboss-user] [JBoss Seam] - Seam Remoting failing on Firefox 2.0

cvigouroux do-not-reply at jboss.com
Thu Dec 27 09:34:21 EST 2007


Hi, I'm having some trouble to use Seam Remoting on Firefox. My example works fine on IE 6, but when debugging within firebug I catch the following exception :

[Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: :: anonymous :: line 1" data: no]

Here are the versions :
- Firefox 2.0.0.11
- Seam 2.0.1CR1

Did anybody have some trouble with this setup ? Did I something wrong ?

Here is my example code :

---------------------------------------------------------------------------------
"Remote" interface
---------------------------------------------------------------------------------
@Local
public interface HelloAction {  
    
	@WebRemote
	public String getAllIsoCodes();
	
	@WebRemote
	public List getPays();
}

---------------------------------------------------------------------------------
XHTML page
---------------------------------------------------------------------------------
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                             "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a="http://richfaces.org/a4j" template="layout/template.xhtml">

	<ui:define name="body">

		
		

		
  //<![CDATA[

  function getAllIsoCodes() {
    Seam.Component.getInstance("helloAction").getAllIsoCodes(getAllIsoCodesCallback);
  }

  function getAllIsoCodesCallback(result) {
    alert(result);
  }
  
  function listePays() {
    Seam.Component.getInstance("helloAction").getPays(listePaysCallback);
  }

  function listePaysCallback(result) {
    alert(result[0].getCdpayiso());
  }

   // ]]>


		<h:messages globalOnly="true" styleClass="message" />

		<rich:panel>
			<f:facet name="header">helloAction</f:facet>

			<h:form id="helloActionForm">

				All Iso Codes
				Countries List

			</h:form>

		</rich:panel>

	</ui:define>

</ui:composition>


Thanks for your answers !


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115708#4115708

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115708



More information about the jboss-user mailing list