You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-user@portals.apache.org by Eric Dalquist <er...@doit.wisc.edu> on 2008/03/04 00:33:30 UTC
Re: PortletContainer enhancement
The easiest way would be to wrap the HttpServletRequest you pass to the
container when dispatching to the portlet in your own
HttpServletRequestWrapper implementation that provides the custom
attributes.
-Eric
Ark Xu wrote:
> I want to make some customize to the portlet container in order to set
> some
> special attributes to the renderRequest.
> I don't want to hack the PortletContainerImpl and add my own codes.
> How to do it? Is there any Spring bean xml file that can be configured?
> --
> Best regards,
>
> Ark Xu
Re: PortletContainer enhancement
Posted by ARK <ar...@gmail.com>.
Thanks Ben and Eric! I've done it!
On Tue, 2008-03-04 at 18:23 -0600, Eric Dalquist wrote:
> Thanks for adding that Ben!
>
> -Eric
>
> ben@netsos.com wrote:
> > > No problem, the 'portal driver' is the official name of Pluto's portal.
> > >
> > > ...
> > >
> > > You'll need to find the Spring config that setups the
> > > PortletContainerImpl and inject your extended OptionalContainerServices
> > > impl there.
> > >
> >
> > FYI - The Spring configuration file is in the pluto-portal webapp. It is
> > /WEB-INF/pluto-portal-driver-services-config.xml. You just need to modify
> > that with your custom service implementation and you should be all set.
> >
> > -- Ben
> >
> >
Re: PortletContainer enhancement
Posted by Eric Dalquist <er...@doit.wisc.edu>.
Thanks for adding that Ben!
-Eric
ben@netsos.com wrote:
>> No problem, the 'portal driver' is the official name of Pluto's portal.
>>
>> ...
>>
>> You'll need to find the Spring config that setups the
>> PortletContainerImpl and inject your extended OptionalContainerServices
>> impl there.
>>
>
> FYI - The Spring configuration file is in the pluto-portal webapp. It is
> /WEB-INF/pluto-portal-driver-services-config.xml. You just need to modify
> that with your custom service implementation and you should be all set.
>
> -- Ben
>
>
Re: PortletContainer enhancement
Posted by be...@netsos.com.
> No problem, the 'portal driver' is the official name of Pluto's portal.
>
> ...
>
> You'll need to find the Spring config that setups the
> PortletContainerImpl and inject your extended OptionalContainerServices
> impl there.
FYI - The Spring configuration file is in the pluto-portal webapp. It is
/WEB-INF/pluto-portal-driver-services-config.xml. You just need to modify
that with your custom service implementation and you should be all set.
-- Ben
Re: PortletContainer enhancement
Posted by Eric Dalquist <er...@doit.wisc.edu>.
No problem, the 'portal driver' is the official name of Pluto's portal.
I have never used the driver, just the container so I don't know where
to point you config file wise but what you would need to do is:
-Extend DefaultPortletEnvironmentService and override the methods you
need to for adding the wrappers to provide the attributes.
-Extend DefaultOptionalContainerServices to provide your
PortletEnviornmentService implementation.
You'll need to find the Spring config that setups the
PortletContainerImpl and inject your extended OptionalContainerServices
impl there.
-Eric
Javadocs that may help:
http://portals.apache.org/pluto/pluto-container/apidocs/index.html
ARK wrote:
> Sorry for my expression. I used the pluto portal. It uses the pluto
> container. Actually I don't know what is the 'portal driver' used for.
>
> I want to add some attributes to the renderRequest which gets from the
> standard httpServletRequest. So I have to enhance/hack the pluto
> container. I am wondering whether the renderRequest/portletRequest
> wrapper is configurable, how to config it to inject my own wrapper.
>
> I am new to this, so detail guild is really preferred.
>
> Thanks!
>
> Regards,
> Ark
>
> On Tue, 2008-03-04 at 08:10 -0600, Eric Dalquist wrote:
>
>> Pluto has several parts.
>>
>> The Pluto Portlet Container can be embedded in web applications to
>> provide portlet support in that web application. To use the Portlet
>> Container you have to write some code including code that calls
>> methods on the PortletContainer interface to dispatch actions and
>> rendering to portlets.
>>
>> The Pluto Portal Driver is a very simple stand-alone portal web
>> application which uses the Portlet Container to render portlets in a
>> static layout. I don't believe you need to write any code to use the
>> Portal Driver though its purpose is more for demonstrating and testing
>> the Portlet Container functionality.
>>
>> Do those descriptions help? The easiest way to do what you're trying
>> depends on which one you're doing.
>>
>> -Eric
>>
>> ARK wrote:
>>
>>> I am using the pluto 1.1.4. So I think it means 'pluto portal driver'. I
>>> use the pluto as the container that I can deploy my own portlet.
>>>
>>> Ark
>>>
>>> On Tue, 2008-03-04 at 05:58 -0600, Eric Dalquist wrote:
>>>
>>>
>>>> Are you embedding the Pluto container in a portal / web app of your
>>>> own or are you using the Pluto portal driver?
>>>>
>>>> -Eric
>>>>
>>>> Ark Xu wrote:
>>>>
>>>>
>>>>> Hi Eric,
>>>>>
>>>>> Where is the Srping config xml file that I can inject my own
>>>>> HttpServletRequestWrapper implementations?
>>>>>
>>>>> Thanks!
>>>>>
>>>>> Regards,
>>>>> Ark
>>>>>
>>>>> On 04/03/2008, Eric Dalquist <er...@doit.wisc.edu> wrote:
>>>>>
>>>>>
>>>>>
>>>>>> The easiest way would be to wrap the HttpServletRequest you pass to the
>>>>>> container when dispatching to the portlet in your own
>>>>>> HttpServletRequestWrapper implementation that provides the custom
>>>>>> attributes.
>>>>>>
>>>>>>
>>>>>> -Eric
>>>>>>
>>>>>>
>>>>>> Ark Xu wrote:
>>>>>> > I want to make some customize to the portlet container in order to set
>>>>>> > some
>>>>>> > special attributes to the renderRequest.
>>>>>> > I don't want to hack the PortletContainerImpl and add my own codes.
>>>>>> > How to do it? Is there any Spring bean xml file that can be configured?
>>>>>> > --
>>>>>> > Best regards,
>>>>>> >
>>>>>> > Ark Xu
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>
>>>
>
>
Re: PortletContainer enhancement
Posted by ARK <ar...@gmail.com>.
Sorry for my expression. I used the pluto portal. It uses the pluto
container. Actually I don't know what is the 'portal driver' used for.
I want to add some attributes to the renderRequest which gets from the
standard httpServletRequest. So I have to enhance/hack the pluto
container. I am wondering whether the renderRequest/portletRequest
wrapper is configurable, how to config it to inject my own wrapper.
I am new to this, so detail guild is really preferred.
Thanks!
Regards,
Ark
On Tue, 2008-03-04 at 08:10 -0600, Eric Dalquist wrote:
> Pluto has several parts.
>
> The Pluto Portlet Container can be embedded in web applications to
> provide portlet support in that web application. To use the Portlet
> Container you have to write some code including code that calls
> methods on the PortletContainer interface to dispatch actions and
> rendering to portlets.
>
> The Pluto Portal Driver is a very simple stand-alone portal web
> application which uses the Portlet Container to render portlets in a
> static layout. I don't believe you need to write any code to use the
> Portal Driver though its purpose is more for demonstrating and testing
> the Portlet Container functionality.
>
> Do those descriptions help? The easiest way to do what you're trying
> depends on which one you're doing.
>
> -Eric
>
> ARK wrote:
> > I am using the pluto 1.1.4. So I think it means 'pluto portal driver'. I
> > use the pluto as the container that I can deploy my own portlet.
> >
> > Ark
> >
> > On Tue, 2008-03-04 at 05:58 -0600, Eric Dalquist wrote:
> >
> > > Are you embedding the Pluto container in a portal / web app of your
> > > own or are you using the Pluto portal driver?
> > >
> > > -Eric
> > >
> > > Ark Xu wrote:
> > >
> > > > Hi Eric,
> > > >
> > > > Where is the Srping config xml file that I can inject my own
> > > > HttpServletRequestWrapper implementations?
> > > >
> > > > Thanks!
> > > >
> > > > Regards,
> > > > Ark
> > > >
> > > > On 04/03/2008, Eric Dalquist <er...@doit.wisc.edu> wrote:
> > > >
> > > >
> > > > > The easiest way would be to wrap the HttpServletRequest you pass to the
> > > > > container when dispatching to the portlet in your own
> > > > > HttpServletRequestWrapper implementation that provides the custom
> > > > > attributes.
> > > > >
> > > > >
> > > > > -Eric
> > > > >
> > > > >
> > > > > Ark Xu wrote:
> > > > > > I want to make some customize to the portlet container in order to set
> > > > > > some
> > > > > > special attributes to the renderRequest.
> > > > > > I don't want to hack the PortletContainerImpl and add my own codes.
> > > > > > How to do it? Is there any Spring bean xml file that can be configured?
> > > > > > --
> > > > > > Best regards,
> > > > > >
> > > > > > Ark Xu
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> >
> >
Re: PortletContainer enhancement
Posted by Eric Dalquist <er...@doit.wisc.edu>.
Pluto has several parts.
The Pluto Portlet Container can be embedded in web applications to
provide portlet support in that web application. To use the Portlet
Container you have to write some code including code that calls methods
on the PortletContainer interface to dispatch actions and rendering to
portlets.
The Pluto Portal Driver is a very simple stand-alone portal web
application which uses the Portlet Container to render portlets in a
static layout. I don't believe you need to write any code to use the
Portal Driver though its purpose is more for demonstrating and testing
the Portlet Container functionality.
Do those descriptions help? The easiest way to do what you're trying
depends on which one you're doing.
-Eric
ARK wrote:
> I am using the pluto 1.1.4. So I think it means 'pluto portal driver'. I
> use the pluto as the container that I can deploy my own portlet.
>
> Ark
>
> On Tue, 2008-03-04 at 05:58 -0600, Eric Dalquist wrote:
>
>> Are you embedding the Pluto container in a portal / web app of your
>> own or are you using the Pluto portal driver?
>>
>> -Eric
>>
>> Ark Xu wrote:
>>
>>> Hi Eric,
>>>
>>> Where is the Srping config xml file that I can inject my own
>>> HttpServletRequestWrapper implementations?
>>>
>>> Thanks!
>>>
>>> Regards,
>>> Ark
>>>
>>> On 04/03/2008, Eric Dalquist <er...@doit.wisc.edu> wrote:
>>>
>>>
>>>> The easiest way would be to wrap the HttpServletRequest you pass to the
>>>> container when dispatching to the portlet in your own
>>>> HttpServletRequestWrapper implementation that provides the custom
>>>> attributes.
>>>>
>>>>
>>>> -Eric
>>>>
>>>>
>>>> Ark Xu wrote:
>>>> > I want to make some customize to the portlet container in order to set
>>>> > some
>>>> > special attributes to the renderRequest.
>>>> > I don't want to hack the PortletContainerImpl and add my own codes.
>>>> > How to do it? Is there any Spring bean xml file that can be configured?
>>>> > --
>>>> > Best regards,
>>>> >
>>>> > Ark Xu
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>
>
Re: PortletContainer enhancement
Posted by ARK <ar...@gmail.com>.
I am using the pluto 1.1.4. So I think it means 'pluto portal driver'. I
use the pluto as the container that I can deploy my own portlet.
Ark
On Tue, 2008-03-04 at 05:58 -0600, Eric Dalquist wrote:
> Are you embedding the Pluto container in a portal / web app of your
> own or are you using the Pluto portal driver?
>
> -Eric
>
> Ark Xu wrote:
> > Hi Eric,
> >
> > Where is the Srping config xml file that I can inject my own
> > HttpServletRequestWrapper implementations?
> >
> > Thanks!
> >
> > Regards,
> > Ark
> >
> > On 04/03/2008, Eric Dalquist <er...@doit.wisc.edu> wrote:
> >
> > > The easiest way would be to wrap the HttpServletRequest you pass to the
> > > container when dispatching to the portlet in your own
> > > HttpServletRequestWrapper implementation that provides the custom
> > > attributes.
> > >
> > >
> > > -Eric
> > >
> > >
> > > Ark Xu wrote:
> > > > I want to make some customize to the portlet container in order to set
> > > > some
> > > > special attributes to the renderRequest.
> > > > I don't want to hack the PortletContainerImpl and add my own codes.
> > > > How to do it? Is there any Spring bean xml file that can be configured?
> > > > --
> > > > Best regards,
> > > >
> > > > Ark Xu
> > >
> > >
> > >
> >
> >
> >
Re: PortletContainer enhancement
Posted by Eric Dalquist <er...@doit.wisc.edu>.
Are you embedding the Pluto container in a portal / web app of your own
or are you using the Pluto portal driver?
-Eric
Ark Xu wrote:
> Hi Eric,
>
> Where is the Srping config xml file that I can inject my own
> HttpServletRequestWrapper implementations?
>
> Thanks!
>
> Regards,
> Ark
>
> On 04/03/2008, Eric Dalquist <er...@doit.wisc.edu> wrote:
>
>> The easiest way would be to wrap the HttpServletRequest you pass to the
>> container when dispatching to the portlet in your own
>> HttpServletRequestWrapper implementation that provides the custom
>> attributes.
>>
>>
>> -Eric
>>
>>
>> Ark Xu wrote:
>> > I want to make some customize to the portlet container in order to set
>> > some
>> > special attributes to the renderRequest.
>> > I don't want to hack the PortletContainerImpl and add my own codes.
>> > How to do it? Is there any Spring bean xml file that can be configured?
>> > --
>> > Best regards,
>> >
>> > Ark Xu
>>
>>
>>
>
>
>
Re: PortletContainer enhancement
Posted by Ark Xu <ar...@gmail.com>.
Hi Eric,
Where is the Srping config xml file that I can inject my own
HttpServletRequestWrapper implementations?
Thanks!
Regards,
Ark
On 04/03/2008, Eric Dalquist <er...@doit.wisc.edu> wrote:
> The easiest way would be to wrap the HttpServletRequest you pass to the
> container when dispatching to the portlet in your own
> HttpServletRequestWrapper implementation that provides the custom
> attributes.
>
>
> -Eric
>
>
> Ark Xu wrote:
> > I want to make some customize to the portlet container in order to set
> > some
> > special attributes to the renderRequest.
> > I don't want to hack the PortletContainerImpl and add my own codes.
> > How to do it? Is there any Spring bean xml file that can be configured?
> > --
> > Best regards,
> >
> > Ark Xu
>
>
--
Best regards,
Ark Xu