> -----Message d'origine----- > De : Danh Hoai [mailto:hoai@;indent.org] > Envoyé : vendredi 18 octobre 2002 16:49 > À : Jetspeed Users List > Objet : Re: Problem registering multiple instances using same portlet > > > After changing to AbstractInstancePortlet, it still does not > work? can you > check my config file? > > Thanks. >
Oops sorry, it's not your fault here... The "HTML" portlet (aka FileServerPortlet.java) you're referencing in your xreg extends FileWatchPorlet that extends... AbstractPortlet. So it doesn't work. I have an idea, but not sure it works. try extending FileServerPortlet directly, and add this method in your java src : /** * Construct the handle used for caching. * @param config The config object, expected to be a PortletConfig. */ public static Object getHandle(Object config) { //this implementation expects a PortletConfig object as its // configuration PortletConfig pc = null; if (!(config instanceof PortletConfig)) { return null; } // form the key from the current request's portal page profile // and the portlet id in the config pc = (PortletConfig)config; StringBuffer handle = new StringBuffer(256); handle.append(pc.getPageId()); handle.append('/'); handle.append(pc.getPortletId()); return handle.toString(); } // getHandle If it still doesn't work, then you have to create an abstract type of portlet in your xreg (type=abstract) named "MyHTML" for example, without parameters and meta info, and then modify ref="HTML" to ref="MyHTML". It should work... Aurelien -- To unsubscribe, e-mail: <mailto:jetspeed-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:jetspeed-user-help@;jakarta.apache.org>