1 14 15 package com.sun.facelets.compiler; 16 17 import java.io.IOException ; 18 19 import javax.faces.context.FacesContext; 20 import javax.faces.context.ResponseWriter; 21 22 final class UILiteralText extends UILeaf { 23 24 private final String text; 25 26 public UILiteralText(String text) { 27 this.text = text; 28 } 29 30 public void encodeBegin(FacesContext faces) throws IOException { 31 ResponseWriter writer = faces.getResponseWriter(); 32 writer.write(this.text); 33 } 34 public String toString() { 35 return this.text; 36 } 37 38 } 39 | Popular Tags |