1 7 package com.inversoft.verge.mvc.view.jsp.model; 8 9 10 import javax.servlet.jsp.JspException ; 11 12 import com.inversoft.verge.mvc.model.ModelResolution; 13 14 15 22 public class HiddenTag extends com.inversoft.verge.mvc.view.jsp.html.HiddenTag { 23 24 protected ModelResolution modelResolution; 25 26 27 32 public void initialize() throws JspException { 33 34 super.initialize(); 36 super.initializeKeyProperty(); 37 38 modelResolution = ModelHelper.getModelResolution(key, property, pageContext); 39 if (modelResolution == null) { 40 throw new JspException ("Invalid model definition: " + getModel()); 41 } 42 } 43 44 49 public int doEndTag() throws JspException { 50 super.doEndTag(); 51 if (isSetValue()) { 52 ModelHelper.outputModelExtra(modelResolution.getMetaData(), localName, 53 pageContext); 54 } 55 56 return EVAL_PAGE; 57 } 58 } | Popular Tags |