Portlets for starters
Par Nicolas, lundi 13 novembre 2006 à 15:58 :: General :: #397 :: rss
Some technical informations gathered from JSR 168 regarding portlet development
To start coding your first (portable) portlet, you should :
- Get the portlet.jar
- try to run create a portlet, that means a class that implements the "Portlet" interface. Eclipse can give you a hint on that : right click->source->override/implement methods...
From there you get the following code :
package com.mycompany.portlet;
import java.io.IOException;
import javax.portlet.*;
public class IntrospectionPortlet implements Portlet {
public void destroy() {
}
public void init(PortletConfig arg0) throws PortletException {
}
public void processAction(ActionRequest arg0, ActionResponse arg1) throws PortletException, IOException {
}
public void render(RenderRequest arg0, RenderResponse arg1) throws PortletException, IOException {
}
}
Commentaires
Aucun commentaire pour le moment.
Ajouter un commentaire
Les commentaires pour ce billet sont fermés.