Re: Re: Orbeon Form Builder/Form Runner for a regular web site?

Posted by darrencruse on
URL: https://discuss.orbeon.com/Orbeon-Form-Builder-Form-Runner-for-a-regular-web-site-tp2552615p2964203.html

Hi Erik (and Sam),

Thanks for the info I just today saw your comments.

FWIW yesterday I'd tried the built-in LifeRay Web Proxy Portlet to play an Orbeon Form running through Form Runner and it presents the new/update page pretty good (with the exception of the CSS or something being off on that YUI rich text editor).

But if I try and do anything (even just click in a field) errors occur.  It appears there's a point where javascript tries to parse the url context to use in ajax calls directly out of the browser address line and winds up with "undefined" and otherwise I think it was a relative url anyway that wouldn't have gotten back to orbeon (i.e. it was pointing back at the "7cogs" page I was testing on).  Plus there's some reference to a "formID" variable that's undefined.  So anyway it looked promising if I knew more it seems like probably this could be made to work(?)

I'm curious was the Ajax Portlet approach significantly different than this Web Proxy Portlet approach?  I'm a little unclear (and was there truly an "Ajax Portlet" i.e. that you deploy into LifeRay which talks AJAX to Orbeon I presume?).

I hadn't pursued the Ajax Portlet approach btw mainly just because I didn't see too much about it and I had a feeling it wasn't supported anymore since that page - the one you gave the link to - makes reference to an "Ajax Portlet section of the Developer Guide" which appears to no longer exist?

Also I did try the nightly Orbeon-CE.war deployment to the latest Liferay 6.0.5 (on Tomcat), following those instructions where you drop it in LifeRay's deploy directory, and I did see the Orbeon Portlet and I dropped that on a portal page.  It did display the main Orbeon page with those examples and form builder.  The XForms Controls sampler seems to work well but I do get errors at various places otherwise.

e.g. If I try and choose to configure Preferences on the portlet itself, it gives the error:

      Cannot load "/apps/portlet-welcome/page-flow-edit.xml" with webapp loader

With other examples, like the Contacts one etc. the "list" page appears pretty good, but clicking "New" gives:

22:08:21,443 ERROR [SerializableSessionAttributeListener:39] org.apache.commons.httpclient.HttpState is not serializable and will prevent this session from being replicated
22:08:21,456 ERROR [PortletServlet:96] javax.portlet.PortletException: java.lang.IllegalArgumentException: Content type cannot be null
javax.portlet.PortletException: java.lang.IllegalArgumentException: Content type cannot be null
        at org.orbeon.oxf.portlet.OrbeonPortlet2Delegate.render(OrbeonPortlet2Delegate.java:240)
        at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:101)

(and a little further down)

t22:10:12,696 ERROR [jsp:154] java.lang.IllegalArgumentException: Content type cannot be null
        at com.liferay.portlet.MimeResponseImpl.setContentType(MimeResponseImpl.java:133)

The DMV form gives a different error:

      java.lang.UnsupportedOperationException
     <xforms:instance src=""> with relative path within a portlet

Anyway don't know if this is helpful. (Erik) I think you wrote that the problems with deploying to LifeRay were fixed in the latest nightly build but that's what I was trying maybe there's something else I have to do?

Truthfully if it had worked that would exciting, though I wasn't clear even then how I would have had the portlet skip past that examples page and start directly displaying my own portlet that I want to present.  But if that were possible I would have been encouraged...