Author: lektran
Date: Tue Nov 17 03:29:44 2009
New Revision: 881139
URL:
http://svn.apache.org/viewvc?rev=881139&view=revLog:
Added a screenlet to webtool's view value screen that shows an entity xml representation of the value, might be useful if you've got some xml data files to build by hand
Modified:
ofbiz/trunk/framework/webtools/webapp/webtools/entity/ViewGeneric.ftl
Modified: ofbiz/trunk/framework/webtools/webapp/webtools/entity/ViewGeneric.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/entity/ViewGeneric.ftl?rev=881139&r1=881138&r2=881139&view=diff==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/entity/ViewGeneric.ftl (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/entity/ViewGeneric.ftl Tue Nov 17 03:29:44 2009
@@ -258,5 +258,18 @@
</#list>
</#if>
</div>
+ <div class="screenlet">
+ <div class="screenlet-title-bar">
+ <h3>${uiLabelMap.WebtoolsEntityXMLRepresentation}</h3>
+ </div>
+ <div class="screenlet-body">
+ <p>
+ <#if value?has_content>
+ <#assign valueXmlDoc = Static["org.ofbiz.entity.GenericValue"].makeXmlDocument([value]) />
+ ${Static["org.ofbiz.base.util.UtilXml"].writeXmlDocument(valueXmlDoc)?replace("\n", "<br/>")?replace(" ", " ")}
+ </#if>
+ </p>
+ </div>
+ </div>
<br class="clear"/>
</div>