Re: Ofbiz WEb Service call from Standalone Java Client

2012-03-01 Thread pierre.gaudin

Hi,

Look at :
https://cwiki.apache.org/OFBIZ/calling-ofbiz-services-from-liferay-using-soap.html
#3 give you the solution.

Pierre
On 01/03/2012 06:28, rahul kumar wrote:

Hello sanjaya,
   Can u tell me the steps how to generate the wsdl file in ofbiz, bcz
iam unable to genarate the wsdl file in ofbiz .

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Ofbiz-WEb-Service-call-from-Standalone-Java-Client-tp3213379p4434097.html
Sent from the OFBiz - User mailing list archive at Nabble.com.





Customer ID per each supplier

2012-03-01 Thread biletnikov
Hello, 
we use OFBiz in B2B with lots of drop shipment orders, i.e. we have
customers and many suppliers.
Each our supplier has own customer id and it is very necessary for us to
include this id in the order for each supplier.
Example, 
the customer party in our OFBiz system has party id : 10001 (but it is
useful only for us)
supplier A: 12345
supplier B: C345
supplier C: 1100

supplier X: 0055

how it is possible to store this info in OFBiz?
We considered party identification numbers, yes, it is possible to create
identification type for each supplier, but it is not flexible solution,
because we do not have the link to supplier party here.

We considered Party relationships, 
in fact, it is possible to add relationships between customer and supplier
and use Comments field to store the id, but it looks more like a hack.

What could you suggest us? Maybe we missed something in the OFBiz data
model.
Thanks a lot.

-
Kind regards,
Sergei
--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Customer-ID-per-each-supplier-tp4434577p4434577.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Customer ID per each supplier

2012-03-01 Thread Nicolas Malin

Use PartyRelationship beetwen customer and supplier

Nicolas

Le 01/03/2012 11:11, biletnikov a écrit :

Hello,
we use OFBiz in B2B with lots of drop shipment orders, i.e. we have
customers and many suppliers.
Each our supplier has own customer id and it is very necessary for us to
include this id in the order for each supplier.
Example,
the customer party in our OFBiz system has party id : 10001 (but it is
useful only for us)
supplier A: 12345
supplier B: C345
supplier C: 1100

supplier X: 0055

how it is possible to store this info in OFBiz?
We considered party identification numbers, yes, it is possible to create
identification type for each supplier, but it is not flexible solution,
because we do not have the link to supplier party here.

We considered Party relationships,
in fact, it is possible to add relationships between customer and supplier
and use Comments field to store the id, but it looks more like a hack.

What could you suggest us? Maybe we missed something in the OFBiz data
model.
Thanks a lot.

-
Kind regards,
Sergei
--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Customer-ID-per-each-supplier-tp4434577p4434577.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



--
Nicolas MALIN
Consultant
Tél : 06.17.66.40.06
Site projet : http://www.neogia.org/
---
Société LibrenBerry
Tél : 02.48.02.56.12
Site : http://www.librenberry.net/



Re: Who is using the seleniumxml and why?

2012-03-01 Thread Gil Portenseigne
Hi Hans,

I agree with jacopo, we used to have a CI using pure selenium with bash
scripts.

 Since we wanted to migrate into jenkins for IC purpose, we are
interested in your habits about using CI within ofbiz. 

If we can contribute by giving new tests and using the same system, we
will be glad to do so.

Cheers

Cil

Le jeudi 01 mars 2012 à 08:17 +0100, Jacopo Cappellato a écrit :

 Hi Hans,
 
 interesting; I would love if you could add some details:
 * how do you create seleniumxml tests? do you create them manually (editing 
 xml files) or with some other mechanism (Selenium IDE etc...)?
 * do you have a big library of test scripts?
 * did you try the new version of Selenium?
 
 And last question: when you say we are using it what do you mean? You and 
 your development team?
 
 Thanks,
 
 Jacopo
 
 On Mar 1, 2012, at 7:38 AM, Hans Bakker wrote:
 
  We are using this and this function should not be deleted quickly
  
  Regards,
  Hans
  
  
  On 02/23/2012 11:05 PM, Jacopo Cappellato wrote:
  Good day everyone,
  
  I would love to know from the persons that are using the seleniumxml 
  integration available in framework/testools their opinion about this 
  tools; specifically I am interested to know:
  
  1) how you use it (settings, platform, browser) and if it is functional 
  and useful
  2) the advantages you see in using this OFBiz specific integration rather 
  than using the standard Selenium tools
  ** do you find it easier to setup this component rather than the standard 
  Selenium?
  ** is it easier to write tests in the custom xml syntax provided by 
  seleniumxml? or do you rather create them (as suggested by the 
  documentation in framework/testools) using one of the standard browser 
  plugins available for Selenium and then convert to xml using the custom 
  script in OFBiz?
  3) are you willing to contribute the tests you are using? are they generic 
  enough to be contributed back to the project?
  
  I am asking #1 and #2 because I feel that we could replace all the custom 
  code we have for seleniumxml (and required jar files) with a good document 
  that explains how to setup Selenium (no special integration is actually 
  required for ofbiz) and then, instead of writing/maintaining test scripts 
  in this custom xml formal, we could simply accept and commit standard 
  selenium test scripts (in my opinion users will be facilitated to 
  contribute them without the need to learn a new syntax); we could also 
  provide an ant script to run all of them. In this way we could also use a 
  more recent version of Selenium (web driver).
  
  Thanks for your time,
  
  Jacopo
  
  
 


-- 
Gil Portenseigne gil.portensei...@nereide.fr


Re: Who is using the seleniumxml and why?

2012-03-01 Thread Erwan de FERRIERES

Le 01/03/2012 08:10, Jacopo Cappellato a écrit :

It is interesting, thank you Erwan.
About the integration with OFBiz: apart from the ant task available ootb to run 
tests what else are you planning to include in OFBiz?
I am asking this because in my opinion the best layout would be the following:
* Selenium is not bundled with OFBiz
* all the generic Selenium tests are bundled in the OFBiz applications
* we include the minimal resources from Selenium in OFBiz (like an ant task or 
some required jars if really needed)

Development teams that use Selenium usually have their local machines (or some 
other infrastucture) already setup to run (and create) Selenium tests; in my 
opinion it is not worth to package and maintain the whole Selenium bundle in 
OFBiz; if a user is not already setup with Selenium then he/she will not even 
think about running the tests bundled in OFBiz.

Jacopo


On Mar 1, 2012, at 7:55 AM, Erwan de FERRIERES wrote:


Le 23/02/2012 17:05, Jacopo Cappellato a écrit :

Good day everyone,

I would love to know from the persons that are using the seleniumxml 
integration available in framework/testools their opinion about this tools; 
specifically I am interested to know:

1) how you use it (settings, platform, browser) and if it is functional and 
useful
2) the advantages you see in using this OFBiz specific integration rather than 
using the standard Selenium tools
** do you find it easier to setup this component rather than the standard 
Selenium?
** is it easier to write tests in the custom xml syntax provided by 
seleniumxml? or do you rather create them (as suggested by the documentation in 
framework/testools) using one of the standard browser plugins available for 
Selenium and then convert to xml using the custom script in OFBiz?
3) are you willing to contribute the tests you are using? are they generic 
enough to be contributed back to the project?

I am asking #1 and #2 because I feel that we could replace all the custom code 
we have for seleniumxml (and required jar files) with a good document that 
explains how to setup Selenium (no special integration is actually required for 
ofbiz) and then, instead of writing/maintaining test scripts in this custom xml 
formal, we could simply accept and commit standard selenium test scripts (in my 
opinion users will be facilitated to contribute them without the need to learn 
a new syntax); we could also provide an ant script to run all of them. In this 
way we could also use a more recent version of Selenium (web driver).

Thanks for your time,

Jacopo

Hi Jacopo,

what I'm planning to include is just the basics : jars and tasks. Maybe 
some tests as an example, like a basic login, and some actions with the 
example component.
If there is time remaining, the selenium tests here 
https://issues.apache.org/jira/browse/OFBIZ-3511 could be migrated to 
webdriver and included too.


Regards,

--
Erwan de FERRIERES
www.nereide.biz


Re: Customer ID per each supplier

2012-03-01 Thread biletnikov
Should we use Comments field to store the id?

-
Kind regards,
Sergei
--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Customer-ID-per-each-supplier-tp4434577p4434667.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Customer ID per each supplier

2012-03-01 Thread Nicolas Malin

Le 01/03/2012 12:03, biletnikov a écrit :

Should we use Comments field to store the id?
or positionTitle, if you don't change entity, else add an extend-entity 
with externalId field


Nicolas



-
Kind regards,
Sergei
--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Customer-ID-per-each-supplier-tp4434577p4434667.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



--
Nicolas MALIN
Consultant
Tél : 06.17.66.40.06
Site projet : http://www.neogia.org/
---
Société LibrenBerry
Tél : 02.48.02.56.12
Site : http://www.librenberry.net/



Re: Customer ID per each supplier

2012-03-01 Thread Adrian Crum
No. Connect the parties properly using PartyRelationship and 
OFBiz-generated party IDs. Use the PartyIdentification entity for 
external IDs.


-Adrian

On 3/1/2012 11:03 AM, biletnikov wrote:

Should we use Comments field to store the id?

-
Kind regards,
Sergei
--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Customer-ID-per-each-supplier-tp4434577p4434667.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Customer ID per each supplier

2012-03-01 Thread biletnikov
Of course, PartyRelationship relates parties between each other, but how to
link party and external ids from PartyIdentification, it is not possible
now.
Each customer can have many external ids for each supplier...


-
Kind regards,
Sergei
--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Customer-ID-per-each-supplier-tp4434577p4434734.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Customer ID per each supplier

2012-03-01 Thread Adrian Crum

Create an ID type for each supplier.

-Adrian

On 3/1/2012 11:44 AM, biletnikov wrote:

Of course, PartyRelationship relates parties between each other, but how to
link party and external ids from PartyIdentification, it is not possible
now.
Each customer can have many external ids for each supplier...


-
Kind regards,
Sergei
--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Customer-ID-per-each-supplier-tp4434577p4434734.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


tested BigFish eCommerce Platform deploys on OFBIZ trunk ( 2012/03/02 )

2012-03-01 Thread djjava
Dear Len / Nick / Jacques / cc All
I've just tested  BigFish eCommerce Platform  deploys on OFBIZ trunk 
( 2012/03/02 ) . Here is result:

Class: com.osafe.services.ImportServices 
Locate: ofbiz/hot-deploy/osafe/src/com/osafe/services/
Row 157: ModelDataFileReader 
reader=ModelDataFileReader.getModelDataFileReader(definitionUrl); compile 
failed because no catch Exception

After catch Exception, successfully compile and i can startofbiz 
successfully, too.
Here you can see : http://222.255.37.21:8080/osafe/  : Nice Front-end. 
And error raises when click to Product Detail ( ex:  
http://222.255.37.21:8080/osafe/control/eCommerceProductDetail?productId=100077productCategoryId=ACTIVE
 )
