Search in sources :

Example 11 with XhtmlBuffer

use of com.manydesigns.elements.xml.XhtmlBuffer in project Portofino by ManyDesigns.

the class ElementTest method testAllMethods.

@Test
public void testAllMethods() {
    assertNull(composite.getId());
    composite.readFromRequest(null);
    composite.readFromObject(null);
    composite.validate();
    XhtmlBuffer xb = new XhtmlBuffer();
    composite.toXhtml(xb);
}
Also used : XhtmlBuffer(com.manydesigns.elements.xml.XhtmlBuffer) Test(org.testng.annotations.Test)

Example 12 with XhtmlBuffer

use of com.manydesigns.elements.xml.XhtmlBuffer in project Portofino by ManyDesigns.

the class RequestMessages method addWarningMessage.

public static void addWarningMessage(XhtmlFragment xml) {
    XhtmlBuffer buf = new XhtmlBuffer();
    xml.toXhtml(buf);
    getWarningQueue().add(buf.toString());
}
Also used : XhtmlBuffer(com.manydesigns.elements.xml.XhtmlBuffer)

Example 13 with XhtmlBuffer

use of com.manydesigns.elements.xml.XhtmlBuffer in project Portofino by ManyDesigns.

the class RequestMessages method addInfoMessage.

public static void addInfoMessage(XhtmlFragment xml) {
    XhtmlBuffer buf = new XhtmlBuffer();
    xml.toXhtml(buf);
    getInfoQueue().add(buf.toString());
}
Also used : XhtmlBuffer(com.manydesigns.elements.xml.XhtmlBuffer)

Example 14 with XhtmlBuffer

use of com.manydesigns.elements.xml.XhtmlBuffer in project Portofino by ManyDesigns.

the class SessionMessages method addInfoMessage.

public static void addInfoMessage(XhtmlFragment xml) {
    XhtmlBuffer buf = new XhtmlBuffer();
    xml.toXhtml(buf);
    getInfoQueue().add(buf.toString());
}
Also used : XhtmlBuffer(com.manydesigns.elements.xml.XhtmlBuffer)

Aggregations

XhtmlBuffer (com.manydesigns.elements.xml.XhtmlBuffer)14 PropertyAccessor (com.manydesigns.elements.reflection.PropertyAccessor)1 UrlBuilder (com.manydesigns.elements.servlet.UrlBuilder)1 OgnlTextFormat (com.manydesigns.elements.text.OgnlTextFormat)1 XhtmlFragment (com.manydesigns.elements.xml.XhtmlFragment)1 OutputStreamWriter (java.io.OutputStreamWriter)1 StringWriter (java.io.StringWriter)1 Charset (java.nio.charset.Charset)1 JspWriter (javax.servlet.jsp.JspWriter)1 OgnlContext (ognl.OgnlContext)1 JSONObject (org.json.JSONObject)1 BeforeMethod (org.testng.annotations.BeforeMethod)1 Test (org.testng.annotations.Test)1