Hi all,
I am using orbeon as Filter (seperate deployment mode) on an URL Pattern like "/xform-render/" Everything works fine, except sometimes I wan't Orebeon to ignore the output, like when there is an PDF generated, after submitting an orbeon form. eg . Client submits an XFORM to /xform--render/ -> everything gets looped thorugh /orbeon/ but the return should be an PDF , TIFF , SVG , sended through Httpreponse Output stream ! can anybody help ? |
Hi Christian
I can't offer a solution, but just to say that I've got a similar requirement for separate *portlet* deployment mode. I would like certain portlet render requests to not have to be processed for Xforms content. Mainly because the Xforms filter expects a full XHTML document whereas the portlet specification expects XML fragments. I suspect our two problems have a single solution... -Stian -----Original Message----- From: ceebee [mailto:[hidden email]] Sent: 18 January 2011 17:05 To: [hidden email] Subject: [ops-users] supressing orbeonrendering with seperate deployment mode Hi all, I am using orbeon as Filter (seperate deployment mode) on an URL Pattern like "/xform-render/" Everything works fine, except sometimes I wan't Orebeon to ignore the output, like when there is an PDF generated, after submitting an orbeon form. eg . Client submits an XFORM to /xform--render/ -> everything gets looped thorugh /orbeon/ but the return should be an PDF , TIFF , SVG , sended through Httpreponse Output stream ! can anybody help ? -- View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/supressing-orbeonrende ring-with-seperate-deployment-mode-tp3223490p3223490.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 |
In reply to this post by ceebee
Hi Christian!
Can you move your script, that generates PDF, to another directory? I see no other option, than to play with paths in XFormsFilter's <url-pattern> element, see http://www2.roguewave.com/support/docs/leif/leif/html/bobcatug/7-3.html Tambet On 18.01.2011 19:05, ceebee wrote: > Hi all, > > I am using orbeon as Filter (seperate deployment mode) on an URL Pattern > like "/xform-render/" > > Everything works fine, except sometimes I wan't Orebeon to ignore the > output, like when there is an PDF generated, after submitting an orbeon > form. > > eg . Client submits an XFORM to /xform--render/ -> everything gets looped > thorugh /orbeon/ but the return should be an PDF , TIFF , SVG , sended > through Httpreponse Output stream ! > > can anybody help ? > -- 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 |
Administrator
|
In reply to this post by ceebee
So you mean that your servlet produces content that is not XML?
Can you make the XForms filter not kick in for URLs that don't generate XML?
-Erik
On Tue, Jan 18, 2011 at 9:05 AM, ceebee <[hidden email]> wrote:
-- 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 |
I am not quite sure if this covers my problem ...
The request XML sended in the POST should be handled
through orbeon ( XML Validation etc) , only the response should be modified ...
The current workaround is, I copy the XML Document
recieved from the POST into the session and in the next step i open a different
URL where the orbeon Filter won't match and deliver the non XML data there.
I just had the hope there would be another way !
best regards
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Erik Bruchez
So you mean that your servlet produces content that is not XML?
Sent: Donnerstag, 20. Januar 2011 04:14 To: [hidden email] Subject: [ops-users] Re: supressing orbeonrendering with seperate deployment mode Can you make the XForms filter not kick in for URLs that don't generate
XML?
-Erik On Tue, Jan 18, 2011 at 9:05 AM, ceebee <[hidden email]>
wrote:
-- 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 |
Perhaps this is what you are looking for:
http://www.orbeon.com/orbeon/doc/processors-serializers-http On Thu, Jan 20, 2011 at 9:25 AM, Christian Belka <[hidden email]> wrote:
-- 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 |
I
don't get the idea ...
I have
a selfwritten servlet which is mapped to the Path
/application/orbeon
orbeon
is mapped as filter to the url mapped above ...
in the
normal case the servlet receives XForms documents (passed through the filter )
and answers with normal XHTML or XForms (which will be rendered by the
orbeon filter )
Now in
some certain cases the servlet respondes with non-XForm Data , like PDF's oder
images ... then Orbeon also wants to render the response, which leads to errors
...
This
is my problem ...
At the
moment I solved the problem by linking to another servlet which generates the
PDF from a different URL, but therfore i have to store my complete forms in the
Session because redirecting the post dosn't work also ...
i hope
this explains my problem better
best
regards
christian From: software developer [mailto:[hidden email]] Sent: Donnerstag, 20. Januar 2011 13:01 To: [hidden email] Subject: [ops-users] Re: RE: Re: supressing orbeonrendering with seperate deployment mode http://www.orbeon.com/orbeon/doc/processors-serializers-http On Thu, Jan 20, 2011 at 9:25 AM, Christian Belka <[hidden email]>
wrote:
-- 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 |
Hi Christian!
If you can alter the servlet code, then you could create two servlets: one that does server-side processing and creates PDF; and another that generates XForms. You put the first servlet into directory that is not processed by XFormsFilter, and other one into directory where XFormsFilter kicks in. Now, you always do submit to the first servlet. If the request parameters ask for PDF, then you return PDF. If navigation to another form is requested, then you do redirect (ServletResponse.sendRedirect()) to second servlet and pass on parameters, that are required. Of course you can pass only GET parameters this way. Actually separating server-side processing code and user-interface code with Post/Redirect/Get pattern is pretty common for web development: http://en.wikipedia.org/wiki/Post/Redirect/Get Alternative solution would be to define two submissions in XForms, one goes to first servlet, another one goes to second. Probably you have two different buttons in user interface for downloading PDF and moving to another form? Then those buttons call different XForms submissions. Hope this helps. Tambet On 20.01.2011 14:58, Christian Belka wrote:
-- 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 |
Administrator
|
I guess the filter could check the content-type of the document returned and not forward it for XForms processing. You can have a quick look at the filter servlet source:
It might not be too hard to implement this! -Erik
On Thu, Jan 20, 2011 at 5:19 AM, Tambet Matiisen <[hidden email]> wrote:
-- 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 |