Michael, we're using the stock FaceletPortletViewHandler to expose a facelet app as a portlet. Would be great to be able to use the same view handler to view the app directly. So, I'd like the source to your modifications if you are willing to share. Thanks.

On 3/18/2010 1:10 PM, Michael Freedman wrote:
The current facelets distributions contains a portlet demo that includes
the source for FaceletPortletViewHandler.java. This is currently the
best place to start. I have a version that I believe improves on this
that I put together for a recent workshop -- basically similar to the
above but it includes checks (that have no runtime dependencies on the
portlet api) to see if we are running in a portlet request and delegates
otherwise. I.e. its designed to work properly if the app is accessed
both directly via the web or from a portal AND even if deployed in a web
only installation -- no portlet container present. I hope to get this
later version online at some point when I can package this workshop as
an online tutorial .... but other higher priorities at the moment. I
would of course be happy to send this source to anyone who wants it.
-Mike-

On 3/18/2010 9:56 AM, Kito Mann wrote:
Michael,

What would be the best way to distribute the portlet version of the
Facelets view handler?
---
Kito D. Mann | twitter: kito99 | Author, JSF in Action
Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and
consulting
http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info |
twitter: jsfcentral
+1 203-404-4848 x3

Sign up for the JSFCentral newsletter:
http://oi.vresp.com/?fid=ac048d0e17



On Thu, Mar 18, 2010 at 9:44 AM, Michael Freedman
<michael.freed...@oracle.com <mailto:michael.freed...@oracle.com>> wrote:

Not quite true. Facelets native ViewHandler is servlet dependent.
The trick for running Facelets in a portlet environment via a
bridge is to provide an alternative ViewHandler using the portlet
APIs and configuring this ViewHandler in your faces-config.xml.
So yes the MyFace Portlet bridge doesn't inherently include this
ViewHandler (it requires facelet dependent code) it is easy to
add/generate to your app. In fact I gave a workshop recently
where one of the samples was to complete such a ViewHandler and
package in an app with the MyFaces Portlet Bridge to run a
facelets sample as a portlet.
-Mike-


On 3/18/2010 9:31 AM, ferna...@lozano.eti.br
<mailto:ferna...@lozano.eti.br> wrote:

Hi there,

AFAIK facelets is not supported by the current portlet-bridge
JSRs (both for PortletAPI 1.0 and 2.0)
so MyFaces Portlet Bridge, which is the RI for both JSRs, does
not support facelets.

[]s, Fernand Lozano



HiI'd like to know if there is a kind of reference
documentation available for running the MyFaces
Portlet Bridge with MyFaces 1.2.6, Facelets on LifeRay
5.2.3.Thanks in advanceMirko





--
Guy Rouillier

Reply via email to