This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jetspeed-2 and Cutom mode

 
Shailesh Joshi
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am trying to deploy a portlet on JetSpeed-2 portal server, I ve added one custom portlet mode called "config" however its not displayed when I log-in as administrator.

I ve following entries in portlet.xml

<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
<portlet-mode>edit</portlet-mode>
<portlet-mode>help</portlet-mode>
<portlet-mode>config</portlet-mode>
</supports>

also

<custom-portlet-mode>
<portlet-mode>config</portlet-mode>
</custom-portlet-mode>

also I ve a overridden doDispatch() method, which calls the doConfig() method if mode is set in request.

There is not exception in console..has anybody come across such situation? what I am missing here?

cheers
Shailesh
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the JetSpeed2 portal support the custom config mode?

From the JetSpeed2 website, it indicates that the supported custom portlet mode is print, and the custom window state is solo.

JetSpeed-2: Portal Core Features

If a portal doesn't support the custom portlet mode, it will never render on the page, even if you code everything correctly. IBM's WebSphere Portal Server 5.x and 6 support the config mode, I know that, but I'm not sure about JetSpeed.

If you're just doing testing, see if you can get the print mode to come up instead. If you've got the code already, it's probably just a few minor changes to use the word print instead of config.

Good luck!

-Cameron McKenzie
 
Shailesh Joshi
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey thats very informative, I thought if you want any custom mode just add them in portlet.xml and over write doDispatch(). I ll test for 'print' in JetSpeed-2.

Thanks
Shailesh
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!