diff --git a/framework/example/config/ExampleEntityLabels.xml b/framework/example/config/ExampleEntityLabels.xml
index 718264947d..a383e8bfbc 100644
--- a/framework/example/config/ExampleEntityLabels.xml
+++ b/framework/example/config/ExampleEntityLabels.xml
@@ -47,4 +47,72 @@ under the License.
Not Allowed
Non Permesso
+
+
+
+ Example ID
+ Codice Esempio
+ Cod Exemplu
+
+
+ Example Type ID
+
+
+ Example Item sequence ID
+
+
+ Amount
+ Importo
+ Import
+
+
+ Example Name
+ Nome Esempio
+ Nume Exemplu
+
+
+ Long Description
+ Descrizione Lunga
+ Descriere Lunga
+
+
+ Comments
+ Commenti
+ Comentarii
+
+
+ Example Size
+ Esempio Taglia
+ Marime-size Exemplu
+
+
+ Example Date
+ Esempio Data
+ Data Exemplu
+
+
+ Another Date
+ Altra Data
+
+
+ Another Text
+ Altro Testo
+
+
+ A unique Example ID. If you don't assign an
+ ID, one will be generated automatically
+
+
+ A unique Example Item sequence ID. If you don't assign an
+ ID, one will be generated automatically
+
+
+ A unique Example Type ID. If you don't assign an
+ ID, one will be generated automatically
+
diff --git a/framework/example/entitydef/entitymodel.xml b/framework/example/entitydef/entitymodel.xml
index 0c7143ff4b..bab4eea77b 100644
--- a/framework/example/entitydef/entitymodel.xml
+++ b/framework/example/entitydef/entitymodel.xml
@@ -40,7 +40,10 @@ under the License.
-
+
@@ -60,7 +63,7 @@ under the License.
-
+
@@ -72,7 +75,7 @@ under the License.
-
+
@@ -123,7 +126,7 @@ under the License.
+ title="Example Feature Entity" default-resource-name="ExampleEntityLabels">
@@ -134,7 +137,7 @@ under the License.
+ title="Example Feature Application Entity" default-resource-name="ExampleEntityLabels">
diff --git a/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java b/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java
index b28865417a..8d64ff8174 100644
--- a/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java
+++ b/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java
@@ -28,6 +28,7 @@ import java.util.Collection;
import java.util.TreeSet;
import java.util.Locale;
import java.util.Map;
+import java.util.ResourceBundle;
import java.io.File;
import java.io.InputStream;
import java.io.StringReader;
@@ -50,6 +51,7 @@ import org.ofbiz.base.util.Debug;
import org.ofbiz.base.util.StringUtil;
import org.ofbiz.base.util.UtilMisc;
import org.ofbiz.base.util.UtilProperties;
+import org.ofbiz.base.util.UtilProperties.XmlResourceBundle;
import org.ofbiz.base.util.UtilURL;
import org.ofbiz.base.util.UtilValidate;
import org.ofbiz.base.util.UtilDateTime;
@@ -67,6 +69,7 @@ import org.ofbiz.entity.model.ModelFieldType;
import org.ofbiz.entity.model.ModelIndex;
import org.ofbiz.entity.model.ModelRelation;
import org.ofbiz.entity.model.ModelKeyMap;
+import org.ofbiz.entity.model.ModelUtil;
import org.ofbiz.entity.model.ModelViewEntity;
import org.ofbiz.security.Security;
import org.ofbiz.service.DispatchContext;
@@ -605,18 +608,19 @@ public class WebToolsServices {
* */
public static Map getEntityRefData(DispatchContext dctx, Map context) {
GenericDelegator delegator = dctx.getDelegator();
- Map resultMap = ServiceUtil.returnSuccess();
+ Locale locale = (Locale) context.get("locale");
+ ClassLoader loader = Thread.currentThread().getContextClassLoader();
+ Map resultMap = ServiceUtil.returnSuccess();
ModelReader reader = delegator.getModelReader();
- Map packages = new HashMap();
- TreeSet packageNames = new TreeSet();
- TreeSet tableNames = new TreeSet();
+ Map packages = new HashMap();
+ TreeSet packageNames = new TreeSet();
+ TreeSet tableNames = new TreeSet();
//put the entityNames TreeSets in a HashMap by packageName
try {
Collection ec = reader.getEntityNames();
resultMap.put("numberOfEntities", ec.size());
- TreeSet entityNames = new TreeSet(ec);
Iterator ecIter = ec.iterator();
while (ecIter.hasNext()) {
String eName = (String) ecIter.next();
@@ -625,9 +629,9 @@ public class WebToolsServices {
if (UtilValidate.isNotEmpty(ent.getPlainTableName())) {
tableNames.add(ent.getPlainTableName());
}
- TreeSet entities = (TreeSet) packages.get(ent.getPackageName());
+ TreeSet entities = (TreeSet) packages.get(ent.getPackageName());
if (entities == null) {
- entities = new TreeSet();
+ entities = new TreeSet();
packages.put(ent.getPackageName(), entities);
packageNames.add(ent.getPackageName());
}
@@ -638,35 +642,59 @@ public class WebToolsServices {
}
String search = (String) context.get("search");
- List packagesList = new ArrayList();
+ List