1 18 package org.apache.beehive.netui.tags.html; 19 20 import org.apache.beehive.netui.tags.AbstractClassicTag; 21 import org.apache.beehive.netui.tags.internal.ReturnActionViewRenderer; 22 import org.apache.beehive.netui.util.Bundle; 23 24 import javax.servlet.jsp.JspException ; 25 import javax.servlet.jsp.tagext.JspTag ; 26 import javax.servlet.jsp.tagext.SimpleTagSupport ; 27 28 29 42 public class RetrievePopupOutput 43 extends AbstractClassicTag 44 { 45 private String _tagIdRef = null; 46 private String _dataSource = null; 47 48 51 public String getTagName() 52 { 53 return "RetrievePopupOutput"; 54 } 55 56 65 public void setTagIdRef(String tagIdRef) 66 { 67 _tagIdRef = tagIdRef; 68 } 69 70 79 public void setDataSource(String dataSource) 80 { 81 _dataSource = dataSource; 82 } 83 84 87 public int doStartTag() throws JspException 88 { 89 JspTag parentTag = SimpleTagSupport.findAncestorWithClass(this, ConfigurePopup.class); 90 if (parentTag == null) { 91 String msg = Bundle.getString("Tags_InvalidRetrievePopupOutputParent"); 92 registerTagError(msg, null); 93 reportErrors(); 94 } 95 else { 96 JspTag parentParent = SimpleTagSupport.findAncestorWithClass(this, IUrlParams.class); 97 if (parentTag != null) { 99 IUrlParams urlParams = (IUrlParams) parentParent; 100 urlParams.addParameter(ReturnActionViewRenderer.getMapItemParamName(), 101 _dataSource + ReturnActionViewRenderer.getDelim() + getIdForTagId(_tagIdRef), 102 null); 103 } 104 } 105 localRelease(); 106 return SKIP_BODY; 107 } 108 109 112 protected void localRelease() 113 { 114 super.localRelease(); 115 116 _dataSource = null; 117 _tagIdRef = null; 118 } 119 } 120 | Popular Tags |