Tag: custom renderer

p:commandButton action和f:setpropertyactionlistener未在p:columngroup中调用

我需要将子组件放在primefaces子表格页脚中(p:columngroup type =“footer”),但标准子表格渲染器不提供这样的机会。 所以我已经覆盖了org.primefaces.component.SubTableRenderer来添加子渲染: public class CustomSubTableRenderer extends SubTableRenderer{ @Override protected void encodeColumnFooter(FacesContext context, SubTable table, Column column) throws IOException { ResponseWriter writer = context.getResponseWriter(); String style = column.getStyle(); String styleClass = column.getStyleClass(); styleClass = styleClass == null ? DataTable.COLUMN_FOOTER_CLASS : DataTable.COLUMN_FOOTER_CLASS + ” ” + styleClass; writer.startElement(“td”, null); writer.writeAttribute(“class”, styleClass, null); if(column.getRowspan() != 1) […]