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-unsubscr...@portals.apache.org
> For additional commands, e-mail: jetspeed-user-h...@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-unsubscr...@portals.apache.org
For additional commands, e-mail: jetspeed-user-h...@portals.apache.org

Reply via email to