validatorscripttag.java

来自「struts框架的jsf组件的核心实用例子集合」· Java 代码 · 共 26 行

JAVA
26
字号
package com.corejsf;import javax.faces.component.UIComponent;import javax.faces.webapp.UIComponentTag;public class ValidatorScriptTag extends UIComponentTag {    private String functionName;      // PROPERTY: functionName   public void setFunctionName(String newValue) { functionName = newValue; }   public void setProperties(UIComponent component) {       super.setProperties(component);       if(component.getAttributes().get("functionName") == null)          component.getAttributes().put("functionName", functionName);    }    public void release() {      functionName = null;   }   public String getRendererType() { return null; }    public String getComponentType() { return "com.corejsf.ValidatorScript"; }  }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?