Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

How to change the Hello Portlet in Jetspeed2 Demo

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ppl,

I am having a big problem..

I can't change the portlet title, hello portlet, in the jetspeed 2 demo.

The strange things is that i am able to change the title of the pickANumber portlet.

@ Portlet.xml

<portlet id="PickANumberPortlet">
<init-param>
<name>ViewPage</name>
<value>/WEB-INF/demo/simple/PickANumber.jsp</value>
</init-param>
<init-param>
<name>HelpPage</name>
<value>/WEB-INF/demo/simple/PickANumberHelp.jsp</value>
</init-param>
<init-param>
<name>EditPage</name>
<value>/WEB-INF/demo/simple/PickANumberEdit.jsp</value>
</init-param>
<portlet-name>PickANumberPortlet</portlet-name>
<display-name>Pick a number game</display-name>
<portlet-class>org.apache.jetspeed.demo.simple.PickANumberPortlet</portlet-class>
<expiration-cache>-1</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
<portlet-mode>HELP</portlet-mode>
<portlet-mode>EDIT</portlet-mode>
</supports>
<supported-locale>en</supported-locale>
<supported-locale>fr</supported-locale>
<supported-locale>ja</supported-locale>
<resource-bundle>org.apache.jetspeed.demo.simple.resources.PickANumberResources</resource-bundle>
<portlet-info>
<title>Change TITLE</title>
</portlet-info>
<portlet-preferences>
<preference>
<name>TopRange</name>
<value>100</value>
</preference>
</portlet-preferences>
</portlet>

See.. i just replace that data in the portel-info/title.. and it changes the title in the pickANumber portlet change..

But strange! i can't do the same way for the hello portlet

Can someone tell me how to change the title in the hello portlet...

Pls help.. i am running out of time!
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"snow ice"-
Welcome to the JavaRanch! Please take a sec to adjust your display name to match the JavaRanch Naming policy. Basically you need to have a legitmate sounding first and last name. You can tweak it here.

Thank ya kindly (oh, and again, welcome to JavaRanch)!

- Jess
 
Something must be done about this. Let's start by reading this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic