myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guy Rouillier <>
Subject Re: Tutorial for MyFaces PortletBridge with Facelets
Date Mon, 22 Mar 2010 04:56:58 GMT
Thanks.  For some reason I didn't get that one email, but I found it in 
the archives.

On 3/18/2010 6:41 PM, Michael Freedman wrote:
> It was attached to the e-mail I sent a little while ago (11:12am).
> Note:  this code can only be run with a compliant JSR 301 or 329 Bridge.
> I.e. it relies on the standard/spec which states the bridge adds a
> request attribute prior to activating Faces that allows one to check to
> see if you are running within a portlet request without testing
> instanceof -- hence avoiding runtime dependencies on portlet classes.
> -Mike-
> On 3/18/2010 12:01 PM, Guy Rouillier wrote:
>> 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 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. | | JSF/Java EE training and
>>>> consulting
>>>> - JavaServer Faces FAQ, news, and info |
>>>> twitter: jsfcentral
>>>> +1 203-404-4848 x3
>>>> Sign up for the JSFCentral newsletter:
>>>> On Thu, Mar 18, 2010 at 9:44 AM, Michael Freedman
>>>> < <>>
>>>> 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,
>>>> <> 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

View raw message