Problems with fiji 2.0, Icefaces 2.0.2 (Glassfish 3.1) and Flex 4.1

  • valis70
Posted: Tue, 05/24/2011 - 04:14

Hi,

I am having problems getting endpoint working with the products mentioned above. Param works perfectly, but not endpoint.

The only feedback I get is "Send failed" in the fault callback in the flashapp.

Have I found a bug, or have I missed something?

From my mxml:

<fx:Declarations>
<mx:RemoteObject id="myService" destination="bean">
<mx:method name="sessionThing" result="handleResult(event)" fault="handleFault(event)"/>
</mx:RemoteObject>
</fx:Declarations>
...
myService.endpoint = FlexGlobals.topLevelApplication.parameters.endpoint;
myService.sessionThing();

From my xhtml:


<fiji:swf src="resources/application.swf" bgcolor="#BBBBBB" width="700" height="200">
<f:param name="text" value="Some text"/>
<fiji:endpoint name="endpoint" binary="true" service="#{flowViewerIntegration.sesstionThing}"/>
</fiji:swf>

From my bean:


@ManagedBean(name = "flowViewerIntegration")
@RequestScoped
public class FlowViewerIntegration {
public Object sessionThing() {
// Some code
return null;
}
...
}

Thanks,

/Johan

We didn't test Fiji 2 with

  • maxkatz
  • 02/17/10
  • Tue, 05/24/2011 - 09:45

We didn't test Fiji 2 with IceFaces. IceFaces modifies the standard Ajax request and that's what might be causing the error.

Aha. When inspecting the

  • valis70
  • 05/18/11
  • Tue, 05/24/2011 - 22:50

Aha.

When inspecting the value of FlexGlobals.topLevelApplication.parameters.endpoint I get null. When inspecting the value of FlexGlobals.topLevelApplication.parameters.text I get the correct string value. Also when testing with a parameter set by a bean property <f:param name="text" value="#{flowViewerIntegration.name}"/>, the value is passed properly.

This makes be believe that I might have missed somthing while setting up the java project... Are there any gotchas that I might have missed?

Do you have any hints where I could start searching for the cause of the problem? I am willing to search for a solution and provide a patch if successfull.

Thanks,

/Johan

Can you create small example

  • maxkatz
  • 02/17/10
  • Thu, 05/26/2011 - 17:42

Can you create small example (.war file) where this issue is reproduced? We'll run it. Link it here via some free file sharing service.

Has anyone solved this

  • pablogog
  • 12/10/11
  • Sat, 12/10/2011 - 09:50

Has anyone solved this issue??? When will be available exadel fiji to icefaces?

Thanks for answer me.

Fiji 2 is only based on

  • maxkatz
  • 02/17/10
  • Sat, 12/10/2011 - 13:30

Fiji 2 is only based on standard JSF 2 so it "should" work with IceFaces. We didn't test it with IceFaces. IceFaces sometimes makes changes to how standard JSF works and that what might be causing the problem.