• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to change portlet title on basis of some paramerter value at runtime in jsr 168

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Few days before someone asked me that how I can change the title of the portlet. So i told him by using the settitle() method in render phase he can change the title of portlet at run time.

but then he asked that he want to change it on basis of some parameter value.
for ex. if var1=hi then title should be "welcome" and if var1=bye then title should be "bye bye see you soon".

then i told him that you can put the check on var1 in render phase and can change title.

but then he said that there is some feature of portal from where you can do this thing without making any change in code.

can someone tell me what that can be ? I think he was asking for portlet preferences...?? am I right ?

or there some otherways also
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic