1 package fr.improve.struts.taglib.layout.datagrid; 2 3 import javax.servlet.jsp.JspException ; 4 5 import fr.improve.struts.taglib.layout.collection.CollectionInputTag; 6 import fr.improve.struts.taglib.layout.collection.CollectionTag; 7 import fr.improve.struts.taglib.layout.el.EvaluationException; 8 import fr.improve.struts.taglib.layout.util.LayoutUtils; 9 10 public class AbstractDatagridColumnTag extends CollectionInputTag { 11 15 protected String buildInputFieldName(CollectionTag in_parent) throws JspException , EvaluationException { 16 StringBuffer lc_fieldNameBuffer = new StringBuffer (); 17 lc_fieldNameBuffer.append(in_parent.getProperty()); 18 lc_fieldNameBuffer.append("."); 19 lc_fieldNameBuffer.append(property); 20 lc_fieldNameBuffer.append("["); 21 lc_fieldNameBuffer.append(in_parent.getIndex()); 22 lc_fieldNameBuffer.append("]"); 23 return lc_fieldNameBuffer.toString(); 24 } 25 26 29 protected Object buildInputFieldValue(CollectionTag in_parent, boolean in_anyError) throws JspException { 30 Object value = LayoutUtils.getProperty(in_parent.getBean(), property); 32 return value; 33 } 34 } 35 | Popular Tags |