https://222.255.37.21:8443/osafe-admin/  : Backend failed immediately 
after login:
Error in request handler:
Exception: org.ofbiz.widget.screen.ScreenRenderException
Message: Error rendering screen 
[component://osafeadmin/widget/AdminScreens.xml#
adminHome]: org.ofbiz.base.util.GeneralException: Error running 
Groovy script at
location 
[component://osafeadmin/webapp/osafeadmin/WEB-INF/actions/dashboard/da
shboard.groovy] (SQL Exception while executing the 
following:SELECT OH.PRODUCT_S
TORE_ID, PS.STORE_NAME, OI.PRODUCT_ID, PR.INTERNAL_NAME, 
OH.ORDER_DATE, OH.STATU
OFBIZ applications are working fine.
Sorry if this email disturbs you
Regard,


Tri
Chairman
www.vssic.com
Viet Nam Solution and Service for Information
vCloudPortal(Portal)  vCloudBusiness(ERP)
FREEmium
Sun Certified Enterprise Architect
+84922446668





2012/2/21 Len Shein lsh...@salmonllc.com

 Duong,

 There is no reason Big Fish plug-in will NOT work with the latest 
 trunk version of Ofbiz, we are just reporting that we have fully 
 tested it with version 10.04.
 If you run into any issues running with the latest trunk; do not 
 hesitate in letting us know.

 Len
 -Original Message-
 From: Dương Nguyễn Hữu [mailto:du...@vssic.com]
 Sent: Sunday, February 19, 2012 4:24 AM
 To: user@ofbiz.apache.org
 Subject: Re: OFBIZ -- BigFish eCommerce Platform

 Dear Nick Rosser

 Thanks for your distribution, we love it very much. It is very simply 
 solution for internet trading, who only want to do buy and sales 
 product through internet.

 How can I use this plug-in with Trunk version of Apache Ofbiz?

 Thank you.

 Duong

 www.vssic.com


 2012/2/19 Nick Rosser nros...@salmonllc.com

  To be honest we've been so busy building the platform that we've not
 given
  this a great deal of consideration. Ultimately there are no 
  restrictions, we are looking for feedback and more importantly 
  adopters. I guess this would ultimately put it under the apache open 
  source licensee, or
 something
  very similar, very open, with adopters permitted to do whatever they 
  want with what we've done, make local extensions, make contributions 
  back to
 us,
  etc.
 
  Over the next few weeks we'll look not this some more and make it 
  more official.
 
  Best regards,
 
  Nick Rosser
  nros...@salmonllc.com
  516.901.1720
 
  Sent from my iPad
 
  On Feb 18, 2012, at 10:45 AM, pierre.gaudin 
  pierre.gau...@nereide.fr
  wrote:
 
   OK, even if it is an open source project, there should be a 
   license to
  know in which context we can use what was developed.
  
   Pierre
   On 18/02/2012 16:22, Nick Rosser wrote:
   Available as open source. We may develop some enterprise 
   components to
  generate some revenue. The download section will be updated early 
  next
 week
  so you can download and run locally (it's woefully out of date right
 now).
  We'll notify via the mailing group when it's ready.
  
   Best regards,
  
   Nick Rosser
   nros...@salmonllc.com
   516.901.1720
  
   Sent from my iPad
  
   On Feb 18, 2012, at 9:23 AM, 
   pierre.gaudinpierre.gau...@nereide.fr
 
   wrote:
  
   It is interesting. I made a fast tour of the demo back office 
   and the
  packaged aspect is very interesting.
  
   I know that this question have been already asked without any
 reponse:
  what is the license?
  
   Pierre
  
   On 17/02/2012 22:47, Len Shein wrote:
   To check out features, benefits and demos please visit our 
   dedicated
  BigFish
   website:
  
  
  
   http://bigfish.salmonllc.comhttp://bigfish.salmonllc.com/
  
  
  
   The most complete demo is the Fashion House instance. The 
   power
 and
   flexibility of the solution is more obvious when you play with 
   the
  Admin
   Module.
  
  
  
   Fashion House eCommerce:
  
   http://bigfish.salmonllc.com:8082/osafe/control/main
  
  
  
   Fashion House Admin Module:
  
   https://bigfish.salmonllc.com:8442/osafe-admin/control/main
  
  
  
   You'll need to accept a certificate for the Admin Module. Use
  ofbiz/admin as
   the login.
  
  
  
   Comments, thoughts, questions 

Re: tested BigFish eCommerce Platform deploys on OFBIZ trunk ( 2012/03/02 )

2012-03-01 Thread Brajesh Patel
Thanks for pointing this issue:

This issue occurred because Bigfish plugin before the latest trunk
changes(rev.1291007 on Feb-19 'ModelDataFileReader.getModelDataFileReader'
in method), so we will provide new release of  Bigfish with all required
changes.



On Thu, Mar 1, 2012 at 11:45 PM, *djjava *t...@vssic.com wrote:

Dear Len / Nick / Jacques / cc All
I've just tested  BigFish eCommerce Platform  deploys on OFBIZ
 trunk ( 2012/03/02 ) . Here is result:

Class: com.osafe.services.ImportServices
Locate: ofbiz/hot-deploy/osafe/src/com/osafe/services/
Row 157: ModelDataFileReader
 reader=ModelDataFileReader.getModelDataFileReader(definitionUrl); compile
 failed because no catch Exception

After catch Exception, successfully compile and i can startofbiz
 successfully, too.
Here you can see : http://222.255.37.21:8080/osafe/  : Nice
 Front-end. And error raises when click to Product Detail ( ex:
 http://222.255.37.21:8080/osafe/control/eCommerceProductDetail?productId=100077productCategoryId=ACTIVE)
https://222.255.37.21:8443/osafe-admin/  : Backend failed
 immediately after login:
Error in request handler:
Exception: org.ofbiz.widget.screen.ScreenRenderException
Message: Error rendering screen
 [component://osafeadmin/widget/AdminScreens.xml#
adminHome]: org.ofbiz.base.util.GeneralException: Error
 running Groovy script at
location
 [component://osafeadmin/webapp/osafeadmin/WEB-INF/actions/dashboard/da
shboard.groovy] (SQL Exception while executing the
 following:SELECT OH.PRODUCT_S
TORE_ID, PS.STORE_NAME, OI.PRODUCT_ID, PR.INTERNAL_NAME,
 OH.ORDER_DATE, OH.STATU
OFBIZ applications are working fine.
Sorry if this email disturbs you
Regard,


 Tri
 Chairman
 www.vssic.com
 Viet Nam Solution and Service for Information
 vCloudPortal(Portal)  vCloudBusiness(ERP)
 FREEmium
 Sun Certified Enterprise Architect
 +84922446668





 2012/2/21 Len Shein lsh...@salmonllc.com

  Duong,
 
  There is no reason Big Fish plug-in will NOT work with the latest
  trunk version of Ofbiz, we are just reporting that we have fully
  tested it with version 10.04.
  If you run into any issues running with the latest trunk; do not
  hesitate in letting us know.
 
  Len
  -Original Message-
  From: Dương Nguyễn Hữu [mailto:du...@vssic.com]
  Sent: Sunday, February 19, 2012 4:24 AM
  To: user@ofbiz.apache.org
  Subject: Re: OFBIZ -- BigFish eCommerce Platform
 
  Dear Nick Rosser
 
  Thanks for your distribution, we love it very much. It is very simply
  solution for internet trading, who only want to do buy and sales
  product through internet.
 
  How can I use this plug-in with Trunk version of Apache Ofbiz?
 
  Thank you.
 
  Duong
 
  www.vssic.com
 
 
  2012/2/19 Nick Rosser nros...@salmonllc.com
 
   To be honest we've been so busy building the platform that we've not
  given
   this a great deal of consideration. Ultimately there are no
   restrictions, we are looking for feedback and more importantly
   adopters. I guess this would ultimately put it under the apache open
   source licensee, or
  something
   very similar, very open, with adopters permitted to do whatever they
   want with what we've done, make local extensions, make contributions
   back to
  us,
   etc.
  
   Over the next few weeks we'll look not this some more and make it
   more official.
  
   Best regards,
  
   Nick Rosser
   nros...@salmonllc.com
   516.901.1720
  
   Sent from my iPad
  
   On Feb 18, 2012, at 10:45 AM, pierre.gaudin
   pierre.gau...@nereide.fr
   wrote:
  
OK, even if it is an open source project, there should be a
license to
   know in which context we can use what was developed.
   
Pierre
On 18/02/2012 16:22, Nick Rosser wrote:
Available as open source. We may develop some enterprise
components to
   generate some revenue. The download section will be updated early
   next
  week
   so you can download and run locally (it's woefully out of date right
  now).
   We'll notify via the mailing group when it's ready.
   
Best regards,
   
Nick Rosser
nros...@salmonllc.com
516.901.1720
   
Sent from my iPad
   
On Feb 18, 2012, at 9:23 AM,
pierre.gaudinpierre.gau...@nereide.fr
  
wrote:
   
It is interesting. I made a fast tour of the demo back office
and the
   packaged aspect is very interesting.
   
I know that this question have been already asked without any
  reponse:
   what is the license?
   
Pierre
   
On 17/02/2012 22:47, Len Shein wrote:
To check out features, benefits and demos please visit our
dedicated
   BigFish
website:
   
   
   
http://bigfish.salmonllc.comhttp://bigfish.salmonllc.com/
   
   
   
The most complete demo is the Fashion House instance. The
power
  and
flexibility of the solution is more 

Re: Component Data Load Multitenancy Infastructure Confusion

2012-03-01 Thread Jacques Le Roux

I have no ideas, I suppose you read 
https://cwiki.apache.org/confluence/display/OFBIZ/Multitenancy+support

My 2cts

Jacques

From: Justin fluidmotionnoti...@gmail.com

I've been testing out this functionality and discovered the reason it
doesn't work for me is:
if (UtilValidate.isNotEmpty(delegator.getDelegatorTenantId())
in org.ofbiz.entityext.data.EntityDataLoadContainer part of the changes
made with svn commit: r1172989
is always empty.

I got the impression from posts of the dev mail archive about this commit
that the idea here has to load all the seed data in a tenant component
instead of having to use tenant specific readsis this right.

Does anyone have a clue as to a possible reason for this?
I mean the build target run-install-tenant-component -DtenantIdtcompload01
doesn't pass UtilValidate.isNotEmpty(delegator.getDelegatorTenantId() nor
does
ant run-install-tenant-component-all -DtenantIdtcompload01
-Dcomponent=tenantxcomponent

I've been exploring the code around delegators  group-names I'm a little
confused about what function group names would have in the context of
Multitenancy.

I suppose entityGroupName=org.ofbiz is this way cause the
TenantDataSource  is part of the main datasource
group-map group-name=org.ofbiz datasource-name=localpostgres/

TenantDataSource tenantId=DEMO1 entityGroupName=org.ofbiz
   jdbcUri=jdbc:postgresql://127.0.0.1/tn1 jdbcUsername=username
jdbcPassword=password/

But then why is
group-map group-name=org.ofbiz.tenant
datasource-name=localpostgres_tenant/ also part of the same delegator
name=default in the entityengine.xml

I thought the reason for this datasource being defined at all in
entityengine.xml was because it provided a place to set other properties
shared by all the tenant datasources with the TenantDataSource table
providing those properties that vary from tenant to tenant.

So I tried removing the inline-jdbc element from localpostgres_tenant since
it should never be used anyway
then when I run these targets I get
org.ofbiz.entity.GenericDataSourceException: Unable to establish a
connection with the database. Connection was null!


I know perhaps my question isn't clear, it's just after spending several
days looking at all the aspects of the multitenancy functionality these are
the things which don't make sense.
Maybe some who has traveled this road can see the basis of my confusion and
provide some clarity.
If so thanks very much, I can customize it and make it work but I'd rather
be sure I understand it first.



Re: Problem with CatalogServletUrl

2012-03-01 Thread Jacques Le Roux

Not sure it's related but see http://svn.apache.org/viewvc?rev=1295029view=rev

Jacques

From: parimal gain gain.pari...@gmail.com

Hi there is some discrepancies in CatalogUrlServlet I'm facing ie. when I
am using @ofbizCatalogAltUrl to prepare
product/category url for my application its showing different behavior
depends on the images availability rendering
for the webpage.

scenario :

1)  When used @ofbizCatalogAltUrl productCategoryId=${currentCategoryId}
previousCategoryId=${prevCategoryId} / and there is one image path in
webpage exists that don't exists in specified location :
   In this case my request request halted. When I looked at console then
came to know that the category request  called two time. It took the
specified categories, begins, executs properly and message comes Category
request Done, but at the same time caregory request again begin and it
doGet() of CatalogUrlServlet class again called. This time doGet() take
pathInfo = path of the image that is not available in the specified path
from the request.
Then doGet() split this path and cosider each part of splited item as
category and tries to execute which is wrong, and system gets halted.

2)  But in the same case if the images is available and in the whole
webpage each image is available in there specified location that time
request works properly without halting.

3)  When used @ofbizCatalogAltUrl productCategoryId=${currentCategoryId}
previousCategoryId= / : In this case everything works fine whether image
for the page is available to the specified location or not.

So here my question is

1) Why request calls multiple time when passing previousCategory Id at the
time of making the url?
2) From where the request getting the pathinfo ie. where this attribute
added to request as pathinfo at run time.
3) Why doGet() takes image path which is not available?

