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 "Sie, Yang" <ya...@fmr.com> on 2008/05/16 15:45:17 UTC

How to change portlet title at run time.

Hello All:

I am adding more than one copy of a portlet to my page. They all end up
with same titles (portlet caption). What I want to do is to provide
users an option in portlet's edit view to allow them to give a title as
they choose. Upon clicking the submit button, the new title will be
saved into database and the portlet will show the title that the user
typed in.

I looked at the Jetspeed code and thought that I can implement this via
Jetspeed API and some coding. Before I start to do anything, I would
like to ask you for any advice that could get this done easily and
quickly.

I am using Jetspeed 2.1 and using DB page manager and Oracle DB.

Thank you.


---Yang

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


Re: How to change portlet title at run time.

Posted by Serkan Camurcuoglu <se...@telenity.com>.
the RenderResponse interface has a setTitle() method but I haven't used 
it yet either..


Sie, Yang wrote:
> Hello All:
>
> I am adding more than one copy of a portlet to my page. They all end up
> with same titles (portlet caption). What I want to do is to provide
> users an option in portlet's edit view to allow them to give a title as
> they choose. Upon clicking the submit button, the new title will be
> saved into database and the portlet will show the title that the user
> typed in.
>
> I looked at the Jetspeed code and thought that I can implement this via
> Jetspeed API and some coding. Before I start to do anything, I would
> like to ask you for any advice that could get this done easily and
> quickly.
>
> I am using Jetspeed 2.1 and using DB page manager and Oracle DB.
>
> Thank you.
>
>
> ---Yang
>
> ---------------------------------------------------------------------
> 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: How to change portlet title at run time.

Posted by David Sean Taylor <da...@bluesunrise.com>.
On May 16, 2008, at 6:45 AM, Sie, Yang wrote:

>
> Hello All:
>
> I am adding more than one copy of a portlet to my page. They all end  
> up
> with same titles (portlet caption). What I want to do is to provide
> users an option in portlet's edit view to allow them to give a title  
> as
> they choose. Upon clicking the submit button, the new title will be
> saved into database and the portlet will show the title that the user
> typed in.
>
> I looked at the Jetspeed code and thought that I can implement this  
> via
> Jetspeed API and some coding. Before I start to do anything, I would
> like to ask you for any advice that could get this done easily and
> quickly.

Sounds like you could also store different titles for different users  
with standard Portlet API Preferences, and then use the setTitle API  
to grab the specific title for each user with the prefs

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