You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by bu...@apache.org on 2010/09/19 09:15:24 UTC

svn commit: r998604 - in /ofbiz/trunk/framework/example: data/ExamplePortalSeedData.xml widget/example/ExampleScreens.xml

Author: buscob
Date: Sun Sep 19 07:15:24 2010
New Revision: 998604

URL: http://svn.apache.org/viewvc?rev=998604&view=rev
Log:
Used "EXAMPLE" PortalPage as demo in example application instead of the "PartyProfile" PortalPage that is defined out of the framework

Modified:
    ofbiz/trunk/framework/example/data/ExamplePortalSeedData.xml
    ofbiz/trunk/framework/example/widget/example/ExampleScreens.xml

Modified: ofbiz/trunk/framework/example/data/ExamplePortalSeedData.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/data/ExamplePortalSeedData.xml?rev=998604&r1=998603&r2=998604&view=diff
==============================================================================
--- ofbiz/trunk/framework/example/data/ExamplePortalSeedData.xml (original)
+++ ofbiz/trunk/framework/example/data/ExamplePortalSeedData.xml Sun Sep 19 07:15:24 2010
@@ -21,11 +21,16 @@ under the License.
 <entity-engine-xml>
     <!-- PortalPortlet Seed Data: system pages -->
     <PortalPage portalPageId="EXAMPLE" sequenceNum="0" portalPageName="Example Portal Page" description="The default example OFBiz portal page" ownerUserLoginId="_NA_"/>
-    <PortalPageColumn portalPageId="EXAMPLE" columnSeqId="00001" columnWidthPercentage="50"/>
+    <PortalPageColumn portalPageId="EXAMPLE" columnSeqId="00001" columnWidthPixels="400"/>
     <PortalPageColumn portalPageId="EXAMPLE" columnSeqId="00002"/><!-- no width in pixels or percent, use the rest of the space available -->
-
     <PortalPagePortlet portalPageId="EXAMPLE" portalPortletId="EXAMPLE_1" portletSeqId="00001" columnSeqId="00001" sequenceNum="0"/>
     <PortalPagePortlet portalPageId="EXAMPLE" portalPortletId="EXAMPLE_3" portletSeqId="00001" columnSeqId="00002" sequenceNum="1"/>
+    <PortalPagePortlet portalPageId="EXAMPLE" portalPortletId="showContent" portletSeqId="00001" columnSeqId="00001"/>
+    <PortletAttribute portalPageId="EXAMPLE" portalPortletId="showContent" portletSeqId="00001" attrName="contentId" attrValue="HELP_BIRT"/>
+    <PortalPagePortlet portalPageId="EXAMPLE" portalPortletId="showContent" portletSeqId="00002" columnSeqId="00002"/>
+    <PortletAttribute portalPageId="EXAMPLE" portalPortletId="showContent" portletSeqId="00002" attrName="contentId" attrValue="SETUP_firstCatalog"/>
+    <PortalPagePortlet portalPageId="EXAMPLE" portalPortletId="showContent" portletSeqId="00003" columnSeqId="00002"/>
+    <PortletAttribute portalPageId="EXAMPLE" portalPortletId="showContent" portletSeqId="00003" attrName="contentId" attrValue="HELP_ACCOUNTING"/>
 
     <PortalPage portalPageId="EXAMPLE1" sequenceNum="100" parentPortalPageId="EXAMPLE" portalPageName="Example Portal Page 1" description="Portal page 1" ownerUserLoginId="_NA_"/>
     <PortalPageColumn portalPageId="EXAMPLE1" columnSeqId="00001"/>

Modified: ofbiz/trunk/framework/example/widget/example/ExampleScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/ExampleScreens.xml?rev=998604&r1=998603&r2=998604&view=diff
==============================================================================
--- ofbiz/trunk/framework/example/widget/example/ExampleScreens.xml (original)
+++ ofbiz/trunk/framework/example/widget/example/ExampleScreens.xml Sun Sep 19 07:15:24 2010
@@ -474,7 +474,7 @@ under the License.
             <widgets>
                 <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
                     <decorator-section name="body">
-                        <include-portal-page id="PartyProfile" edit-mode="${parameters.editmode}"/>
+                        <include-portal-page id="EXAMPLE" edit-mode="${parameters.editmode}"/>
                     </decorator-section>
                 </decorator-screen>
             </widgets>



Re: svn commit: r998604 - in /ofbiz/trunk/framework/example: data/ExamplePortalSeedData.xml widget/example/ExampleScreens.xml

