You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by BJ Freeman <bj...@free-man.net> on 2009/06/01 05:42:50 UTC

Location of groovy files

is there a change as to where to put the groovy files related to a ftl.
use to be that groovy files related to an ftl was put in the action
folder under the web-inf of the same webapp.
now that widgets are used it seems that is not followed in this one case.

/specialpurpose/ecommerce/widget/catalogscreen.xml

    <screen name="sidedeepcategory">
        <section>
            <actions>
                <property-map resource="ProductUiLabels"
map-name="uiLabelMap" global="true"/>
                <script
location="component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/SideDeepCategory.groovy"/>
            </actions>
            <widgets>
                <platform-specific><html><html-template
location="component://ecommerce/webapp/ecommerce/catalog/sidedeepcategory.ftl"/></html></platform-specific>
            </widgets>
        </section>
    </screen>


-- 
BJ Freeman
http://www.businessesnetwork.com/automation
http://bjfreeman.elance.com
http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
Systems Integrator.


Re: Location of groovy files

Posted by Scott Gray <sc...@hotwaxmedia.com>.
That is just a script in the order component that is reused by the  
ecommerce component.

Regards
Scott

On 1/06/2009, at 3:42 PM, BJ Freeman wrote:

> is there a change as to where to put the groovy files related to a  
> ftl.
> use to be that groovy files related to an ftl was put in the action
> folder under the web-inf of the same webapp.
> now that widgets are used it seems that is not followed in this one  
> case.
>
> /specialpurpose/ecommerce/widget/catalogscreen.xml
>
>    <screen name="sidedeepcategory">
>        <section>
>            <actions>
>                <property-map resource="ProductUiLabels"
> map-name="uiLabelMap" global="true"/>
>                <script
> location="component://order/webapp/ordermgr/WEB-INF/actions/entry/ 
> catalog/SideDeepCategory.groovy"/>
>            </actions>
>            <widgets>
>                <platform-specific><html><html-template
> location="component://ecommerce/webapp/ecommerce/catalog/ 
> sidedeepcategory.ftl"/></html></platform-specific>
>            </widgets>
>        </section>
>    </screen>
>
>
> -- 
> BJ Freeman
> http://www.businessesnetwork.com/automation
> http://bjfreeman.elance.com
> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
> Systems Integrator.
>


Re: Location of groovy files

Posted by BJ Freeman <bj...@free-man.net>.
thanks Scott

Scott Gray sent the following on 5/31/2009 9:15 PM:
> That is just a script in the order component that is reused by the
> ecommerce component.
> 
> Regards
> Scott
> 
> On 1/06/2009, at 3:42 PM, BJ Freeman wrote:
> 
>> is there a change as to where to put the groovy files related to a ftl.
>> use to be that groovy files related to an ftl was put in the action
>> folder under the web-inf of the same webapp.
>> now that widgets are used it seems that is not followed in this one case.
>>
>> /specialpurpose/ecommerce/widget/catalogscreen.xml
>>
>>    <screen name="sidedeepcategory">
>>        <section>
>>            <actions>
>>                <property-map resource="ProductUiLabels"
>> map-name="uiLabelMap" global="true"/>
>>                <script
>> location="component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/SideDeepCategory.groovy"/>
>>
>>            </actions>
>>            <widgets>
>>                <platform-specific><html><html-template
>> location="component://ecommerce/webapp/ecommerce/catalog/sidedeepcategory.ftl"/></html></platform-specific>
>>
>>            </widgets>
>>        </section>
>>    </screen>
>>
>>
>> -- 
>> BJ Freeman
>> http://www.businessesnetwork.com/automation
>> http://bjfreeman.elance.com
>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>>
>> Systems Integrator.
>>
> 

-- 
BJ Freeman
http://www.businessesnetwork.com/automation
http://bjfreeman.elance.com
http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
Systems Integrator.