Skip to content

Instantly share code, notes, and snippets.

@eduardolundgren
Created November 29, 2011 18:43
Show Gist options
  • Select an option

  • Save eduardolundgren/1405904 to your computer and use it in GitHub Desktop.

Select an option

Save eduardolundgren/1405904 to your computer and use it in GitHub Desktop.
<%--
/**
* Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
--%>
<%@page import="com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalServiceUtil"%>
<%@page import="com.liferay.portlet.dynamicdatamapping.util.DDMXSDUtil"%>
<%@page import="com.liferay.portlet.dynamicdatamapping.model.DDMStructure"%>
<%@ include file="/html/portlet/breadcrumb/init.jsp" %>
<liferay-ui:breadcrumb displayStyle="<%= displayStyle %>" />
<%
DDMStructure ddmStructure = DDMStructureLocalServiceUtil.getStructure(10509);
String html = DDMXSDUtil.getHTML(pageContext, ddmStructure.getXsd(), locale);
%>
<h1>This is my form:</h1>
<%= html %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment