You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Edgar Poce <ed...@gmail.com> on 2007/08/03 18:50:39 UTC

rendering a portlet in the decoration with jetspeed 2.0

Hi,

 I'm using jetspeed 2.0 and I'm can't upgrade in the short term, I
also need to display a portlet in the velocity decoration, is there a
way to achieve the functionality provided by
$jetspeed.renderPortletEntity(...) which was included in later
versions?

thanks in advance,
edgar

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: rendering a portlet in the decoration with jetspeed 2.0

Posted by Ma...@Lazard.com.
Sorry for doing this but I am not able to unsubscribe from this list.  Sending
an email to the unsubscribe email address does not work.

Can someone please let me know how to unsubscribe from this list.

Mark Easparro
212-632-6346


                                                                                
                                                                                
                                                                                
    "David Sean                                                              To 
    Taylor"                    "Jetspeed Users List"                            
    <d.taylor@onehippo         <je...@portals.apache.org>               
    .com>                                                                    cc 
                                                                                
    Jun 18 2009 06:16                                                   Subject 
    PM                         Re: rendering a portlet in the decoration with   
                               jetspeed 2.0                                     
                                                                                
    Please respond to                                                           
     "Jetspeed Users                                                            
          List"                                                                 
    <jetspeed-user@por                                                          
     tals.apache.org>                                                           
                                                                                
                                                                                



On Jun 18, 2009, at 1:02 PM, bhaskar9 wrote:

>
> Hi David,
>
> I have the same requirement, i.e I want to render a portlet in a page
> decorator.
>
> I tried the solution you mentioned in this thread. I am getting the
> portlet
> content(text), but i am not getting the action icons(like max,min
> etc) and
> also not getting any title bars or footers etc.
>
> Is there anyway i can render the portlet exactly look like and
> behave like
> the same way other portlets behave.
>

I have never had that requirement, instead, there has been a need for
putting the portlet in a decorator without the window title, icons.
Its not directly supported. The Jetspeed Desktop does have the ability
to detach a window with its window decorations and place it anywhere
on the page


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org






---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: rendering a portlet in the decoration with jetspeed 2.0

Posted by David Sean Taylor <d....@onehippo.com>.
On Jun 18, 2009, at 1:02 PM, bhaskar9 wrote:

>
> Hi David,
>
> I have the same requirement, i.e I want to render a portlet in a page
> decorator.
>
> I tried the solution you mentioned in this thread. I am getting the  
> portlet
> content(text), but i am not getting the action icons(like max,min  
> etc) and
> also not getting any title bars or footers etc.
>
> Is there anyway i can render the portlet exactly look like and  
> behave like
> the same way other portlets behave.
>

I have never had that requirement, instead, there has been a need for  
putting the portlet in a decorator without the window title, icons.  
Its not directly supported. The Jetspeed Desktop does have the ability  
to detach a window with its window decorations and place it anywhere  
on the page


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: rendering a portlet in the decoration with jetspeed 2.0

Posted by bhaskar9 <kb...@gmail.com>.
Hi David,

I have the same requirement, i.e I want to render a portlet in a page
decorator.

I tried the solution you mentioned in this thread. I am getting the portlet
content(text), but i am not getting the action icons(like max,min etc) and
also not getting any title bars or footers etc.

Is there anyway i can render the portlet exactly look like and behave like
the same way other portlets behave.


thanks
Bhaskar



