Re: [Chiba-users] Forwarding to other Servlets/Forms
Creators discontinued Chiba & founded betterFORM http://betterform.de
Brought to you by:
chibaxforms,
windauer
From: Klotz, L. <Lei...@xe...> - 2007-07-23 21:07:22
|
Joern, I have a question about this and about wiki section "passing XForms to the filter" [1]. It says "While this is the easiest way to integrate it comes with a performance penalty cause XFormsFilter has to read the response stream to detect if there's actually XForms markup in there. If you're looking for efficiency you should maybe go with the option below." Then option below is then "passing XForms as a request attribute." I can imagine that if I pass a request attribute that the XFormsFilter will not search the response for XForms, and it will be fast. But it looks to me from reading the code at [2] method isXFormsResponse that the converse is not true: if I don't set the request attribute, then the XFormsFilter will always search the response for XForms, and it will be slow for pages that don't use XForms. If I'm wrong (or you have a better plan) please let me know. Otherwise I'd recommend you include a config option in web.xml for the filter that lets the integrator specify that XFormsFilter should not search, and only look for the request attributes. Finally, in isXFormsResponse there is a "todo" that asks "re there other situations when ns is there but no processing is desired?" Aside from the above answer (that some integrators may want explicit control for speed), there are cases where a template may define a namespace but not use it, and the namespace declaration alone may be copied out. XSLT would also do this. [1] https://www.chibaxforms.org/cgi-bin/trac.cgi/wiki/UsingXformsFilter [2] https://www.chibaxforms.org/cgi-bin/trac.cgi/browser/trunk/chiba-web/src /org/chiba/web/filter/XFormsFilter.java=20 Leigh. -----Original Message----- From: chi...@li... [mailto:chi...@li...] On Behalf Of Joern Turner Sent: Thursday, July 19, 2007 2:32 PM Cc: chi...@li... Subject: Re: [Chiba-users] Forwarding to other Servlets/Forms ... Think you'll be interested in the new XFormsFilter of upcoming Chiba Web 2.1: Chiba Web will use the XFormsFilter instead of ChibaServlet by as=20 default config in future versions. |