Hi,
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
and
<custom-portlet-mode>
<portlet-mode>login</portlet-mode>
</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();
loginurl.setPortletMode(login);
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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...