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

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


        }
        div.appendChild(ul);

        xhtml.appendToBody(div);

        return xhtml.toXML();
    }

    private SpecificationLoader getSpecificationLoader() {
        return IsisContext.getSpecificationLoader();
    }
View Full Code Here


        for (final ActionType type : ACTION_TYPES) {
            final Element actionsDivEl = asDivActions(noSpec, type);
            xhtml.appendToBody(actionsDivEl);
        }

        return xhtml.toXML();
    }

    private Element asDivProperties(final ObjectSpecification noSpec) {
        final Element div = xhtmlRenderer.div_p("Properties", HtmlClass.PROPERTIES);
View Full Code Here

            throw new WebApplicationException(responseOfInternalServerError(e));
        } catch (final InvocationTargetException e) {
            throw new WebApplicationException(responseOfInternalServerError(e));
        }

        return xhtml.toXML();
    }

    // /////////////////////////////////////////////////////////////////////
    // specProperty
    // /////////////////////////////////////////////////////////////////////
View Full Code Here

        final ObjectSpecification noSpec = getSpecification(specFullName);
        final ObjectAssociation property = noSpec.getAssociation(propertyName);

        xhtml.appendToBody(asDivTableFacets(property, propertyName));

        return xhtml.toXML();
    }

    // /////////////////////////////////////////////////////////////////////
    // specCollection
    // /////////////////////////////////////////////////////////////////////
View Full Code Here

        final ObjectSpecification noSpec = getSpecification(specFullName);
        final ObjectAssociation collection = noSpec.getAssociation(collectionName);

        xhtml.appendToBody(asDivTableFacets(collection, collectionName));

        return xhtml.toXML();
    }

    // /////////////////////////////////////////////////////////////////////
    // specAction
    // /////////////////////////////////////////////////////////////////////
View Full Code Here

        }
        div.appendChild(ul);

        xhtml.appendToBody(div);

        return xhtml.toXML();
    }

}
View Full Code Here

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

        xhtml.appendToBody(asDivTableFacets(action, actionId));

        return xhtml.toXML();
    }

    // /////////////////////////////////////////////////////////////////////
    // specPropertyFacet
    // /////////////////////////////////////////////////////////////////////
View Full Code Here

            throw new WebApplicationException(responseOfInternalServerError(e));
        } catch (final InvocationTargetException e) {
            throw new WebApplicationException(responseOfInternalServerError(e));
        }

        return xhtml.toXML();
    }

    // /////////////////////////////////////////////////////////////////////
    // specCollectionFacet
    // /////////////////////////////////////////////////////////////////////
View Full Code Here

            throw new WebApplicationException(responseOfInternalServerError(e));
        } catch (final InvocationTargetException e) {
            throw new WebApplicationException(responseOfInternalServerError(e));
        }

        return xhtml.toXML();
    }

    // /////////////////////////////////////////////////////////////////////
    // specActionFacet
    // /////////////////////////////////////////////////////////////////////
View Full Code Here

            throw new WebApplicationException(responseOfInternalServerError(e));
        } catch (final InvocationTargetException e) {
            throw new WebApplicationException(responseOfInternalServerError(e));
        }

        return xhtml.toXML();
    }

}
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.