[jboss-user] [JBoss Portal] - custom portlet modes

bwessel do-not-reply at jboss.com
Fri Oct 20 18:23:33 EDT 2006


Does JBoss support custom portlet modes and if not, what is the correct way to make a multi-page portlet?  I would like to make a portlet that has four different page views.

I found the JSR spec information on Custom Portlet modes, but I keep getting the error:
javax.portlet.PortletModeException: Not supported
	at org.jboss.portal.portlet.impl.PortletURLImpl.setPortletMode(PortletURLImpl.java:93)

I have set <portlet-mode>login</portlet-mode> inside portlet/supports tags
  </custom-portlet-mode> inside the <portlet-app> tag of the portlet.xml. (Note: the JSR docs use different tags in the <custom-portlet-mode> tag, but I got an error saying the <custom-portlet-mode> tag needed the <portlet-mode> child.

In my portlet class I added the line:
final private static PortletMode login = new PortletMode("login");

Everything works until I add the lines:
PortletURL loginurl = response.createRenderURL();
At which point I get the error above.

Has anyone been able to get custom portlet modes working?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979749#3979749

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979749

More information about the jboss-user mailing list