1 10 package org.mmbase.bridge.jsp.taglib; 11 12 import org.mmbase.bridge.jsp.taglib.util.Attribute; 13 import javax.servlet.jsp.JspTagException ; 14 import javax.servlet.jsp.jstl.core.*; 15 16 23 24 public abstract class ListReferrerTag extends ContextReferrerTag { 25 26 protected Attribute parentListId = Attribute.NULL; 27 28 public void setList(String l) throws JspTagException { 29 parentListId = getAttribute(l); 30 } 31 32 protected ListProvider getList() throws JspTagException { 33 return (ListProvider) findParentTag(ListProvider.class, (String ) parentListId.getValue(this)); 35 } 36 37 40 protected LoopTag getLoopTag() throws JspTagException { 41 return (LoopTag) findParentTag(LoopTag.class, (String ) parentListId.getValue(this)); 43 } 44 45 46 } 47 | Popular Tags |