Login  Register

Re: OrbeonXFormsFilter never forwards to Orbeon

Posted by Erik Bruchez-3 on Dec 01, 2009; 3:46am
URL: https://discuss.orbeon.com/OrbeonXFormsFilter-never-forwards-to-Orbeon-tp931256p931831.html

Karolin,

There was recently new code put in place to prevent exceptions when
the forwarding servlet had already read the request body.

I reproduced this and fixed the filter:

Bug:
http://forge.ow2.org/tracker/index.php?func=detail&aid=314525&group_id=168&atid=350207

Commit:
http://github.com/orbeon/orbeon-forms/commit/3a485986b75d1c1cbc9e6a186febdec33e3952aa

Please let us know if that helps.

-Erik

On Mon, Nov 30, 2009 at 5:14 AM, Karolin Krieg <[hidden email]> wrote:

> Hello
>
> I am working with the latest version of Orbeon (20091123) and Liferay
> in separate deployment. A custom portlet should show my xforms data.
>
> With "oxf.xforms.renderer.document" I can set the xforms content to
> need to be rendered by Orbeon. So I set this in the doView() of my
> portlet:
>
>  public void doView(RenderRequest request, RenderResponse response)
> throws PortletException, IOException {
>      String xform = readFileAsString("C:\\TEMP\\testxforms.jsp");
>
> request.setAttribute(OrbeonXFormsFilter.RENDERER_DOCUMENT_ATTRIBUTE_NAME,
> xform);
>    }
>
> OrbeonXFormsFilter gets called and  "oxf.xforms.renderer.document" is
> set, but OrbeonXFormsFilter never forwads my content to render because
> responseWrapper.getContent() is null (OrbeonXFormsFilter line 100)
>
> I wonder when and how the content should get filled?
> I tried a hack and directly set the content in the OrbeonXFormsFilter
> which actually works fine:
>
>
>            if
> (httpRequest.getAttribute(RENDERER_DOCUMENT_ATTRIBUTE_NAME) != null) {
>              String contentFromAtr =
> requestWrapper.getAttribute(RENDERER_DOCUMENT_ATTRIBUTE_NAME).toString();
>              if (contentFromAtr != null) {
>                responseWrapper.getWriter().write(contentFromAtr);
>
> httpRequest.setAttribute(RENDERER_DOCUMENT_ATTRIBUTE_NAME,
> contentFromAtr);
>              }
>            }
>
> Can anybody tell me how not to edit the OrbeonXFormsFilter make the
> content be set?
>
> Thanks
> Karolin
>
>
>
> --
> 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