Edgar Poce wrote:
> 
> great!, thank you very much for your help. I'll try it asap.
> 
> On 8/8/07, David Sean Taylor <da...@bluesunrise.com> wrote:
>>
>> On Aug 3, 2007, at 9:50 AM, Edgar Poce wrote:
>>
>> > Hi,
>> >
>> >  I'm using jetspeed 2.0 and I'm can't upgrade in the short term, I
>> > also need to display a portlet in the velocity decoration, is there a
>> > way to achieve the functionality provided by
>> > $jetspeed.renderPortletEntity(...) which was included in later
>> > versions?
>> >
>> Sounds like you are looking for something like:
>>
>> 
>> $jetspeed.renderPortletEntity("theClock", "j2-admin::DateTimePortlet")
>> 
>>
>> Have a look at the JPT implementation:
>>
>>      public String renderPortletEntity(String entityId, String
>> portletId)
>>      {
>>
>>          RequestContext context = getRequestContext();
>>
>>          PortletAggregatorFragmentImpl fragment = new
>> PortletAggregatorFragmentImpl(
>>                  entityId);
>>          fragment.setType(Fragment.PORTLET);
>>          fragment.setName(portletId);
>>          ContentFragment contentFragment = new ContentFragmentImpl
>> (fragment,
>>                  new HashMap());
>>          //renderer.renderNow(contentFragment, context);
>>          renderer.render(contentFragment, context);
>>          return contentFragment.getRenderedContent();
>>      }
>>
>> PortletAggregatorFragmentImpl was available in 2.0, as was
>> ContentFragmentImpl
>> I guess what you are missing is this specific API
>> (renderPortletEntity) on the JPT
>> You could either build a JAR with the impl above and place it in
>> jetspeed/WEB-INF/lib
>> To get your new class into the decorator, add it the the velocity
>> tools as a request tool
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/rendering-a-portlet-in-the-decoration-with-jetspeed-2.0-tp11987089p24099589.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: rendering a portlet in the decoration with jetspeed 2.0

Posted by Edgar Poce <ed...@gmail.com>.
great!, thank you very much for your help. I'll try it asap.

On 8/8/07, David Sean Taylor <da...@bluesunrise.com> wrote:
>
> On Aug 3, 2007, at 9:50 AM, Edgar Poce wrote:
>
> > Hi,
> >
> >  I'm using jetspeed 2.0 and I'm can't upgrade in the short term, I
> > also need to display a portlet in the velocity decoration, is there a
> > way to achieve the functionality provided by
> > $jetspeed.renderPortletEntity(...) which was included in later
> > versions?
> >
> Sounds like you are looking for something like:
>
> <span style="position:absolute;right:5em">
> $jetspeed.renderPortletEntity("theClock", "j2-admin::DateTimePortlet")
> </span>
>
> Have a look at the JPT implementation:
>
>      public String renderPortletEntity(String entityId, String
> portletId)
>      {
>
>          RequestContext context = getRequestContext();
>
>          PortletAggregatorFragmentImpl fragment = new
> PortletAggregatorFragmentImpl(
>                  entityId);
>          fragment.setType(Fragment.PORTLET);
>          fragment.setName(portletId);
>          ContentFragment contentFragment = new ContentFragmentImpl
> (fragment,
>                  new HashMap());
>          //renderer.renderNow(contentFragment, context);
>          renderer.render(contentFragment, context);
>          return contentFragment.getRenderedContent();
>      }
>
> PortletAggregatorFragmentImpl was available in 2.0, as was
> ContentFragmentImpl
> I guess what you are missing is this specific API
> (renderPortletEntity) on the JPT
> You could either build a JAR with the impl above and place it in
> jetspeed/WEB-INF/lib
> To get your new class into the decorator, add it the the velocity
> tools as a request tool
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: rendering a portlet in the decoration with jetspeed 2.0

Posted by David Sean Taylor <da...@bluesunrise.com>.
On Aug 3, 2007, at 9:50 AM, Edgar Poce wrote:

> Hi,
>
>  I'm using jetspeed 2.0 and I'm can't upgrade in the short term, I
> also need to display a portlet in the velocity decoration, is there a
> way to achieve the functionality provided by
> $jetspeed.renderPortletEntity(...) which was included in later
> versions?
>
Sounds like you are looking for something like:

<span style="position:absolute;right:5em"> 
$jetspeed.renderPortletEntity("theClock", "j2-admin::DateTimePortlet") 
</span>

Have a look at the JPT implementation:

     public String renderPortletEntity(String entityId, String  
portletId)
     {

         RequestContext context = getRequestContext();

         PortletAggregatorFragmentImpl fragment = new  
PortletAggregatorFragmentImpl(
                 entityId);
         fragment.setType(Fragment.PORTLET);
         fragment.setName(portletId);
         ContentFragment contentFragment = new ContentFragmentImpl 
(fragment,
                 new HashMap());
         //renderer.renderNow(contentFragment, context);
         renderer.render(contentFragment, context);
         return contentFragment.getRenderedContent();
     }

PortletAggregatorFragmentImpl was available in 2.0, as was  
ContentFragmentImpl
I guess what you are missing is this specific API  
(renderPortletEntity) on the JPT
You could either build a JAR with the impl above and place it in  
jetspeed/WEB-INF/lib
To get your new class into the decorator, add it the the velocity  
tools as a request tool