File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Portals and Portlets and the fly likes Jetspeed-2 and Cutom mode Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "Jetspeed-2 and Cutom mode" Watch "Jetspeed-2 and Cutom mode" New topic
Author

Jetspeed-2 and Cutom mode

Shailesh Joshi
Ranch Hand

Joined: Sep 19, 2006
Posts: 30
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

Joined: Aug 26, 2006
Posts: 4962

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


Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
Shailesh Joshi
Ranch Hand

Joined: Sep 19, 2006
Posts: 30
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
 
 
subject: Jetspeed-2 and Cutom mode
 
Threads others viewed
Configure Custom mode(Edit_Defaults) in Vignette Application Portal 7.3
Portal Deployed;but cant see it.
Accessing Portlet Title in JSF
How to change the Hello Portlet in Jetspeed2 Demo
"simplest" portlet
Two Laptop Bag