Package org.apache.isis.viewer.xhtml.viewer.html

Examples of org.apache.isis.viewer.xhtml.viewer.html.XhtmlTemplate.toXML()


        final XhtmlTemplate xhtml = new XhtmlTemplate("Home Page", getServletRequest());

        xhtml.appendToBody(asDivIsisSession());
        xhtml.appendToBody(resourcesDiv());

        return xhtml.toXML();
    }

}
View Full Code Here


        }
        div.appendChild(ul);

        xhtml.appendToBody(div);

        return xhtml.toXML();
    }
}
View Full Code Here

        // actions
        final Element actionsDivEl = asDivTableActions(getSession(), objectAdapter);
        xhtml.appendToDiv(objectDiv, actionsDivEl);
        // xhtml.appendToBody(actionsDivEl);

        return xhtml.toXML();
    }

    public Element asDivTableProperties(final AuthenticationSession session, final ObjectAdapter nakedObject) {
        final Element div = xhtmlRenderer.div_p("Properties", HtmlClass.PROPERTIES);
View Full Code Here

        xhtml.appendToBody(div);

        // if valid, then set
        property.setAssociation(nakedObject, proposedValueNO);

        return xhtml.toXML();
    }

    @Override
    public String clearProperty(final String oidEncodedStr, final String propertyEncodedId) {
        init();
View Full Code Here

        xhtml.appendToBody(div);

        // if valid, then clear
        property.clearAssociation(objectAdapter);

        return xhtml.toXML();
    }

    // /////////////////////////////////////////////////////////////////////
    // collections
    // /////////////////////////////////////////////////////////////////////
View Full Code Here

            final ObjectAdapter associatedNO = iter.next();
            ul.appendChild(toLiAHref(associatedNO));
        }

        xhtml.appendToBody(div);
        return xhtml.toXML();
    }

    @Override
    public String addToCollection(final String oidStr, final String collectionEncodedId,
        final String proposedValueEncodedOidStr) {
View Full Code Here

            collection.addElement(objectAdapter, proposedValueNO);
        } else {
            collection.removeElement(objectAdapter, proposedValueNO);
        }

        return xhtml.toXML();
    }

    // /////////////////////////////////////////////////////////////////////
    // actions
    // /////////////////////////////////////////////////////////////////////
View Full Code Here

        } else {
            final Object object = result.getObject();
            xhtml.appendToBody(actionResult(object));
        }

        return xhtml.toXML();
    }

    private static String[] urlDecode(final String[] encodedStrings) {
        final String[] strings = new String[encodedStrings.length];
        for (int i = 0; i < encodedStrings.length; i++) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.