Author: sascharodekamp
Date: Sat Feb 19 10:47:53 2011 New Revision: 1072303 URL: http://svn.apache.org/viewvc?rev=1072303&view=rev Log: Bug - Screen Link Ajax Windows (https://issues.apache.org/jira/browse/OFBIZ-4183) - Erwan found a bug regarding the layered links in the example screens, it's fixed, i created a seperated screen for the layered link. Thanks Erwan for reporting. Orig. Msg.: now there is a problem when you click on an example to edit it, the decorator is no more present on the form. to reproduce In example component, search all examples the click on an id. Modified: ofbiz/trunk/framework/example/webapp/example/WEB-INF/controller.xml ofbiz/trunk/framework/example/widget/example/ExampleScreens.xml Modified: ofbiz/trunk/framework/example/webapp/example/WEB-INF/controller.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/webapp/example/WEB-INF/controller.xml?rev=1072303&r1=1072302&r2=1072303&view=diff ============================================================================== --- ofbiz/trunk/framework/example/webapp/example/WEB-INF/controller.xml (original) +++ ofbiz/trunk/framework/example/webapp/example/WEB-INF/controller.xml Sat Feb 19 10:47:53 2011 @@ -54,6 +54,7 @@ under the License. <!-- Example Requests --> <request-map uri="FindExample"><security https="true" auth="true"/><response name="success" type="view" value="FindExample"/></request-map> <request-map uri="EditExample"><security https="true" auth="true"/><response name="success" type="view" value="EditExample"/></request-map> + <request-map uri="EditExampleLayer"><security https="true" auth="true"/><response name="success" type="view" value="EditExampleLayer"/></request-map> <request-map uri="ExampleReportHtml"><security https="true" auth="true"/><response name="success" type="view" value="ExampleReportHtml"/></request-map> <request-map uri="ExampleReportPdf"><security https="true" auth="true"/><response name="success" type="view" value="ExampleReportPdf"/></request-map> <request-map uri="createExample"> @@ -240,6 +241,7 @@ under the License. <view-map name="FindExample" type="screen" page="component://example/widget/example/ExampleScreens.xml#FindExample"/> <view-map name="EditExample" type="screen" page="component://example/widget/example/ExampleScreens.xml#EditExample"/> + <view-map name="EditExampleLayer" type="screen" page="component://example/widget/example/ExampleScreens.xml#EditExampleLayer"/> <view-map name="EditExampleItems" type="screen" page="component://example/widget/example/ExampleScreens.xml#EditExampleItems"/> <view-map name="EditExampleFeatureAppls" type="screen" page="component://example/widget/example/ExampleScreens.xml#EditExampleFeatureAppls"/> <view-map name="ExampleReportHtml" type="screen" page="component://example/widget/example/ExampleScreens.xml#ExampleReport"/> Modified: ofbiz/trunk/framework/example/widget/example/ExampleScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/ExampleScreens.xml?rev=1072303&r1=1072302&r2=1072303&view=diff ============================================================================== --- ofbiz/trunk/framework/example/widget/example/ExampleScreens.xml (original) +++ ofbiz/trunk/framework/example/widget/example/ExampleScreens.xml Sat Feb 19 10:47:53 2011 @@ -39,7 +39,7 @@ under the License. <widgets> <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml"> <decorator-section name="menu-bar"> - <container style="button-bar"><link target="EditExample" link-type="ajax-window" height="350" width="480" text="${uiLabelMap.ExampleNewExample}" style="buttontext create"/></container> + <container style="button-bar"><link target="EditExampleLayer" link-type="ajax-window" height="350" width="480" text="${uiLabelMap.ExampleNewExample}" style="buttontext create"/></container> </decorator-section> <decorator-section name="search-options"> <include-form name="FindExamples" location="component://example/widget/example/ExampleForms.xml"/> @@ -59,7 +59,7 @@ under the License. </section> </screen> - <screen name="EditExample"> + <screen name="EditExampleLayer"> <section> <actions> <set field="titleProperty" value="PageTitleEditExample"/> @@ -73,6 +73,24 @@ under the License. </section> </screen> + <screen name="EditExample"> + <section> + <actions> + <set field="titleProperty" value="PageTitleEditExample"/> + <set field="tabButtonItem" value="EditExample"/> + <set field="exampleId" from-field="parameters.exampleId"/> + <entity-one entity-name="Example" value-field="example"/> + </actions> + <widgets> + <decorator-screen name="CommonExampleDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <include-form name="EditExample" location="component://example/widget/example/ExampleForms.xml"/> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="ExampleReport"> <section> <actions> |
Free forum by Nabble | Edit this page |