I don't know whether this is issue of CatalogUrlServlet or anything else,
but I am facing this while testing my application.
Can anybody help me on this.

Thanks in advance



Re: Problem with CatalogServletUrl

2012-03-01 Thread Jacopo Cappellato
I don't think it is related because the commit was done later than this email 
was sent.

Jacopo

On Mar 2, 2012, at 5:37 AM, Jacques Le Roux wrote:

 Not sure it's related but see 
 http://svn.apache.org/viewvc?rev=1295029view=rev
 
 Jacques
 
 From: parimal gain gain.pari...@gmail.com
 Hi there is some discrepancies in CatalogUrlServlet I'm facing ie. when I
 am using @ofbizCatalogAltUrl to prepare
 product/category url for my application its showing different behavior
 depends on the images availability rendering
 for the webpage.
 scenario :
 1)  When used @ofbizCatalogAltUrl productCategoryId=${currentCategoryId}
 previousCategoryId=${prevCategoryId} / and there is one image path in
 webpage exists that don't exists in specified location :
   In this case my request request halted. When I looked at console then
 came to know that the category request  called two time. It took the
 specified categories, begins, executs properly and message comes Category
 request Done, but at the same time caregory request again begin and it
 doGet() of CatalogUrlServlet class again called. This time doGet() take
 pathInfo = path of the image that is not available in the specified path
 from the request.
 Then doGet() split this path and cosider each part of splited item as
 category and tries to execute which is wrong, and system gets halted.
 2)  But in the same case if the images is available and in the whole
 webpage each image is available in there specified location that time
 request works properly without halting.
 3)  When used @ofbizCatalogAltUrl productCategoryId=${currentCategoryId}
 previousCategoryId= / : In this case everything works fine whether image
 for the page is available to the specified location or not.
 So here my question is
 1) Why request calls multiple time when passing previousCategory Id at the
 time of making the url?
 2) From where the request getting the pathinfo ie. where this attribute
 added to request as pathinfo at run time.
 3) Why doGet() takes image path which is not available?
 I don't know whether this is issue of CatalogUrlServlet or anything else,
 but I am facing this while testing my application.
 Can anybody help me on this.
 Thanks in advance