表格图示
表格的测试类
1 package com.xiaostudy; 2 3 import javax.servlet.http.HttpServletRequest; 4 5 import org.apache.log4j.Logger; 6 7 import wt.fc.QueryResult; 8 import wt.log4j.LogR; 9 import wt.util.WTException; 10 11 import com.ptc.core.components.descriptor.DescriptorConstants.ColumnIdentifiers; 12 import com.ptc.jca.mvc.components.JcaComponentParams; 13 import com.ptc.mvc.components.AbstractComponentBuilder; 14 import com.ptc.mvc.components.ColumnConfig; 15 import com.ptc.mvc.components.ComponentBuilder; 16 import com.ptc.mvc.components.ComponentConfig; 17 import com.ptc.mvc.components.ComponentConfigFactory; 18 import com.ptc.mvc.components.ComponentParams; 19 import com.ptc.mvc.components.TableConfig; 20 import com.ptc.netmarkets.util.beans.NmCommandBean; 21 import com.ptc.netmarkets.util.beans.NmHelperBean; 22 23 @ComponentBuilder("com.xiaostudy.Test_table") 24 public class Test_table extends AbstractComponentBuilder { 25 26 private static final String CLASSNAME = Test_table.class.getName(); 27 28 private static final Logger logger = LogR.getLogger(CLASSNAME); 29 30 @Override 31 public ComponentConfig buildComponentConfig(ComponentParams params) throws WTException { 32 logger.debug(">>>>>>" + CLASSNAME + ".buildComponentConfig()..."); 33 ComponentConfigFactory factory = getComponentConfigFactory();//得到一个组件配置工厂 34