Author: jacopoc
Date: Sun May 25 23:37:58 2008
New Revision: 660108
URL:
http://svn.apache.org/viewvc?rev=660108&view=revLog:
For backward compatibility we load the html platform-dependent template if the one for xsl-fo is not found.
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=660108&r1=660107&r2=660108&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 May 25 23:37:58 2008
@@ -929,6 +929,11 @@
ModelScreenWidget subWidget = null;
if (screenStringRenderer instanceof FoScreenRenderer) {
subWidget = (ModelScreenWidget)subWidgets.get("xsl-fo");
+ if (subWidget == null) {
+ // This is here for backward compatibility
+ Debug.logWarning("In platform-dependent could not find template for xsl-fo, using the one for html.", module);
+ subWidget = (ModelScreenWidget)subWidgets.get("html");
+ }
} else {
FormStringRenderer formRenderer = (FormStringRenderer)context.get("formStringRenderer");
if (formRenderer instanceof XmlFormRenderer) {