Problem with custom mode

"Nicolas Lafaury" <[email protected]>
Newsgroups gmane.comp.jakarta.pluto.user
Message-ID <[email protected]>
Hello

I use uPortal that use pluto to run portlet.

I am trying to build custom mode in my portlet, but I have an error.

In portlet.xml, I add

<custom-portlet-mode>

<description>Mode pour l'impression</description>

<name>print</name>

</custom-portlet-mode>

In my "public class ExemplePortlet extends GenericPortlet {", I add, as
I see on the forum, 

public final static PortletMode PRINT =3D new PortletMode("print");

but when I tried to create a link to this custom mode, I have an error :
javax.portlet.PortletModeException: unsupported Portlet Mode used: print

Do I need to do something else to create my own custom mode?

thanks for your help.

Nicolas

 
Nicolas LAFAURY
Smile- Motoriste Internet
01-41-40-11-05
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.