.bsh file

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

.bsh file

lahmar
Hello,

i would like to know the role of .bsh file.
this is the hierarchy of the tags in a MainScreens.xml where i found login.bsh file:


<screen name="login">
        <section>
            <actions>
                <property-map resource="BlogUiLabels" map-name="uiLabelMap"></property-map>
                <script location="component://community/widget/community/login.bsh"/>
............

Thks & best regards.
Lahmar.
Reply | Threaded
Open this post in threaded view
|

Re: .bsh file

Larry.Liu
The bsh file is just like a bounch of codes run before the page been
processed, like to get the get request parameters, fetch accordingly data
from the database based on the request parameters and then set them into the
context or session attribute, by this, you can quote those data objects in
the freemarker page template.

Regards,
Liu Xiangqian

Wizitsoft Information Technology Ltd.
www.wizitsoft.com | (86) 010-62670653 ext 614


On Wed, Mar 25, 2009 at 4:40 PM, lahmar <[hidden email]>wrote:

>
> Hello,
>
> i would like to know the role of .bsh file.
> this is the hierarchy of the tags in a MainScreens.xml where i found
> login.bsh file:
>
>
> <screen name="login">
>        <section>
>            <actions>
>                <property-map resource="BlogUiLabels"
> map-name="uiLabelMap"></property-map>
>                <script
> location="component://community/widget/community/login.bsh"/>
> ............
>
> Thks & best regards.
> Lahmar.
> --
> View this message in context:
> http://www.nabble.com/.bsh-file-tp22697197p22697197.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: .bsh file

Jacques Le Roux
Administrator
Note that if this is true for OFBiz-Neogia and OFBiz R4, it's not for OFBiz trunk  where Beanshell (.bsh) have replaced by Groovy
(.groovy)

Jacques

From: "Larry.Liu" <[hidden email]>

> The bsh file is just like a bounch of codes run before the page been
> processed, like to get the get request parameters, fetch accordingly data
> from the database based on the request parameters and then set them into the
> context or session attribute, by this, you can quote those data objects in
> the freemarker page template.
>
> Regards,
> Liu Xiangqian
>
> Wizitsoft Information Technology Ltd.
> www.wizitsoft.com | (86) 010-62670653 ext 614
>
>
> On Wed, Mar 25, 2009 at 4:40 PM, lahmar <[hidden email]>wrote:
>
>>
>> Hello,
>>
>> i would like to know the role of .bsh file.
>> this is the hierarchy of the tags in a MainScreens.xml where i found
>> login.bsh file:
>>
>>
>> <screen name="login">
>>        <section>
>>            <actions>
>>                <property-map resource="BlogUiLabels"
>> map-name="uiLabelMap"></property-map>
>>                <script
>> location="component://community/widget/community/login.bsh"/>
>> ............
>>
>> Thks & best regards.
>> Lahmar.
>> --
>> View this message in context:
>> http://www.nabble.com/.bsh-file-tp22697197p22697197.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: .bsh file

BJ Freeman
In reply to this post by lahmar
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bsh files stopped being used as of release 4.0
groovy has replaced bsh files.
bsh files are used to marshal data before calling a UI.
the data marshalled is then used by the UI fof Display.
for Ftl's the bsh files are in the action folder and have the same name
as the ftl's
Please note:
there are considerable changes between ofbiz that uses bsh files and the
current trunk.
you might want to check out the trunk and compare against the code you
have to see how much has changed.

lahmar sent the following on 3/25/2009 1:40 AM:

> Hello,
>
> i would like to know the role of .bsh file.
> this is the hierarchy of the tags in a MainScreens.xml where i found
> login.bsh file:
>
>
> <screen name="login">
>         <section>
>             <actions>
>                 <property-map resource="BlogUiLabels"
> map-name="uiLabelMap"></property-map>
>                 <script
> location="component://community/widget/community/login.bsh"/>
> ............
>
> Thks & best regards.
> Lahmar.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJyh4OrP3NbaWWqE4RAiV1AKCkF15raoiO9orMM6OGBVbWeRVqoACgjkHX
7Uqznx/1Sdwy9iQqRrSpZ0Q=
=fOWR
-----END PGP SIGNATURE-----
Reply | Threaded
Open this post in threaded view
|

Re: .bsh file

STELTZLEN Charles
Hi,

Just a question around the subject.

What's happended to bsh used in field forms on ofbiz trunk ?

...
<set field="qtyToReceive" value="${bsh: (quantityOnHandTotal!=null) ?  
quantityOrdered-quantityOnHandTotal:quantityOrdered }" type="Integer"/>
...

Charles.



