[opencms-dev] plans for JSF integration in OpenCms? (was: Problem integrating jsf-ri 1.2 p4 with OpenCms7.0.3)
Martin Höller
martin.hoeller at xss.co.at
Mon Mar 10 14:53:54 CET 2008
Hi all!
This mail is an answer to previous mails in this thread as well as a
question for OpenCms developers at Alkacon about future plans regarding JSF
integration.
First of all: at the moment integration of OpenCms 1.2 seems not possible
without code chages in OpenCms :-(
Here are some details and background information:
When using JSF, the faces servlet is the one that gets the request first (at
least that's how I tried it).
For a GET request the faces servlet skips all JSF phases except the Render
Response phase [0]. This phase dispatches the request to the OpenCms
servlet which basically exports the JSP page to real filesystem and
dispatches to the JSP servlet.
The JSP servlet causes the JSF tag <f:view> to be rendered, which constructs
the view but doesn't output anything after <f:view>. The dispatch from the
JSP servlet returns to the OpenCms servlet which in turn returns to the
faces servlet. Only output before the <f:view>-tag is rendered so far.
The faces servlet (actually the ViewHandler) calles encodeAll() from the
view-tag to create output, thus JSF output is written in the wrong order
and OpenCms doesn't know the correct size of the created output.
It seems to me the correct solution would be to add a new type "JSF" (just
like JSP) into OpenCms which forwards to the faces (or maybe even facelets)
servlet. This way JSF pages would be handled similar to JSPs and OpenCms
would keep control over other servlets.
Any comments? I would especially like to hear from Alkacon people what the
plans regarding JSF are.
kind regards,
- martin
[0]https://javaserverfaces.dev.java.net/servlets/BrowseList?list=users&by=thread&from=1064750
--
Martin Höller | martin.hoeller at xss.co.at
*x Software + Systeme | http://www.xss.co.at/
Karmarschgasse 51/2/20 | Tel: +43-1-6060114-30
A-1100 Vienna, Austria | Fax: +43-1-6060114-71
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20080310/db6d0ac8/attachment.sig>
More information about the opencms-dev
mailing list