Trying to understand decorators and building screens.

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

Trying to understand decorators and building screens.

Robert Wynkoop
Using a plugin I created as an example.  The main-decorator includes
name=GlobalDecorator component://common/widget/CommonScreens.xml.

In CommonScreens.xml I see:

  <!-- Global decorator for General Screens/Pages -->
    <screen name="GlobalDecorator">
        <section>
            <widgets>
                <include-screen name="GlobalActions" />
                <include-screen name="GlobalDecorator"
location="${groovy:commonScreenLocations.GlobalDecorator?commonScreenLocations.GlobalDecorator:commonDecoratorLocation}"/>
            </widgets>
        </section>
    </screen>

Can someone summarize how
location="${groovy:commonScreenLocations.GlobalDecorator?commonScreenLocations.GlobalDecorator:commonDecoratorLocation}"/>
works?

I'm not sure how to follow the flow into that.  Where is the related
source to the above location?

Robert Wynkoop
Reply | Threaded
Open this post in threaded view
|

Re: Trying to understand decorators and building screens.

Jacques Le Roux
Administrator
Hi Robert,

It starts from InitTheme.groovy, I guess you can follow from there, else please ask for details

HTH

Jacques

Le 05/01/2020 à 05:44, Robert Wynkoop a écrit :

> Using a plugin I created as an example.  The main-decorator includes
> name=GlobalDecorator component://common/widget/CommonScreens.xml.
>
> In CommonScreens.xml I see:
>
>    <!-- Global decorator for General Screens/Pages -->
>      <screen name="GlobalDecorator">
>          <section>
>              <widgets>
>                  <include-screen name="GlobalActions" />
>                  <include-screen name="GlobalDecorator"
> location="${groovy:commonScreenLocations.GlobalDecorator?commonScreenLocations.GlobalDecorator:commonDecoratorLocation}"/>
>              </widgets>
>          </section>
>      </screen>
>
> Can someone summarize how
> location="${groovy:commonScreenLocations.GlobalDecorator?commonScreenLocations.GlobalDecorator:commonDecoratorLocation}"/>
> works?
>
> I'm not sure how to follow the flow into that.  Where is the related
> source to the above location?
>
> Robert Wynkoop

Reply | Threaded
Open this post in threaded view
|

Re: Trying to understand decorators and building screens.

Robert Wynkoop
OK. That helps.

Now to get Groovy scripts to debug in NetBeans IDE 10.

Any suggestions?  Imports for the groovy script are not working and break point will not set.

Sorry, never had to debug Groovy.

Remote Debugger Output:
Not able to submit breakpoint LineBreakpoint InitTheme.groovy : 31, reason: No source root found for URL 'file:/C:/Users/rwynkoop/Documents/NetBeansProjects/ofbiz/ofbiz-framework/framework/common/groovyScripts/InitTheme.groovy'. Verify the setup of project sources.
Invalid LineBreakpoint InitTheme.groovy : 31

Source Edit for Groovy File, with break point on the third IF:


On Sun, Jan 5, 2020 at 3:48 AM Jacques Le Roux <[hidden email]> wrote:
Hi Robert,

It starts from InitTheme.groovy, I guess you can follow from there, else please ask for details

HTH

Jacques

Le 05/01/2020 à 05:44, Robert Wynkoop a écrit :
> Using a plugin I created as an example.  The main-decorator includes
> name=GlobalDecorator component://common/widget/CommonScreens.xml.
>
> In CommonScreens.xml I see:
>
>    <!-- Global decorator for General Screens/Pages -->
>      <screen name="GlobalDecorator">
>          <section>
>              <widgets>
>                  <include-screen name="GlobalActions" />
>                  <include-screen name="GlobalDecorator"
> location="${groovy:commonScreenLocations.GlobalDecorator?commonScreenLocations.GlobalDecorator:commonDecoratorLocation}"/>
>              </widgets>
>          </section>
>      </screen>
>
> Can someone summarize how
> location="${groovy:commonScreenLocations.GlobalDecorator?commonScreenLocations.GlobalDecorator:commonDecoratorLocation}"/>
> works?
>
> I'm not sure how to follow the flow into that.  Where is the related
> source to the above location?
>
> Robert Wynkoop



--
Robert Wynkoop
Google Voice: <a href="tel:314-380-0046" value="+13143800046" target="_blank">314-380-0046
Cell: 314-606-3079
Home: 314-846-7638

2904 Woodbridge Estates Dr.
Saint Louis, MO 63129