Author: buscob
Date: Sat Apr 10 14:53:12 2010
New Revision: 932737
URL:
http://svn.apache.org/viewvc?rev=932737&view=revLog:
A patch from Blas Rodriguez Somoza
OFBIZ-3643 - Error screen in webtools->Import Export -> Induce model from database (Ofbiz Demo)
https://issues.apache.org/jira/browse/OFBIZ-3643Error screen when "induce model from database" option selected.
org.apache.jasper.JasperException: Unable to compile class for JSP:...
Modified:
ofbiz/trunk/framework/webtools/webapp/webtools/entity/ModelInduceFromDb.jsp
Modified: ofbiz/trunk/framework/webtools/webapp/webtools/entity/ModelInduceFromDb.jsp
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/entity/ModelInduceFromDb.jsp?rev=932737&r1=932736&r2=932737&view=diff==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/entity/ModelInduceFromDb.jsp (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/entity/ModelInduceFromDb.jsp Sat Apr 10 14:53:12 2010
@@ -24,24 +24,29 @@ if(security.hasPermission("ENTITY_MAINT"
response.setContentType("text/html");
%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html lang="en" dir="ltr" xmlns="
http://www.w3.org/1999/xhtml">
+<head>
+ <title>ModelInduceFromDB</title>
+</head>
+<body>
<div class='h3'><b>Put the name of the Datasource in the EntityEngine.xml to induce from:</b></div>
<form action='' method="post">
- <input type='TEXT' class='inputBox' size='40' name='helperName'>
- <input type=SUBMIT value='Induce!'>
+ <input type='text' class='inputBox' size='40' name='helperName' />
+ <input type='submit' value='Induce!' />
</form>
It's the datasource name. It doesn't need to be associated with a
- delegator, just defined in entityengine.xml.<br>
+ delegator, just defined in entityengine.xml.<br/>
<b> Use the browser to view the source and see the entities that were created.</b>
-
-
-
+</body>
+</html>
<%
} else {
response.setContentType("text/xml");
Collection messages = new LinkedList();
- GenericDAO dao = GenericDAO.getGenericDAO(helperName);
+ GenericDAO dao = GenericDAO.getGenericDAO(new GenericHelperInfo(null, helperName));
List newEntList = dao.induceModelFromDb(messages);
if(messages.size() > 0) {
@@ -148,4 +153,3 @@ else {
%>ERROR: You do not have permission to use this page (ENTITY_MAINT needed)<%
}
%>
-