You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bridges-user@portals.apache.org by Carlo Cavallieri <cc...@castgroup.it> on 2008/04/09 17:47:08 UTC
PortletPreferences
Hi all,
how can i access the PortletPreferences from an action with the bridge?
Is there a standard way or an alternative solution to have something similar to the PortletPreferences?
thanks
Re: PortletPreferences
Posted by Carlo Cavallieri <cc...@castgroup.it>.
ok, thanks
----- Original Message -----
From: "Ate Douma" <at...@douma.nu>
To: bridges-user@portals.apache.org
Sent: Sunday, June 8, 2008 1:43:59 AM GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
Subject: Re: PortletPreferences
Carlo Cavallieri wrote:
>
> Hi all,
>
>
>
> how can i access the PortletPreferences from an action with the bridge?
I guess you're talking about the Struts Bridge?
For the Struts Bridge, it currently provides only "transparent" Struts features, meaning those that will work both
inside a standard web container and a portlet container.
Portlet specific features are easily accessible but will require to make use of the portlet api itself as described in
Chapter PLT.16 of the Portlet API specification, see: http://www.jcp.org/en/jsr/detail?id=168
Within an Struts Action, you can retrieve the PortletRequest as request attribute with name: "javax.portlet.request"
And once you have the PortletRequest your can simple invoke PortletRequest.getPreferences().
>
> Is there a standard way or an alternative solution to have something similar to the PortletPreferences?
Well, having a similar/parallel feature available (for Struts) in a standard web container would be very interesting,
something I've been thinking of myself before providing (and thereby having a transparent solution for the Struts
Bridge), but never found time (nor actual demand) doing so.
FYI: the same "issue" is coming up for the Wicket framework for which I wrote the Portlet support as well.
Chances are, we'll add something like the PortletPreferences for Wicket soon, and maybe that'll be transferable to the
Struts Bridge too. But so far nothing has been written yet so time will tell...
Regards,
Ate
>
>
>
> thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-user-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-user-help@portals.apache.org
Re: PortletPreferences
Posted by Ate Douma <at...@douma.nu>.
Carlo Cavallieri wrote:
>
> Hi all,
>
>
>
> how can i access the PortletPreferences from an action with the bridge?
I guess you're talking about the Struts Bridge?
For the Struts Bridge, it currently provides only "transparent" Struts features, meaning those that will work both
inside a standard web container and a portlet container.
Portlet specific features are easily accessible but will require to make use of the portlet api itself as described in
Chapter PLT.16 of the Portlet API specification, see: http://www.jcp.org/en/jsr/detail?id=168
Within an Struts Action, you can retrieve the PortletRequest as request attribute with name: "javax.portlet.request"
And once you have the PortletRequest your can simple invoke PortletRequest.getPreferences().
>
> Is there a standard way or an alternative solution to have something similar to the PortletPreferences?
Well, having a similar/parallel feature available (for Struts) in a standard web container would be very interesting,
something I've been thinking of myself before providing (and thereby having a transparent solution for the Struts
Bridge), but never found time (nor actual demand) doing so.
FYI: the same "issue" is coming up for the Wicket framework for which I wrote the Portlet support as well.
Chances are, we'll add something like the PortletPreferences for Wicket soon, and maybe that'll be transferable to the
Struts Bridge too. But so far nothing has been written yet so time will tell...
Regards,
Ate
>
>
>
> thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-user-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-user-help@portals.apache.org