Can someone explain productdetail in CatalogScreens.xml?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Can someone explain productdetail in CatalogScreens.xml?

rhodebump
Hello everyone.
I am trying to get my head around the mvc pattern for ofbiz.

I don't understand the productdetail definition in CatalogScreens.xml
The screen "product" defines a decorator-screen called name="main-decorator", but the productdetail screen does not define a decorator screen.  And nothing else in CatalogScreens calls productdetail to use as a widget.  How does productdetail get a decorator screen defined?

Thank you for your time!
Phillip



Here's what I am talking about from CatalogScreens.xml:

    <screen name="productdetail">
        <section>
            <actions>
                <set field="productsummaryScreen" value="component://ecommerce/widget/CatalogScreens.xml#productsummary"/>

                <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productdetail.bsh"/>
            </actions>
            <widgets>
                <include-screen name="breadcrumbs"/>
                <platform-specific><html><html-template location="component://order/webapp/ordermgr/entry/catalog/productdetail.ftl"/></html></platform-specific>
            </widgets>
        </section>
    </screen>
Reply | Threaded
Open this post in threaded view
|

Re: Can someone explain productdetail in CatalogScreens.xml?

Jacques Le Roux
Administrator
A way to find this : look for main-decorator in ecommerce module. Then you will find mainDecoratorLocation in web.xml, from that
it's pretty easy to understand...

You should also have a look at http://docs.ofbiz.org/x/PQM

Jacques

De : "Phillip Rhodes" <[hidden email]>
> Hello everyone.
> I am trying to get my head around the mvc pattern for ofbiz.
>
> I don't understand the productdetail definition in CatalogScreens.xml
> The screen "product" defines a decorator-screen called name="main-decorator", but the productdetail screen does not define a
decorator screen.  And nothing else in CatalogScreens calls productdetail to use as a widget.  How does productdetail get a
decorator screen defined?

>
> Thank you for your time!
> Phillip
>
>
>
> Here's what I am talking about from CatalogScreens.xml:
>
>     <screen name="productdetail">
>         <section>
>             <actions>
>                 <set field="productsummaryScreen" value="component://ecommerce/widget/CatalogScreens.xml#productsummary"/>
>
>                 <script location="component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productdetail.bsh"/>
>             </actions>
>             <widgets>
>                 <include-screen name="breadcrumbs"/>
>                 <platform-specific><html><html-template
location="component://order/webapp/ordermgr/entry/catalog/productdetail.ftl"/></html></platform-specific>
>             </widgets>
>         </section>
>     </screen>
>