Posted by Bruno Busco <br...@gmail.com>.
Hi Scott,
thank you for reporting: I will look into it ASAP.

-Bruno

2010/9/24 Scott Gray <sc...@hotwaxmedia.com>

> Hi Bruno,
>
> The run-install data load seems to complain about these changes:
> [java] 2010-09-24 15:17:55,073 (main) [    EntitySaxReader.java:220:INFO ]
> Beginning import from URL:
> file:/Users/lektran/Documents/workspace/gitbiz/framework/example/data/ExamplePortalSeedData.xml
>     [java] 2010-09-24 15:17:55,073 (main) [
>  EntitySaxReader.java:270:INFO ] Transaction Timeout set to 2 hours (7200
> seconds)
>     [java] 2010-09-24 15:17:55,186 (main) [
> GenericDelegator.java:889:ERROR]
>     [java] ---- exception report
> ----------------------------------------------------------
>     [java] Failure in create operation for entity [PortalPagePortlet]:
> org.ofbiz.entity.GenericEntityException: Error while inserting:
> [GenericEntity:PortalPagePortlet][columnSeqId,00001(java.lang.String)][createdStamp,2010-09-24
> 15:17:55.115(java.sql.Timestamp)][createdTxStamp,2010-09-24
> 15:17:55.073(java.sql.Timestamp)][lastUpdatedStamp,2010-09-24
> 15:17:55.115(java.sql.Timestamp)][lastUpdatedTxStamp,2010-09-24
> 15:17:55.073(java.sql.Timestamp)][portalPageId,EXAMPLE(java.lang.String)][portalPortletId,showContent(java.lang.String)][portletSeqId,00001(java.lang.String)]
> (SQL Exception while executing the following:INSERT INTO
> OFBIZ.PORTAL_PAGE_PORTLET (PORTAL_PAGE_ID, PORTAL_PORTLET_ID,
> PORTLET_SEQ_ID, COLUMN_SEQ_ID, SEQUENCE_NUM, LAST_UPDATED_STAMP,
> LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?,
> ?, ?, ?, ?, ?) (INSERT on table 'PORTAL_PAGE_PORTLET' caused a violation of
> foreign key constraint 'PRTL_PGPTLT_PTLT' for key (showContent).  The
> statement has been rolled back.)). Rolling back transaction.
>
> Regards
> Scott
>
> HotWax Media
> http://www.hotwaxmedia.com
>
> On 19/09/2010, at 7:15 PM, buscob@apache.org wrote:
>
> > Author: buscob
> > Date: Sun Sep 19 07:15:24 2010
> > New Revision: 998604
> >
> > URL: http://svn.apache.org/viewvc?rev=998604&view=rev
> > Log:
> > Used "EXAMPLE" PortalPage as demo in example application instead of the
> "PartyProfile" PortalPage that is defined out of the framework
> >
> > Modified:
> >    ofbiz/trunk/framework/example/data/ExamplePortalSeedData.xml
> >    ofbiz/trunk/framework/example/widget/example/ExampleScreens.xml
> >
> > Modified: ofbiz/trunk/framework/example/data/ExamplePortalSeedData.xml
> > URL:
> http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/data/ExamplePortalSeedData.xml?rev=998604&r1=998603&r2=998604&view=diff
> >
> ==============================================================================
> > --- ofbiz/trunk/framework/example/data/ExamplePortalSeedData.xml
> (original)
> > +++ ofbiz/trunk/framework/example/data/ExamplePortalSeedData.xml Sun Sep
> 19 07:15:24 2010
> > @@ -21,11 +21,16 @@ under the License.
> > <entity-engine-xml>
> >     <!-- PortalPortlet Seed Data: system pages -->
> >     <PortalPage portalPageId="EXAMPLE" sequenceNum="0"
> portalPageName="Example Portal Page" description="The default example OFBiz
> portal page" ownerUserLoginId="_NA_"/>
> > -    <PortalPageColumn portalPageId="EXAMPLE" columnSeqId="00001"
> columnWidthPercentage="50"/>
> > +    <PortalPageColumn portalPageId="EXAMPLE" columnSeqId="00001"
> columnWidthPixels="400"/>
> >     <PortalPageColumn portalPageId="EXAMPLE" columnSeqId="00002"/><!-- no
> width in pixels or percent, use the rest of the space available -->
> > -
> >     <PortalPagePortlet portalPageId="EXAMPLE" portalPortletId="EXAMPLE_1"
> portletSeqId="00001" columnSeqId="00001" sequenceNum="0"/>
> >     <PortalPagePortlet portalPageId="EXAMPLE" portalPortletId="EXAMPLE_3"
> portletSeqId="00001" columnSeqId="00002" sequenceNum="1"/>
> > +    <PortalPagePortlet portalPageId="EXAMPLE"
> portalPortletId="showContent" portletSeqId="00001" columnSeqId="00001"/>
> > +    <PortletAttribute portalPageId="EXAMPLE"
> portalPortletId="showContent" portletSeqId="00001" attrName="contentId"
> attrValue="HELP_BIRT"/>
> > +    <PortalPagePortlet portalPageId="EXAMPLE"
> portalPortletId="showContent" portletSeqId="00002" columnSeqId="00002"/>
> > +    <PortletAttribute portalPageId="EXAMPLE"
> portalPortletId="showContent" portletSeqId="00002" attrName="contentId"
> attrValue="SETUP_firstCatalog"/>
> > +    <PortalPagePortlet portalPageId="EXAMPLE"
> portalPortletId="showContent" portletSeqId="00003" columnSeqId="00002"/>
> > +    <PortletAttribute portalPageId="EXAMPLE"
> portalPortletId="showContent" portletSeqId="00003" attrName="contentId"
> attrValue="HELP_ACCOUNTING"/>
> >
> >     <PortalPage portalPageId="EXAMPLE1" sequenceNum="100"
> parentPortalPageId="EXAMPLE" portalPageName="Example Portal Page 1"
> description="Portal page 1" ownerUserLoginId="_NA_"/>
> >     <PortalPageColumn portalPageId="EXAMPLE1" columnSeqId="00001"/>
> >
> > Modified: ofbiz/trunk/framework/example/widget/example/ExampleScreens.xml
> > URL:
> http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/ExampleScreens.xml?rev=998604&r1=998603&r2=998604&view=diff
> >
> ==============================================================================
> > --- ofbiz/trunk/framework/example/widget/example/ExampleScreens.xml
> (original)
> > +++ ofbiz/trunk/framework/example/widget/example/ExampleScreens.xml Sun
> Sep 19 07:15:24 2010
> > @@ -474,7 +474,7 @@ under the License.
> >             <widgets>
> >                 <decorator-screen name="main-decorator"
> location="${parameters.mainDecoratorLocation}">
> >                     <decorator-section name="body">
> > -                        <include-portal-page id="PartyProfile"
> edit-mode="${parameters.editmode}"/>
> > +                        <include-portal-page id="EXAMPLE"
> edit-mode="${parameters.editmode}"/>
> >                     </decorator-section>
> >                 </decorator-screen>
> >             </widgets>
> >
> >
>
>

Re: svn commit: r998604 - in /ofbiz/trunk/framework/example: data/ExamplePortalSeedData.xml widget/example/ExampleScreens.xml

Posted by Scott Gray <sc...@hotwaxmedia.com>.
Hi Bruno,

The run-install data load seems to complain about these changes:
[java] 2010-09-24 15:17:55,073 (main) [    EntitySaxReader.java:220:INFO ] Beginning import from URL: file:/Users/lektran/Documents/workspace/gitbiz/framework/example/data/ExamplePortalSeedData.xml
     [java] 2010-09-24 15:17:55,073 (main) [    EntitySaxReader.java:270:INFO ] Transaction Timeout set to 2 hours (7200 seconds)
     [java] 2010-09-24 15:17:55,186 (main) [   GenericDelegator.java:889:ERROR] 
     [java] ---- exception report ----------------------------------------------------------
     [java] Failure in create operation for entity [PortalPagePortlet]: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:PortalPagePortlet][columnSeqId,00001(java.lang.String)][createdStamp,2010-09-24 15:17:55.115(java.sql.Timestamp)][createdTxStamp,2010-09-24 15:17:55.073(java.sql.Timestamp)][lastUpdatedStamp,2010-09-24 15:17:55.115(java.sql.Timestamp)][lastUpdatedTxStamp,2010-09-24 15:17:55.073(java.sql.Timestamp)][portalPageId,EXAMPLE(java.lang.String)][portalPortletId,showContent(java.lang.String)][portletSeqId,00001(java.lang.String)] (SQL Exception while executing the following:INSERT INTO OFBIZ.PORTAL_PAGE_PORTLET (PORTAL_PAGE_ID, PORTAL_PORTLET_ID, PORTLET_SEQ_ID, COLUMN_SEQ_ID, SEQUENCE_NUM, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) (INSERT on table 'PORTAL_PAGE_PORTLET' caused a violation of foreign key constraint 'PRTL_PGPTLT_PTLT' for key (showContent).  The statement has been rolled back.)). Rolling back transaction.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 19/09/2010, at 7:15 PM, buscob@apache.org wrote:

