Examples of appendToBody()


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

        final ObjectSpecification noSpec = getSpecification(specFullName);
        final ObjectAction action = noSpec.getObjectAction(null, actionId);

        // owners
        final Element div = xhtmlRenderer.div_p("Owners", null);
        xhtml.appendToBody(div);
        final Element ul = xhtmlRenderer.ul(HtmlClass.PROPERTIES);
        final String specUri =
            MessageFormat.format("{0}/specs/{1}", getServletRequest().getContextPath(), specFullName);
        ul.appendChild(xhtmlRenderer.li_a(specUri, specFullName, "owning spec", "spec", "facet"));
        final String actionUri =
View Full Code Here

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

                actionId);
        ul.appendChild(xhtmlRenderer.li_a(actionUri, actionId, "owning action", "collection", "facet"));
        div.appendChild(ul);

        try {
            xhtml.appendToBody(divFacetElements(facetTypeName, action));
        } catch (final IllegalArgumentException e) {
            throw new WebApplicationException(responseOfNotFound(e));
        } catch (final ClassNotFoundException e) {
            throw new WebApplicationException(responseOfInternalServerError(e));
        } catch (final IntrospectionException e) {
View Full Code Here

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

    @Produces(MediaType.APPLICATION_XHTML_XML)
    public String resources() {
        init();
        final XhtmlTemplate xhtml = new XhtmlTemplate("Home Page", getServletRequest());

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

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

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

    public String resources() {
        init();
        final XhtmlTemplate xhtml = new XhtmlTemplate("Home Page", getServletRequest());

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

        return xhtml.toXML();
    }

}
View Full Code Here

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

    @Override
    public String user() {
        init();

        final XhtmlTemplate xhtml = new XhtmlTemplate("User", getServletRequest());
        xhtml.appendToBody(asDivIsisSession());
        xhtml.appendToBody(resourcesDiv());

        final Element div = xhtmlRenderer.div_p("Roles", HtmlClass.SECTION);

        final Element ul = xhtmlRenderer.ul(HtmlClass.ROLES);
View Full Code Here

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

    public String user() {
        init();

        final XhtmlTemplate xhtml = new XhtmlTemplate("User", getServletRequest());
        xhtml.appendToBody(asDivIsisSession());
        xhtml.appendToBody(resourcesDiv());

        final Element div = xhtmlRenderer.div_p("Roles", HtmlClass.SECTION);

        final Element ul = xhtmlRenderer.ul(HtmlClass.ROLES);
        final List<String> roles = getSession().getRoles();
View Full Code Here

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

        for (final String role : roles) {
            ul.appendChild(xhtmlRenderer.li_p(role, HtmlClass.ROLE));
        }
        div.appendChild(ul);

        xhtml.appendToBody(div);

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

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

        // html template
        final XhtmlTemplate xhtml =
            new XhtmlTemplate(objectAdapter.titleString(), getServletRequest(), javascriptFile,
                Constants.ISIS_REST_SUPPORT_JS);

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

        // object div
        final Element objectDiv = div(HtmlClass.OBJECT);
        xhtml.appendToBody(objectDiv);
View Full Code Here

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

        final XhtmlTemplate xhtml =
            new XhtmlTemplate(objectAdapter.titleString(), getServletRequest(), javascriptFile,
                Constants.ISIS_REST_SUPPORT_JS);

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

        // object div
        final Element objectDiv = div(HtmlClass.OBJECT);
        xhtml.appendToBody(objectDiv);
View Full Code Here

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

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

        // object div
        final Element objectDiv = div(HtmlClass.OBJECT);
        xhtml.appendToBody(objectDiv);

        // title & Oid
        final Element objectSpecsDiv = asDivTableObjectDetails(objectAdapter);
        xhtml.appendToDiv(objectDiv, objectSpecsDiv);
        // xhtml.appendToBody(div);
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.