This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes How to change the Hello Portlet in Jetspeed2 Demo Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "How to change the Hello Portlet in Jetspeed2 Demo" Watch "How to change the Hello Portlet in Jetspeed2 Demo" New topic
Author

How to change the Hello Portlet in Jetspeed2 Demo

snow ice
Greenhorn

Joined: Feb 07, 2006
Posts: 1
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!
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

"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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to change the Hello Portlet in Jetspeed2 Demo
 
Similar Threads
navigation between the pages in different portlets using JSR286
IPC with pluto
Portal Deployed;but cant see it.
Configure Custom mode(Edit_Defaults) in Vignette Application Portal 7.3
Problem with Portlet Preferences not loading