1 package org.apache.jetspeed.portal.portlets; 2 3 18 19 import org.apache.jetspeed.services.persistence.PersistenceManager; 20 import org.apache.jetspeed.portal.PortletInstance; 21 22 27 public class BogusPortlet extends AbstractInstancePortlet 28 { 29 30 public org.apache.ecs.ConcreteElement getContent(org.apache.turbine.util.RunData data) 31 { 32 String s1 = "Config ID: " + getPortletConfig().getPortletId(); 33 String s2 = ", Portlet ID: " + getID(); 34 String s3 = ", Page ID: " + getPortletConfig().getPageId(); 35 PortletInstance instance = PersistenceManager.getInstance(this,data); 36 String s4 = instance.getAttribute("country"); 37 return new org.apache.jetspeed.util.JetspeedClearElement( s1 + s2 + s3 + ", " + s4); 38 } 39 40 } 41 42 | Popular Tags |