> Author: buscob
> Date: Sun Sep 19 07:15:24 2010
> New Revision: 998604
> 
> URL: http://svn.apache.org/viewvc?rev=998604&view=rev
> Log:
> Used "EXAMPLE" PortalPage as demo in example application instead of the "PartyProfile" PortalPage that is defined out of the framework
> 
> Modified:
>    ofbiz/trunk/framework/example/data/ExamplePortalSeedData.xml
>    ofbiz/trunk/framework/example/widget/example/ExampleScreens.xml
> 
> Modified: ofbiz/trunk/framework/example/data/ExamplePortalSeedData.xml
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/data/ExamplePortalSeedData.xml?rev=998604&r1=998603&r2=998604&view=diff
> ==============================================================================
> --- ofbiz/trunk/framework/example/data/ExamplePortalSeedData.xml (original)
> +++ ofbiz/trunk/framework/example/data/ExamplePortalSeedData.xml Sun Sep 19 07:15:24 2010
> @@ -21,11 +21,16 @@ under the License.
> <entity-engine-xml>
>     <!-- PortalPortlet Seed Data: system pages -->
>     <PortalPage portalPageId="EXAMPLE" sequenceNum="0" portalPageName="Example Portal Page" description="The default example OFBiz portal page" ownerUserLoginId="_NA_"/>
> -    <PortalPageColumn portalPageId="EXAMPLE" columnSeqId="00001" columnWidthPercentage="50"/>
> +    <PortalPageColumn portalPageId="EXAMPLE" columnSeqId="00001" columnWidthPixels="400"/>
>     <PortalPageColumn portalPageId="EXAMPLE" columnSeqId="00002"/><!-- no width in pixels or percent, use the rest of the space available -->
> -
>     <PortalPagePortlet portalPageId="EXAMPLE" portalPortletId="EXAMPLE_1" portletSeqId="00001" columnSeqId="00001" sequenceNum="0"/>
>     <PortalPagePortlet portalPageId="EXAMPLE" portalPortletId="EXAMPLE_3" portletSeqId="00001" columnSeqId="00002" sequenceNum="1"/>
> +    <PortalPagePortlet portalPageId="EXAMPLE" portalPortletId="showContent" portletSeqId="00001" columnSeqId="00001"/>
> +    <PortletAttribute portalPageId="EXAMPLE" portalPortletId="showContent" portletSeqId="00001" attrName="contentId" attrValue="HELP_BIRT"/>
> +    <PortalPagePortlet portalPageId="EXAMPLE" portalPortletId="showContent" portletSeqId="00002" columnSeqId="00002"/>
> +    <PortletAttribute portalPageId="EXAMPLE" portalPortletId="showContent" portletSeqId="00002" attrName="contentId" attrValue="SETUP_firstCatalog"/>
> +    <PortalPagePortlet portalPageId="EXAMPLE" portalPortletId="showContent" portletSeqId="00003" columnSeqId="00002"/>
> +    <PortletAttribute portalPageId="EXAMPLE" portalPortletId="showContent" portletSeqId="00003" attrName="contentId" attrValue="HELP_ACCOUNTING"/>
> 
>     <PortalPage portalPageId="EXAMPLE1" sequenceNum="100" parentPortalPageId="EXAMPLE" portalPageName="Example Portal Page 1" description="Portal page 1" ownerUserLoginId="_NA_"/>
>     <PortalPageColumn portalPageId="EXAMPLE1" columnSeqId="00001"/>
> 
> Modified: ofbiz/trunk/framework/example/widget/example/ExampleScreens.xml
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/ExampleScreens.xml?rev=998604&r1=998603&r2=998604&view=diff
> ==============================================================================
> --- ofbiz/trunk/framework/example/widget/example/ExampleScreens.xml (original)
> +++ ofbiz/trunk/framework/example/widget/example/ExampleScreens.xml Sun Sep 19 07:15:24 2010
> @@ -474,7 +474,7 @@ under the License.
>             <widgets>
>                 <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
>                     <decorator-section name="body">
> -                        <include-portal-page id="PartyProfile" edit-mode="${parameters.editmode}"/>
> +                        <include-portal-page id="EXAMPLE" edit-mode="${parameters.editmode}"/>
>                     </decorator-section>
>                 </decorator-screen>
>             </widgets>
> 
>