I'm trying to get with-dojo.jsp (in xforms-jsp\include-form) to work to embed an xform in an iframe.
and then create a with-dojo.php version. as instructed I amend config/properties-local.xml to add property <property as="xs:boolean" name="oxf.xforms.ajax-portlet" value="true" /> Restart orbeon-CE then launch ... http://localhost:8080/orbeon-CE/xforms-jsp/include-form/with-dojo.jsp "Loading ..." message is seen in iframe I focus on text field and the "Loading ..." message goes away. I type a name and click "Submit" but nothing happens. I've tried this in another fresh deployment of orbeon-CE but it still doesn't work. Is the base url expected to be "orbeon" and not "orbeon-CE" ?? ... How do I test if "Submit" onclick is triggering dojo js? ... When it's working I want to use Quercus php instead of jsp for emdedding xform in inframe. Something like this ... <?php $url = "../../xforms-sandbox/sample/submission-replace-all-1?orbeon-embeddable=true"; ?> <iframe src=<?php print $url; ?> scrolling="auto" width=100% height=100% frameborder="0"> </iframe> ... I've also tried launching include-form.jsp but get this (include?) error java.lang.NullPointerException org.apache.jsp.xforms_002djsp.include_002dform.include_002dform_jsp._jspService(include_002dform_jsp.java:84) |
I've now tried loading a different app into the iframe .. the eXist sandbox .. but the query "onclick" still does not work ...
href="http://localhost:8080/orbeon-CE/sandbox-exist/?orbeon-embeddable=true" I thought that I might try Fiddler2 to monitor client-server traffic (on proxy server port 8888) but can't get that to work. |
Trying to progress this .. searching for "oxf.xforms.ajax-portlet" I found this link which seemed relevant .. http://wiki.orbeon.com/forms/doc/developer-guide/xforms-remote-portlet-deployment and set the properties under RESOURCE/config/properties-local.xml <property as="xs:anyURI" name="oxf.url-rewriting.service.base-uri" value="http://localhost:8080/orbeon-CE" /> <property as="xs:string" name="oxf.url-rewriting.strategy.servlet" value="wsrp"/> <property as="xs:string" name="oxf.url-rewriting.wsrp.context" value=""/> <property as="xs:boolean" name="oxf.xforms.ajax-portlet" value="true"/> ...................................................................... but after restarting tomcat and launching http://localhost:8080/orbeon-CE/xforms-jsp/include-form/with-dojo.jsp I get this error page ... Orbeon Forms Error Type class java.lang.ClassNotFoundException Message javax.portlet.PortletException Stack Trace java.lang.ClassNotFoundException: javax.portlet.PortletException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) at org.orbeon.oxf.externalcontext.WSRPURLRewriter.rewritePortletURL(WSRPURLRewriter.java:79) at org.orbeon.oxf.externalcontext.WSRPURLRewriter.rewriteResourceURL(WSRPURLRewriter.java:87) ......... I commented out the properties one by one and this one causes the error <property as="xs:string" name="oxf.url-rewriting.strategy.servlet" value="wsrp"/> I'm not quite sure what it does or if it is needed for iframes. |
Administrator
|
In reply to this post by DL
> Restart orbeon-CE
In general you can deploy the Orbeon WAR to any context you want.
> > then launch ... > > http://localhost:8080/orbeon-CE/xforms-jsp/include-form/with-dojo.jsp > > > "Loading ..." message is seen in iframe > > I focus on text field and the "Loading ..." message goes away. > > I type a name and click "Submit" but nothing happens. > > I've tried this in another fresh deployment of orbeon-CE but it still > doesn't work. > > Is the base url expected to be "orbeon" and not "orbeon-CE" ?? I tried with-dojo.jsp with a recent build and I can confirm that it doesn't work. I had to change: ORBEON.xforms.Globals.baseURL = "/orbeon"; to: ORBEON.xforms.Globals.resourcesBaseURL = "/orbeon"; as this has changed in xforms.js. But now I am getting a NS_ERROR_ILLEGAL_VALUE with Firefox upon sending the Ajax request. Annoying but it seems that this is definitely broken and it might take some effort to fix it. -Erik -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |