/** {@inheritDoc} */ @Override public void afterList() throws JspException { ListTag list = getCurrentList(); ListTagUtil.write( pageContext, String.format(LOAD_SCRIPT, list.getColumnCount(), list.getStyleId(), listName, listName)); }
/** {@inheritDoc} */ public int doEndTag() throws JspException { ListCommand command = (ListCommand) ListTagUtil.getCurrentCommand(this, pageContext); if (command.equals(ListCommand.ENUMERATE)) { if (!StringUtils.isBlank(name)) { ListTag parent = (ListTag) BodyTagSupport.findAncestorWithClass(this, ListTag.class); try { ClassLoader cl = Thread.currentThread().getContextClassLoader(); if (name.indexOf('.') == -1) { name = "com.redhat.rhn.frontend.taglibs.list.row." + name; } RowRenderer row = (RowRenderer) cl.loadClass(name).newInstance(); if (!StringUtils.isEmpty(classes)) { row.setRowClasses(classes); } parent.setRowRenderer(row); } catch (Exception e) { String msg = "Exception while adding Decorator [" + name + "]"; throw new JspException(msg, e); } } } return super.doEndTag(); }