BSH problem

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

BSH problem

jonatan soto
Hi all,

I am new to Ofbiz so I purchased Jonaton Wong book Ofbiz Development for
Beginners and I'm a little bit stuck with it. In chapter 2 on the following
example that changes the flow of the party app raise an bsh file not found
error:

<!-- extend.xml -> included in the party app controller.xml -->
<request-map uri="PostalAddressAdvisory">
<security https="true" auth="true"/>
<event type="bsf"
invoke="org/ofbiz/party/party/postalAddressAdvisory.bsh"/>
<response name="isMars" type="view" value="PostalAddressAdvisory"/>
<response name="notMars" type="view" value="editcontactmech"/>
</request-map>

I've created the file in the directory that the book mention without no
result
(/application/party/scripts/org/ofbiz/party/party/postalAddressAdvisory.bsh)
. I've tried also other paths and the webapp context. Everytime I'm facing
the same error.

Is there another way to implement this?

Note that I'm using Ofbiz 4.0 in order to match the version of the book.

Thanks in advance.


--
Jonatan Soto Aguilera
C/ Comte Borrell, 328 3º4ª
08029 Barcelona
Telf: +34935350010
Móvil: +34669908135
www.japanflavour.com
Reply | Threaded
Open this post in threaded view
|

Re: BSH problem

Amit Sharma-10
Hi Jonatan,

jonatan soto wrote:

> Hi all,
>
> I am new to Ofbiz so I purchased Jonaton Wong book Ofbiz Development for
> Beginners and I'm a little bit stuck with it. In chapter 2 on the following
> example that changes the flow of the party app raise an bsh file not found
> error:
>
> <!-- extend.xml -> included in the party app controller.xml -->
> <request-map uri="PostalAddressAdvisory">
> <security https="true" auth="true"/>
> <event type="bsf"
> invoke="org/ofbiz/party/party/postalAddressAdvisory.bsh"/>
>  
Try this
invoke="component://party/scripts/org/ofbiz/party/party/postalAddressAdvisory.bsh"/>

--
Thanks And Regards,
Amit Sharma


Reply | Threaded
Open this post in threaded view
|

Re: BSH problem

Vivek Mishra-2
If you are new in OFBiz and trying to learn this beautiful framework
from the scratch.
This link will help you to develop practice application in ofbiz :
http://docs.ofbiz.org/x/UBE

Thanks!
-- Vivek Mishra

Amit Sharma wrote:

> Hi Jonatan,
>
> jonatan soto wrote:
>> Hi all,
>>
>> I am new to Ofbiz so I purchased Jonaton Wong book Ofbiz Development for
>> Beginners and I'm a little bit stuck with it. In chapter 2 on the
>> following
>> example that changes the flow of the party app raise an bsh file not
>> found
>> error:
>>
>> <!-- extend.xml -> included in the party app controller.xml -->
>> <request-map uri="PostalAddressAdvisory">
>> <security https="true" auth="true"/>
>> <event type="bsf"
>> invoke="org/ofbiz/party/party/postalAddressAdvisory.bsh"/>
>>  
> Try this
> invoke="component://party/scripts/org/ofbiz/party/party/postalAddressAdvisory.bsh"/>
>
>
> --
> Thanks And Regards,
> Amit Sharma
>
>

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: BSH problem

jonatan soto
Thanks a lot to both. Amit your solution is correct, now it works.

Vivek, is this example based on version 9.04? If it is the case, I think you
are right, I should start developing the practice based in this version
because it seems to be more stable and improved. But I read in various
places that Jonathon Wong's book is a very good complement for learning how
to develop in Ofbiz, that's why I've bought it, but I realized that is
probably out of date.

On Thu, Nov 5, 2009 at 11:36 AM, Vivek Mishra
<[hidden email]>wrote:

> If you are new in OFBiz and trying to learn this beautiful framework from
> the scratch.
> This link will help you to develop practice application in ofbiz :
> http://docs.ofbiz.org/x/UBE
>
> Thanks!
> -- Vivek Mishra
>
>
> Amit Sharma wrote:
>
>> Hi Jonatan,
>>
>> jonatan soto wrote:
>>
>>> Hi all,
>>>
>>> I am new to Ofbiz so I purchased Jonaton Wong book Ofbiz Development for
>>> Beginners and I'm a little bit stuck with it. In chapter 2 on the
>>> following
>>> example that changes the flow of the party app raise an bsh file not
>>> found
>>> error:
>>>
>>> <!-- extend.xml -> included in the party app controller.xml -->
>>> <request-map uri="PostalAddressAdvisory">
>>> <security https="true" auth="true"/>
>>> <event type="bsf"
>>> invoke="org/ofbiz/party/party/postalAddressAdvisory.bsh"/>
>>>
>>>
>> Try this
>> invoke="component://party/scripts/org/ofbiz/party/party/postalAddressAdvisory.bsh"/>
>>
>>
>> --
>> Thanks And Regards,
>> Amit Sharma
>>
>>
>>


