Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 // Copyright 2007, 2008 The Apache Software Foundation
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry5.corelib.components;
Used to output raw markup to the client. Unlike, say, an expansion, the output from OutputRaw is unfiltered, with any special characters or entities left exactly as is. This is used in situations where the markup is provided externally, rather than constructed within Tapestry.

public class OutputRaw
The value to to render. If unbound, and a property of the container matches the component's id, then that property will be the source of the value.
    @Parameter(required = true, autoconnect = true)
    private String value;
    private ComponentResources resources;
    boolean beginRender(MarkupWriter writer)
        if ( != null && .length() > 0) writer.writeRaw();
        // Abort the rest of the render.
        return false;
    // For testing:
    void setValue(String value)
        this. = value;
New to GrepCode? Check out our FAQ X