Login  Register

OrbeonXFormsFilter never forwards to Orbeon

Posted by Karolin Heiss on Nov 30, 2009; 1:14pm
URL: https://discuss.orbeon.com/OrbeonXFormsFilter-never-forwards-to-Orbeon-tp931256.html

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