1 16 package org.apache.jetspeed.tutorial.modules.actions.portlets; 17 18 import org.apache.turbine.util.RunData; 19 import org.apache.turbine.util.Log; 20 21 import org.apache.velocity.context.Context; 22 23 import org.apache.jetspeed.portal.portlets.VelocityPortlet; 24 import org.apache.jetspeed.modules.actions.portlets.browser.DatabaseBrowserAction; 25 import org.apache.jetspeed.services.resources.JetspeedResources; 26 27 33 public class CafeBrowserAction extends DatabaseBrowserAction 34 { 35 public static final String BROWSER_COMMAND = "cb_command"; 36 public static final String BROWSER_REFRESH = "refresh"; 37 44 protected void buildNormalContext( VelocityPortlet portlet, 45 Context context, 46 RunData rundata ) 47 { 48 String refresh = rundata.getParameters().getString(BROWSER_COMMAND); 49 if (refresh != null && refresh.equals(BROWSER_REFRESH)) 50 { 51 this.clearDatabaseBrowserIterator(portlet,rundata); 52 } 53 super.buildNormalContext(portlet, context, rundata); 54 } 55 } 56 57 | Popular Tags |