2
* Copyright 2002-2004 The Apache Software Foundation.
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
8
* http://www.apache.org/licenses/LICENSE-2.0
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
17
package org.apache.struts.faces.taglib;
20
import javax.faces.component.UIComponent;
24
* <p>Write the content of the specified component, converting to text
25
* as necessary first, for the
26
* <em>Struts-Faces Integration Library</em>.</p>
29
* @version $Revision: 1.8 $ $Date: 2004/07/08 01:11:28 $
32
public class WriteTag extends AbstractFacesTag {
35
// --------------------------------------------------------- Tag Attributes
39
* <p>Flag indicating that rendered content should be filtered for
40
* characters that are sensitive in HTML.</p>
42
private String filter = null;
44
public void setFilter(String filter) {
49
// ---------------------------------------------------------- Public Methods
53
* <p>Return the type of component to be created for this tag.</p>
55
public String getComponentType() {
57
return ("org.apache.struts.faces.Write");
63
* <p>Return the <code>rendererType</code> to be used for rendering
66
public String getRendererType() {
68
return ("org.apache.struts.faces.Write");
74
* <p>Release resources allocated to this tag instance.</p>
76
public void release() {
84
// ------------------------------------------------------- Protected Methods
88
* <p>Override attributes set on this tag instance.</p>
90
* @param component Component whose attributes should be overridden
92
protected void setProperties(UIComponent component) {
94
super.setProperties(component);
95
setBooleanAttribute(component, "filter", filter);