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

📄 htmlhelloworld.java

📁 tbuy1.1.5是在netbeans环境下用JSF技术编写的一个论坛tbuy1.1.5是在netbeans环境下用JSF技术编写的一个论坛
💻 JAVA
字号:
/* * HtmlHelloWorld.java *  * Created on 2007-9-24, 7:12:09 *  * To change this template, choose Tools | Templates * and open the template in the editor. */package biz.tbuy.common.components.test;import java.io.IOException;import javax.faces.component.UIComponentBase;import javax.faces.context.FacesContext;import javax.faces.context.ResponseWriter;/** * * @author Administrator */public class HtmlHelloWorld extends UIComponentBase{    public HtmlHelloWorld() {    }    public String getFamily() {        return null;    }    @Override    public void encodeBegin(FacesContext context) throws IOException {        String msg = (String)getAttributes().get("msg");        ResponseWriter writer = context.getResponseWriter();        writer.startElement("div", this);        writer.writeAttribute("style", "color:red", null);        writer.writeAttribute("id", getClientId(context), null);        writer.writeText(msg, null);        writer.endElement("div");    }}

⌨️ 快捷键说明

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