--
Jonatan Soto Aguilera
C/ Comte Borrell, 328 3º4ª
08029 Barcelona
Telf: +34935350010
Móvil: +34669908135
www.japanflavour.com
Reply | Threaded
Open this post in threaded view
|

Re: BSH problem

Vivek Mishra-2
Yes this practice application example is based on trunk and 9.04 as well.

I would recommend to learn OFBiz using this practice application and exploring framework/example component code.
Refer Artifact reference diagram to understand the flow.
Check this link It has basic framework videos and diagrams : http://docs.ofbiz.org/x/PQM

HTH

Regards,
-- Vivek Mishra


jonatan soto wrote:
Thanks a lot to both. Amit your solution is correct, now it works.

Vivek, is this example based on version 9.04? If it is the case, I think you
are right, I should start developing the practice based in this version
because it seems to be more stable and improved. But I read in various
places that Jonathon Wong's book is a very good complement for learning how
to develop in Ofbiz, that's why I've bought it, but I realized that is
probably out of date.

On Thu, Nov 5, 2009 at 11:36 AM, Vivek Mishra
[hidden email]wrote:

  
If you are new in OFBiz and trying to learn this beautiful framework from
the scratch.
This link will help you to develop practice application in ofbiz :
http://docs.ofbiz.org/x/UBE

Thanks!
-- Vivek Mishra


Amit Sharma wrote:

    
Hi Jonatan,

jonatan soto wrote:

      
Hi all,

I am new to Ofbiz so I purchased Jonaton Wong book Ofbiz Development for
Beginners and I'm a little bit stuck with it. In chapter 2 on the
following
example that changes the flow of the party app raise an bsh file not
found
error:

<!-- extend.xml -> included in the party app controller.xml -->
<request-map uri="PostalAddressAdvisory">
<security https="true" auth="true"/>
<event type="bsf"
invoke="org/ofbiz/party/party/postalAddressAdvisory.bsh"/>


        
Try this
invoke="component://party/scripts/org/ofbiz/party/party/postalAddressAdvisory.bsh"/>


--
Thanks And Regards,
Amit Sharma



      


  

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: BSH problem

Jacques Le Roux
Administrator
In reply to this post by jonatan soto
Hi Jonatan,

I reviewed this book, most is still true and I think it's still good for beginning and can be a reference on some points.
But, yes as this book is based on R4.0,  it has been written more than 2 years ago.
You will find updated information in our wiki and especially to begin the link Vivek gave you.

Jacques

From: "jonatan soto" <[hidden email]>
To: <[hidden email]>
Sent: Thursday, November 05, 2009 11:47 AM
Subject: Re: BSH problem


Thanks a lot to both. Amit your solution is correct, now it works.

Vivek, is this example based on version 9.04? If it is the case, I think you
are right, I should start developing the practice based in this version
because it seems to be more stable and improved. But I read in various
places that Jonathon Wong's book is a very good complement for learning how
to develop in Ofbiz, that's why I've bought it, but I realized that is
probably out of date.

On Thu, Nov 5, 2009 at 11:36 AM, Vivek Mishra
<[hidden email]>wrote:

> If you are new in OFBiz and trying to learn this beautiful framework from
> the scratch.
> This link will help you to develop practice application in ofbiz :
> http://docs.ofbiz.org/x/UBE
>
> Thanks!
> -- Vivek Mishra
>
>
> Amit Sharma wrote:
>
>> Hi Jonatan,
>>
>> jonatan soto wrote:
>>
>>> Hi all,
>>>
>>> I am new to Ofbiz so I purchased Jonaton Wong book Ofbiz Development for
>>> Beginners and I'm a little bit stuck with it. In chapter 2 on the
>>> following
>>> example that changes the flow of the party app raise an bsh file not
>>> found
>>> error:
>>>
>>> <!-- extend.xml -> included in the party app controller.xml -->
>>> <request-map uri="PostalAddressAdvisory">
>>> <security https="true" auth="true"/>
>>> <event type="bsf"
>>> invoke="org/ofbiz/party/party/postalAddressAdvisory.bsh"/>
>>>
>>>
>> Try this
>> invoke="component://party/scripts/org/ofbiz/party/party/postalAddressAdvisory.bsh"/>
>>
>>
>> --
>> Thanks And Regards,
>> Amit Sharma
>>
>>
>>


--
Jonatan Soto Aguilera
C/ Comte Borrell, 328 3º4ª
08029 Barcelona
Telf: +34935350010
Móvil: +34669908135
www.japanflavour.com