Author: adrianc
Date: Sun Jun 1 11:05:58 2008
New Revision: 662258
URL:
http://svn.apache.org/viewvc?rev=662258&view=revLog:
Screenlet widget bug fix.
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java?rev=662258&r1=662257&r2=662258&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java Sun Jun 1 11:05:58 2008
@@ -416,11 +416,11 @@
}
public String getPreferenceKey(Map<String, Object> context) {
- String name = this.modelScreen.getName();
+ String name = this.idExdr.expandString(context);
if (UtilValidate.isEmpty(name)) {
- name = this.idExdr.expandString(context);
+ name = this.modelScreen.getName() + "_" + this.name;
}
- return name + "_" + this.name;
+ return name;
}
public String getId(Map<String, Object> context) {
@@ -430,7 +430,7 @@
public String getTitle(Map<String, Object> context) {
return this.titleExdr.expandString(context);
}
-
+
public Menu getNavigationMenu() {
return this.navigationMenu;
}