Login  Register

Re: RE: RE: Re: Session has expired When we are importing the Orbean form by using the <c:import/> in our cms

Posted by Erik Bruchez on Mar 16, 2011; 6:00am
URL: https://discuss.orbeon.com/Session-has-expired-When-we-are-importing-the-Orbean-form-by-using-the-c-import-in-our-cms-tp3343498p3380905.html

Haritha,

What you are hitting is a typical case of embedding Form Runner into a page.

Doing this requires some work. We have new two built-in ways of embedding:

* through the PHP-based TYPO3 CMS [1]
* through Liferay with the proxy portlet [2][3]

Both implementations do a few things to make the session work. In particular, Ajax requests must reach Orbeon with the same session cookie that loaded the form originally.

So with say c:import, Orbeon Forms responds with HTML but also with a session cookie (JSESSIONID), unless Orbeon Forms shares the same servlet session as your JSP. Then Orbeon Forms Ajax requests that reach the server must have that same JSESSIONID.

That might be the issue you are hitting.

Ideally, we would provide out of the box a component to do this, but haven't gotten around to doing that yet.

Now another but similar approach was to use what we called the Ajax portlet, which "include-form.jsp" and "with-dojo.jsp. Now this feature hasn't been tried in a while and it may be broken at the moment. We have some doc on this here:

http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-xforms#TOC-Ajax-portlet

-Erik

[1] http://wiki.orbeon.com/forms/doc/developer-guide/form-runner/typo3-extension
[2] http://wiki.orbeon.com/forms/doc/developer-guide/form-runner/form-runner-proxy-portlet-guide
[3] https://github.com/orbeon/orbeon-forms/blob/master/src/scala/org/orbeon/oxf/portlet/OrbeonProxyPortlet.scala

On Thu, Mar 10, 2011 at 10:00 PM, haritha <[hidden email]> wrote:
Hi,

Any pointers on the topic will be very helpful. Are there any configuration
settings apart from :

1.
2. appending "?orbeon-embeddable=true" to the form url

needed to make the sample jsps "include-form.jsp" and "with-dojo.jsp" work?


Regards,
Haritha

--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Session-has-expired-When-we-are-importing-the-Orbean-form-by-using-the-c-import-in-our-cms-tp3343498p3347531.html
Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.


--
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




--
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