⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 htmlhelloworldtag.java

📁 tbuy1.1.5是在netbeans环境下用JSF技术编写的一个论坛tbuy1.1.5是在netbeans环境下用JSF技术编写的一个论坛
💻 JAVA
字号:
/* * HtmlHelloWorldTag.java *  * Created on 2007-9-24, 7:19:26 *  * To change this template, choose Tools | Templates * and open the template in the editor. */package biz.tbuy.common.components.test;import javax.faces.application.Application;import javax.faces.component.UIComponent;import javax.faces.context.FacesContext;import javax.faces.el.ValueBinding;import javax.faces.webapp.UIComponentTag;/** * * @author Administrator */public class HtmlHelloWorldTag extends UIComponentTag{    String msg = null;    public HtmlHelloWorldTag() {    }    public String getComponentType() {        return "HtmlHelloWorld";    }    public String getRendererType() {        return null;    }        @Override    protected void setProperties(UIComponent ui) {        super.setProperties(ui);        if (msg != null) {            if (isValueReference(msg)) {                FacesContext fc = FacesContext.getCurrentInstance();                Application app = fc.getApplication();                ValueBinding vb = app.createValueBinding(msg);                ui.setValueBinding("msg", vb);            } else {                ui.getAttributes().put("msg", msg);            }        }    }        public void setMsg(String msg) {        this.msg = msg;    }        public void release() {        super.release();        msg = null;    }}

⌨️ 快捷键说明

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