Author: jleroux
Date: Wed Aug 31 02:33:39 2011
New Revision: 1163473
URL:
http://svn.apache.org/viewvc?rev=1163473&view=revLog:
A patch from Marcelo Giubergia "Update (Edit) contact information throws missing screen error "
https://issues.apache.org/jira/browse/OFBIZ-3477Reported by Babu Sreekanth w/out specifying release. Apply only to R10.04
Created an organization through ofbiz setup. Then on the profile page (URL:
https://localhost:8443/ofbizsetup/control/viewprofile?partyId=ABJ_Enter), clicked on the update button for postal address (URL:
https://localhost:8443/ofbizsetup/control/editcontactmech?partyId=ABJ_Enter&contactMechId=10003). It throws an error and the browser error listing is given below.
ERROR rendering error page [/error/error.jsp], but here is the error text: org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen component://party/widget/partymgr/PartyScreens.xml#editcontactmech: java.lang.IllegalArgumentException: Could not find screen with name [CommonPartyDecorator] in class resource [component://commonext/widget/ofbizsetup/CommonScreens.xml] (Could not find screen with name [CommonPartyDecorator] in class resource [component://commonext/widget/ofbizsetup/CommonScreens.xml])
It works fine when tried Party Manager --> Update [Postal address] (URL:
https://localhost:8443/partymgr/control/editcontactmech?partyId=ABJ_Enter&contactMechId=10003)
Marcello: The error is still present in release10.04 branch. The solution was to add a CommonPArtyDecorator in /applications/commonext/widget/ofbizsetup/CommonScreens.xml
Modified:
ofbiz/branches/release10.04/applications/commonext/widget/ofbizsetup/CommonScreens.xml
Modified: ofbiz/branches/release10.04/applications/commonext/widget/ofbizsetup/CommonScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release10.04/applications/commonext/widget/ofbizsetup/CommonScreens.xml?rev=1163473&r1=1163472&r2=1163473&view=diff==============================================================================
--- ofbiz/branches/release10.04/applications/commonext/widget/ofbizsetup/CommonScreens.xml (original)
+++ ofbiz/branches/release10.04/applications/commonext/widget/ofbizsetup/CommonScreens.xml Wed Aug 31 02:33:39 2011
@@ -50,7 +50,15 @@
</widgets>
</section>
</screen>
-
+
+ <screen name="CommonPartyDecorator">
+ <section>
+ <widgets>
+ <include-screen name="CommonSetupDecorator"/>
+ </widgets>
+ </section>
+ </screen>
+
<screen name="CommonSetupDecorator">
<section>
<actions>