BJ Freeman a écrit :

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Bsh files stopped being used as of release 4.0
> groovy has replaced bsh files.
> bsh files are used to marshal data before calling a UI.
> the data marshalled is then used by the UI fof Display.
> for Ftl's the bsh files are in the action folder and have the same name
> as the ftl's
> Please note:
> there are considerable changes between ofbiz that uses bsh files and the
> current trunk.
> you might want to check out the trunk and compare against the code you
> have to see how much has changed.
>
> lahmar sent the following on 3/25/2009 1:40 AM:
>  
>> Hello,
>>
>> i would like to know the role of .bsh file.
>> this is the hierarchy of the tags in a MainScreens.xml where i found
>> login.bsh file:
>>
>>
>> <screen name="login">
>>         <section>
>>             <actions>
>>                 <property-map resource="BlogUiLabels"
>> map-name="uiLabelMap"></property-map>
>>                 <script
>> location="component://community/widget/community/login.bsh"/>
>> ............
>>
>> Thks & best regards.
>> Lahmar.
>>    
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFJyh4OrP3NbaWWqE4RAiV1AKCkF15raoiO9orMM6OGBVbWeRVqoACgjkHX
> 7Uqznx/1Sdwy9iQqRrSpZ0Q=
> =fOWR
> -----END PGP SIGNATURE-----
>
>  

Reply | Threaded
Open this post in threaded view
|

Re: .bsh file

Adrian Crum
That still runs a Beanshell instance.

-Adrian


STELTZLEN Charles wrote:

> Hi,
>
> Just a question around the subject.
>
> What's happended to bsh used in field forms on ofbiz trunk ?
>
> ...
> <set field="qtyToReceive" value="${bsh: (quantityOnHandTotal!=null) ?  
> quantityOrdered-quantityOnHandTotal:quantityOrdered }" type="Integer"/>
> ...
>
> Charles.
>
>
>
> BJ Freeman a écrit :
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Bsh files stopped being used as of release 4.0
>> groovy has replaced bsh files.
>> bsh files are used to marshal data before calling a UI.
>> the data marshalled is then used by the UI fof Display.
>> for Ftl's the bsh files are in the action folder and have the same name
>> as the ftl's
>> Please note:
>> there are considerable changes between ofbiz that uses bsh files and the
>> current trunk.
>> you might want to check out the trunk and compare against the code you
>> have to see how much has changed.
>>
>> lahmar sent the following on 3/25/2009 1:40 AM:
>>  
>>> Hello,
>>>
>>> i would like to know the role of .bsh file.
>>> this is the hierarchy of the tags in a MainScreens.xml where i found
>>> login.bsh file:
>>>
>>>
>>> <screen name="login">
>>>         <section>
>>>             <actions>
>>>                 <property-map resource="BlogUiLabels"
>>> map-name="uiLabelMap"></property-map>
>>>                 <script
>>> location="component://community/widget/community/login.bsh"/>
>>> ............
>>>
>>> Thks & best regards.
>>> Lahmar.
>>>    
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.6 (MingW32)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>>
>> iD8DBQFJyh4OrP3NbaWWqE4RAiV1AKCkF15raoiO9orMM6OGBVbWeRVqoACgjkHX
>> 7Uqznx/1Sdwy9iQqRrSpZ0Q=
>> =fOWR
>> -----END PGP SIGNATURE-----
>>
>>  
>
>
Reply | Threaded
Open this post in threaded view
|

Re: .bsh file

BJ Freeman
In reply to this post by STELTZLEN Charles
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

if your askng about changing from bsh to groovy, bsh is still supported
but may be depreciated and removed at some point.

STELTZLEN Charles sent the following on 3/25/2009 7:42 AM:

> Hi,
>
> Just a question around the subject.
>
> What's happended to bsh used in field forms on ofbiz trunk ?
>
> ...
> <set field="qtyToReceive" value="${bsh: (quantityOnHandTotal!=null) ?
> quantityOrdered-quantityOnHandTotal:quantityOrdered }" type="Integer"/>
> ...
>
> Charles.
>
>
>
> BJ Freeman a écrit :
> Bsh files stopped being used as of release 4.0
> groovy has replaced bsh files.
> bsh files are used to marshal data before calling a UI.
> the data marshalled is then used by the UI fof Display.
> for Ftl's the bsh files are in the action folder and have the same name
> as the ftl's
> Please note:
> there are considerable changes between ofbiz that uses bsh files and the
> current trunk.
> you might want to check out the trunk and compare against the code you
> have to see how much has changed.
>
> lahmar sent the following on 3/25/2009 1:40 AM:
>  
>>>> Hello,
>>>>
>>>> i would like to know the role of .bsh file.
>>>> this is the hierarchy of the tags in a MainScreens.xml where i found
>>>> login.bsh file:
>>>>
>>>>
>>>> <screen name="login">
>>>>         <section>
>>>>             <actions>
>>>>                 <property-map resource="BlogUiLabels"
>>>> map-name="uiLabelMap"></property-map>
>>>>                 <script
>>>> location="component://community/widget/community/login.bsh"/>
>>>> ............
>>>>
>>>> Thks & best regards.
>>>> Lahmar.
>>>>    
>>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJyl7JrP3NbaWWqE4RApL3AJ9eTyzBwdEQMjgzHswO/vxjLjHv0gCggj/1
X7ojF7Xp8ye9AH4Mbhba0Zk=
=R9Rd
-----END PGP SIGNATURE-----