1 13 package com.tonbeller.wcf.sqltable; 14 15 import javax.servlet.jsp.JspException ; 16 import javax.servlet.jsp.tagext.TagSupport ; 17 18 import com.tonbeller.tbutils.res.Resources; 19 20 24 public abstract class SqlTableNestedTag extends TagSupport { 25 26 protected SqlTableTag getTableTag() throws JspException { 27 SqlTableTag tag = (SqlTableTag) findAncestorWithClass(this, SqlTableTag.class); 28 if (tag == null) 29 throw new JspException (getClass().getName() + " tag must be nested inside an SqlTable Tag"); 30 return tag; 31 } 32 33 protected SqlTable getTable() throws JspException { 34 return getTableTag().getTable(); 35 } 36 37 protected Resources getResources() throws JspException { 38 return getTableTag().getResources(); 39 } 40 41 protected boolean isRenderActions() throws JspException { 42 return getTableTag().isRenderActions(); 43 } 44 } 45 | Popular Tags |