Re: Multi-tenant ecommerce

2011-10-10 Thread Raj Saini
You do not have the choice of passing the tenantId in the login as 
access to the e-commerce store is not restricted Only way you can do it 
passing as URL parameter and then collect those parameters in 
ControlServlet.


Thanks,

Raj

On Monday 10 October 2011 02:59 PM, gobrien wrote:

Thanks for the reply Pierre.

So the current design is that each web store is a separate web application
attached to a particular tenantId?

I was thinking of a single web application that is connected to the
appropriate database in similar manner to the way the back-end works. The
tenantId would be passed either in the URL or tenantId in the login widget
as currently in the back end.

The majority of my experience has been in MS .NET, IIS, etc. As a result I
might be over thinking this ...

I'm thinking that the management overhead of say 500 web applications on the
disk would become tedious. More importantly, I'm wondering if/how much
performance penalty would there be to running multiple web applications
rather than one web application for all sites. Is this a valid concern with
Tomcat?

Do you have a gut feel for whether reducing such performance concern would
be worth the dev effort?

Thanks,

Gareth.

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Multi-tenant-ecommerce-tp3888115p3889648.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.





[jira] [Commented] (OFBIZ-4274) Implement a REST Servlet

2011-09-19 Thread Raj Saini (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-4274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13107812#comment-13107812
 ] 

Raj Saini commented on OFBIZ-4274:
--

Adrian,

Thanks for the clarification.

There are RESTful client APIs in Java and other framework and developers may 
want to take advantage of these APIs. These client API follow the RESTful 
standard and they may depend on the HTTP headers and statuses. If we plan to 
use the XML based packaging and error handing, it will become the 
responsibility of the developer to handle all standard application errors at 
application level instead of delegating it to application. Below is a code 
snippet consuming RESTful services using Oracle Jersey client API. Client API 
is trying to get the response status and I guess it is only possible if 
response is a standard.


WebResource webResource = client.resource("http://example.com/base";);
ClientResponse response = 
webResource.accept("text/plain").get(ClientResponse.class);
int status = response.getStatus();
String textEntity = response.getEntity(String.class);





> Implement a REST Servlet
> 
>
> Key: OFBIZ-4274
> URL: https://issues.apache.org/jira/browse/OFBIZ-4274
> Project: OFBiz
>  Issue Type: New Feature
>  Components: framework
>Reporter: Adrian Crum
>Priority: Minor
> Attachments: RestExampleSchema.xsd, RestXmlRepresentation.xml, 
> rest-conf.xml
>
>
> Implement a REST servlet that will map REST requests to OFBiz services. 
> Details are in the comments.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (OFBIZ-4274) Implement a REST Servlet

2011-09-19 Thread Raj Saini (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-4274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13107750#comment-13107750
 ] 

Raj Saini commented on OFBIZ-4274:
--

I am not the expert but one of my quick observation is RESTful responses should 
return HTTP status. HTTP response should be packaged as standard HTTP headers 
including status codes. http://restpatterns.org/HTTP_Status_Codes have lists of 
RESTful codes.

> Implement a REST Servlet
> 
>
> Key: OFBIZ-4274
> URL: https://issues.apache.org/jira/browse/OFBIZ-4274
> Project: OFBiz
>  Issue Type: New Feature
>  Components: framework
>Reporter: Adrian Crum
>Priority: Minor
> Attachments: RestExampleSchema.xsd, RestXmlRepresentation.xml, 
> rest-conf.xml
>
>
> Implement a REST servlet that will map REST requests to OFBiz services. 
> Details are in the comments.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




Re: Problem in content application when using a content prefix for website

2011-08-17 Thread Raj Saini

Thanks for the tip. I will test it and let you know.

Raj

On Wednesday 17 August 2011 04:54 PM, Hans Bakker wrote:

i do not think it is a problemas you fill the field as
indicated...and apache is not required


On Wed, 2011-08-17 at 16:51 +0530, Raj Saini wrote:

Hans,

Well, we do use Apache Web server as proxy and this is not problem for
production environment. However, this is a issue during development.

Thanks,

Raj

On Wednesday 17 August 2011 01:31 PM, Hans Bakker wrote:

I did not see there was a reply yet?

use http://www.domainname.com/images format

Regards,
Hans






Re: Problem in content application when using a content prefix for website

2011-08-17 Thread Raj Saini

Hans,

Well, we do use Apache Web server as proxy and this is not problem for 
production environment. However, this is a issue during development.


Thanks,

Raj

On Wednesday 17 August 2011 01:31 PM, Hans Bakker wrote:

I did not see there was a reply yet?

use http://www.domainname.com/images format

Regards,
Hans






Re: Code and test separation for Apache OFBiz

2011-05-17 Thread Raj Saini

Having director structure like:

|-- src
||--main
||`--java
|| `-- //rest of the code
||--test
|  `--java
|  `-- org
|`-- ofbiz
|   `-- securityext
| |-- AuthorizationTests.java
| `-- DaTest2.groovy

Will also confirm to Maven directory structure and it will make Maven 
build system integration easier if needed some time in future.


Thanks,

Raj


On Wednesday 18 May 2011 11:03 AM, Adrian Crum wrote:
I prefer the original proposal. I don't like having two different 
source code folders.


Keep in mind that we informally agreed that there will be disruptions 
post 11.x branch. I believe this one will be one of many worthwhile 
changes.


-Adrian

On 5/17/2011 10:25 PM, David E Jones wrote:
To avoid disrupting the current directory structure, it would be 
better to avoid:


move: component/src ->  component/src/main/java
result: component/src/main/java, component/src/text/java

and instead not move component/src at all and have:

component/src
component/test-src

... or something along those lines.

-David


On May 17, 2011, at 10:12 PM, Ganath Rathnayaka wrote:


Hi devs,
According to my project I suggested some changes to be done to 
separate the
test classes from the code itself. Please let me know your ideas 
about the

suggested structure.
Also I came up with the structure for module securityext. Can I 
separate the

code as follows? Please let me know your ideas.

current structure
.
|-- src
|   `-- org
|   `-- ofbiz
|   `-- securityext
|   |-- test
|   |   |-- AuthorizationTests.java
|   `-- DaTest2.groovy


after test/code separation
.
|-- src
||--main
||`--java
|| `-- //rest of the code
||--test
|  `--java
|  `-- org
|`-- ofbiz
|   `-- securityext
| |-- AuthorizationTests.java
| `-- DaTest2.groovy



--
thanks
Ganath






Re: OFbiz build not working

2011-05-09 Thread Raj Saini

Thanks Jacques.

Raj

On Monday 09 May 2011 12:50 PM, Jacques Le Roux wrote:

Done at r1100903

From: "Jacques Le Roux" 

HI Raj,

OK I'm looking at it, I tested the ant-contrib  task and searched 
for it in build.xml files (ie forgot other possible build files like 
common.xml where it's used)

Should be fixed soon...

Jaques

From: "Raj Saini" 
r1100795 is causing problem as build is not working any more. 
Reverting to previous revision resolved the problem.


Thanks,

Raj 










OFbiz build not working

2011-05-08 Thread Raj Saini
r1100795 is causing problem as build is not working any more. Reverting 
to previous revision resolved the problem.


Thanks,

Raj


Re: Discussion: REST support in OFBiz

2011-05-06 Thread Raj Saini

Jacques,

I am working on a prototype and let you know my findings.

Thanks,

Raj

On Friday 06 May 2011 03:31 PM, Jacques Le Roux wrote:

IIRW CXF uses Java annotations, is this not limiting us (simple-methods)?
Raj did you think about an engine part of CXF to include in OFBiz?

Jacques

From: "Adrian Crum" 

Raj,

How do you picture Apache CXF being used in OFBiz? How would we map 
REST requests to OFBiz services using CXF?


-Adrian


On 5/4/2011 9:48 PM, Raj Saini wrote:
There is also JAX-RS Java API (http://en.wikipedia.org/wiki/JAX-RS). 
I believe integrating current implementation  such as Apache CXF 
similar to the way Axis is integrated for SOAP based web services 
should be less work than doing it all ourselves.


Thanks,

Raj

On Thursday 05 May 2011 06:54 AM, Adrian Crum wrote:

Thanks Scott!

I agree - the REST URLs (or URIs) should represent resources and 
the HTTP commands should represent actions taken on those 
resources. I guess I was trying to take a shortcut by having REST 
URLs point directly to OFBiz services.


So we need a way to map REST URLs to the appropriate services. 
Maybe the service definitions could include a REST resource 
identifier. That should be easy to implement.


How could we implement something like the "Link things together" 
section of this article:


http://www.infoq.com/articles/rest-introduction

(That question is for the community, not Scott specifically).

-Adrian


On 5/4/2011 5:54 PM, Scott Gray wrote:

Hi Adrian

My limited understanding is that RESTful URLs should point to a 
data resource rather than service logic resources. The verbs (HTTP 
request method) are used to indicate the type of operation (CRUD) 
to be performed on the noun (data object).  So you'd have 
something like a URL that points to say the "person" resource and 
using that URL you can GET a person(s), create or update (POST) a 
person(s) and DELETE a person.


If what I say above is correct then what OFBiz lacks primarily is 
the ability to map a verb and nouns combination to a specific 
service.  I believe David has taken some steps to resolving that 
in Moqui which we could achieve by altering the way we define 
services or alternatively as a stop-gap measure we could introduce 
an additional mapping layer which defines resource end-points and 
maps the request type to the appropriate service (perhaps not so 
easy for POST operations that use a create or update approach but 
possible by checking for the presence of specific record 
identifying parameters to indicate an update).


What you've described below sounds more like a regular HTTP web 
service approach that just makes a bit more use of the request 
headers than we do currently.


Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 5/05/2011, at 12:11 PM, Adrian Crum wrote:

I'm working on a project that might require accessing OFBiz 
services via REST. I know there have been discussions about using 
Axis, and Chris Snow was able to get a REST library to work with 
OFBiz. Please correct me if I'm wrong, but it seems to me OFBiz 
already has most of what is needed to implement REST, so there 
shouldn't be any need to use any additional libraries.


 From what I understand, REST services are simply HTTP requests 
sent to a particular URL to invoke a particular service. The 
request response contains any requested data in a format the REST 
client specified in the request. The HTTP commands GET, POST, 
PUT,  and DELETE are used in the requests. The meaning of the 
REST HTTP commands are server-specific.


So here is what I'm thinking: Let's say we want to access OFBiz 
services via REST. We don't need to support the PUT and DELETE 
commands because the services themselves determine what actions 
will be performed on the data. So, let's say that a GET command 
gets information about the service, and the POST command invokes 
the service.


 From my perspective, this could be implemented in two different 
ways: a REST servlet or a REST view handler. In either case, the 
basic flow would be something like:


1. Get service name from request URL, look up service model. If 
export is false, return 404.
2. If service model auth is true, get credentials from HTTP 
header. If no credentials, return 401. If credentials are found, 
attempt to log in user. If login fails, return 401.
3. If command is GET, get Accept content type(s) from HTTP 
header, use those to find a converter. Convert service model info 
to requested type and put it in the response.
4. If command is POST, get content type from HTTP header, use 
that to find a converter. Convert POST data to service parameters 
and invoke the service. Get Accept content type(s) from HTTP 
header, use those to find a converter. Convert service result to 
requested type and put it in the response.


So, we could implement REST with existing artifacts - no 
additional libraries are needed (except maybe for

Re: Discussion: REST support in OFBiz

2011-05-04 Thread Raj Saini
There is also JAX-RS Java API (http://en.wikipedia.org/wiki/JAX-RS). I 
believe integrating current implementation  such as Apache CXF similar 
to the way Axis is integrated for SOAP based web services should be less 
work than doing it all ourselves.


Thanks,

Raj

On Thursday 05 May 2011 06:54 AM, Adrian Crum wrote:

Thanks Scott!

I agree - the REST URLs (or URIs) should represent resources and the 
HTTP commands should represent actions taken on those resources. I 
guess I was trying to take a shortcut by having REST URLs point 
directly to OFBiz services.


So we need a way to map REST URLs to the appropriate services. Maybe 
the service definitions could include a REST resource identifier. That 
should be easy to implement.


How could we implement something like the "Link things together" 
section of this article:


http://www.infoq.com/articles/rest-introduction

(That question is for the community, not Scott specifically).

-Adrian


On 5/4/2011 5:54 PM, Scott Gray wrote:

Hi Adrian

My limited understanding is that RESTful URLs should point to a data 
resource rather than service logic resources. The verbs (HTTP request 
method) are used to indicate the type of operation (CRUD) to be 
performed on the noun (data object).  So you'd have something like a 
URL that points to say the "person" resource and using that URL you 
can GET a person(s), create or update (POST) a person(s) and DELETE a 
person.


If what I say above is correct then what OFBiz lacks primarily is the 
ability to map a verb and nouns combination to a specific service.  I 
believe David has taken some steps to resolving that in Moqui which 
we could achieve by altering the way we define services or 
alternatively as a stop-gap measure we could introduce an additional 
mapping layer which defines resource end-points and maps the request 
type to the appropriate service (perhaps not so easy for POST 
operations that use a create or update approach but possible by 
checking for the presence of specific record identifying parameters 
to indicate an update).


What you've described below sounds more like a regular HTTP web 
service approach that just makes a bit more use of the request 
headers than we do currently.


Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 5/05/2011, at 12:11 PM, Adrian Crum wrote:

I'm working on a project that might require accessing OFBiz services 
via REST. I know there have been discussions about using Axis, and 
Chris Snow was able to get a REST library to work with OFBiz. Please 
correct me if I'm wrong, but it seems to me OFBiz already has most 
of what is needed to implement REST, so there shouldn't be any need 
to use any additional libraries.


 From what I understand, REST services are simply HTTP requests sent 
to a particular URL to invoke a particular service. The request 
response contains any requested data in a format the REST client 
specified in the request. The HTTP commands GET, POST, PUT,  and 
DELETE are used in the requests. The meaning of the REST HTTP 
commands are server-specific.


So here is what I'm thinking: Let's say we want to access OFBiz 
services via REST. We don't need to support the PUT and DELETE 
commands because the services themselves determine what actions will 
be performed on the data. So, let's say that a GET command gets 
information about the service, and the POST command invokes the 
service.


 From my perspective, this could be implemented in two different 
ways: a REST servlet or a REST view handler. In either case, the 
basic flow would be something like:


1. Get service name from request URL, look up service model. If 
export is false, return 404.
2. If service model auth is true, get credentials from HTTP header. 
If no credentials, return 401. If credentials are found, attempt to 
log in user. If login fails, return 401.
3. If command is GET, get Accept content type(s) from HTTP header, 
use those to find a converter. Convert service model info to 
requested type and put it in the response.
4. If command is POST, get content type from HTTP header, use that 
to find a converter. Convert POST data to service parameters and 
invoke the service. Get Accept content type(s) from HTTP header, use 
those to find a converter. Convert service result to requested type 
and put it in the response.


So, we could implement REST with existing artifacts - no additional 
libraries are needed (except maybe for data conversions).


What do you think? I'm not a REST expert, so comments are welcome!

-Adrian







Problem in content application when using a content prefix for website

2011-03-23 Thread Raj Saini

Hi,

Using a content prefix for a website breaks the content application as 
content prefix is also applied to content application. For example if I 
add a content prefix /ecommerce to "WebStore" web site, this content 
prefix will also be applied to the content application and therefore 
images, css and js is not loaded properly.


Thanks,

Raj



Missing ProductPrice entity fields

2011-03-16 Thread Raj Saini

Hi,

I was looking into the product prices on trunk demo 
(https://demo-trunk.ofbiz.apache.org/catalog/) and I found two fields 
"priceWithTax" and "priceWithoutTax" are missing. Whereas, ProductPrice 
entity has these two fields in entity definition. Anyone have idea what 
is wrong with the trunk demo?


Thanks,

Raj


Re: Trunk demo broken

2011-02-18 Thread Raj Saini

Thanks Erwin.

Raj

On Friday 18 February 2011 04:57 PM, Erwan de FERRIERES wrote:

Le 18/02/2011 09:35, Raj Saini a écrit :

Hi,

Many pages of trunk demo (Product->Features, Category->Rollup etc) are
broken.

Error executing macro: renderDateTimeField required parameter:
timeValues is not specified. The problematic instruction: -- ==>
macro renderDateTimeField [on line 97, column 1 in
component://widget/templates/htmlFormMacroLibrary.ftl] in user-directive
htmlTemplate.renderDateTimeField [on line 119, column 21 in
component://product/webapp/catalog/category/EditCategoryRollup.ftl]
-- Java backtrace for programmers: --
freemarker.template.TemplateException: Error executing macro:
renderDateTimeField required parameter: timeValues is not specified. at
freemarker.core.Macro$Context.sanityCheck(Macro.java:181) at
freemarker.core.Macro$Context.runMacro(Macro.java:161) at
freemarker.core.Environment.visit(Environment.java:537) at
freemarker.core.UnifiedCall.accept(UnifiedCall.java:128) at
freemarker.core.Environment.visit(Environment.java:196) at
freemarker.core.MixedContent.accept(MixedContent.java:92) at
freemarker.core.Environment.visit(Environment.java:196) at
freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) at
freemarker.core.Environment.visit(Environment.java:196) at
freemarker.core.MixedContent.accept(MixedContent.java:92) at
freemarker.core.Environment.visit(Environment.java:196) at
freemarker.core.Environment.process(Environment.java:176) at
org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:259) 


at
org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:205) 


at
org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250) 


at
org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110) 


at
org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:915) 


at

Thanks,

Raj

Broken was a big word ! Anyway, thanks for displaying the error. Now 
corrected at r1071967.


Cheers,





[jira] Commented: (OFBIZ-4188) Incompatible change of macro renderDateTimeField in r1070570

2011-02-18 Thread Raj Saini (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-4188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996355#comment-12996355
 ] 

Raj Saini commented on OFBIZ-4188:
--

Well not true. There are two already set for renderDateTimeField and they are 
event="" and  action="". These are the last two parameters. However, I agree 
with you that FTLs should be modified to pass the default values. 



> Incompatible change of macro renderDateTimeField in r1070570
> 
>
> Key: OFBIZ-4188
> URL: https://issues.apache.org/jira/browse/OFBIZ-4188
> Project: OFBiz
>  Issue Type: Bug
>  Components: framework
>Affects Versions: SVN trunk
>Reporter: Manuela Gruendlinger
>Assignee: Erwan de FERRIERES
> Fix For: SVN trunk
>
>
> In r1070570 two new parameters "step" and "timeValues" have been introduced 
> without default values. This breaks all invocations. Using step="1" and 
> timeValues="" as default values works in local tests.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




Re: Trunk demo broken

2011-02-18 Thread Raj Saini

Hi Jacques,

It is not working locally as well, though my code is one day old.

Thanks,

Raj

On Friday 18 February 2011 03:12 PM, Jacques Le Roux wrote:

You don't reproduce locally?

Jacques

From: "Raj Saini" 

Hi,

Many pages of trunk demo (Product->Features, Category->Rollup etc) 
are broken.


Error executing macro: renderDateTimeField required parameter: 
timeValues is not specified. The problematic instruction: -- 
==> macro renderDateTimeField [on line 97, column 1 in 
component://widget/templates/htmlFormMacroLibrary.ftl] in 
user-directive htmlTemplate.renderDateTimeField [on line 119, column 
21 in 
component://product/webapp/catalog/category/EditCategoryRollup.ftl] 
-- Java backtrace for programmers: -- 
freemarker.template.TemplateException: Error executing macro: 
renderDateTimeField required parameter: timeValues is not specified. 
at freemarker.core.Macro$Context.sanityCheck(Macro.java:181) at 
freemarker.core.Macro$Context.runMacro(Macro.java:161) at 
freemarker.core.Environment.visit(Environment.java:537) at 
freemarker.core.UnifiedCall.accept(UnifiedCall.java:128) at 
freemarker.core.Environment.visit(Environment.java:196) at 
freemarker.core.MixedContent.accept(MixedContent.java:92) at 
freemarker.core.Environment.visit(Environment.java:196) at 
freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) at 
freemarker.core.Environment.visit(Environment.java:196) at 
freemarker.core.MixedContent.accept(MixedContent.java:92) at 
freemarker.core.Environment.visit(Environment.java:196) at 
freemarker.core.Environment.process(Environment.java:176) at 
org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:259) 
at 
org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:205) 
at 
org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250) 
at 
org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110) 
at 
org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:915) 
at


Thanks,

Raj








[jira] Commented: (OFBIZ-4188) Incompatible change of macro renderDateTimeField in r1070570

2011-02-18 Thread Raj Saini (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-4188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996346#comment-12996346
 ] 

Raj Saini commented on OFBIZ-4188:
--

>From seems to be in the "renderDateTimeField" Macro. Macro parameters 
>timeValues  have no default values and they are not passed form many ftls. The 
>solution is either we pass the value from the calling FTL or default assign 
>value to this. Passing a default value to the macro definition solves the 
>problem.

> Incompatible change of macro renderDateTimeField in r1070570
> 
>
> Key: OFBIZ-4188
> URL: https://issues.apache.org/jira/browse/OFBIZ-4188
> Project: OFBiz
>  Issue Type: Bug
>  Components: framework
>Affects Versions: SVN trunk
>Reporter: Manuela Gruendlinger
>Assignee: Erwan de FERRIERES
>
> In r1070570 two new parameters "step" and "timeValues" have been introduced 
> without default values. This breaks all invocations. Using step="1" and 
> timeValues="" as default values works in local tests.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




Trunk demo broken

2011-02-18 Thread Raj Saini

Hi,

Many pages of trunk demo (Product->Features, Category->Rollup etc) are 
broken.


Error executing macro: renderDateTimeField required parameter: 
timeValues is not specified. The problematic instruction: -- ==> 
macro renderDateTimeField [on line 97, column 1 in 
component://widget/templates/htmlFormMacroLibrary.ftl] in user-directive 
htmlTemplate.renderDateTimeField [on line 119, column 21 in 
component://product/webapp/catalog/category/EditCategoryRollup.ftl] 
-- Java backtrace for programmers: -- 
freemarker.template.TemplateException: Error executing macro: 
renderDateTimeField required parameter: timeValues is not specified. at 
freemarker.core.Macro$Context.sanityCheck(Macro.java:181) at 
freemarker.core.Macro$Context.runMacro(Macro.java:161) at 
freemarker.core.Environment.visit(Environment.java:537) at 
freemarker.core.UnifiedCall.accept(UnifiedCall.java:128) at 
freemarker.core.Environment.visit(Environment.java:196) at 
freemarker.core.MixedContent.accept(MixedContent.java:92) at 
freemarker.core.Environment.visit(Environment.java:196) at 
freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) at 
freemarker.core.Environment.visit(Environment.java:196) at 
freemarker.core.MixedContent.accept(MixedContent.java:92) at 
freemarker.core.Environment.visit(Environment.java:196) at 
freemarker.core.Environment.process(Environment.java:176) at 
org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:259) 
at 
org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:205) 
at 
org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250) 
at 
org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110) 
at 
org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:915) 
at


Thanks,

Raj


Re: Marketing OFBiz and the OFBiz non-object approach (was Re: Wicket in OFBiz)

2011-01-28 Thread Raj Saini
I think this is the best way to move forward and will keep current 
development going while working on new ideas on new generation framework.


Thanks,

Raj


On Friday 28 January 2011 09:16 PM, Jacopo Cappellato wrote:

On Jan 27, 2011, at 12:19 PM, Pierre Smits wrote:


That sounds like a workable solution to me as well.

But why move parts of the current code of the product (as is it is now)
outside of the ASF' repo?

Looking at Commons in JIRA I see several related projects. We could do this
for OFBiz too. Split up in to several sub projects, have for each sub
project a committed sub community of users, contributors and committers. And
still having interaction between all.

In my opinion, the "paperwork" overhead required to setup maintain several 
subprojects (each with its own PMC, committers etc..) in the OFBiz community will be an 
overkill: our community is still too small for this.
But of course we do not have to necessarily throw our code out; we can still, 
even if in a more informal way, internally structure our code base in a 
subproject friendly way.
For example, we could follow a path like this:

1) separate the framework and application into two "trunks":
trunk/framework
trunk/applications
2) create a stable branch from the framework
branches/old-framework
3) the checkout instructions (and releases) will be done using:
branches/old-framework
trunk/applications
i.e. applications will be maintained over the stable framework, not the 
trunk/framework
4) the development for the next generation framework will happen in the 
trunk/framework and initially we will not care about compatibility with the 
applications
In this way the community will continue to work: a part of it will develop 
applications in the old way (as it is now); some developers will work on the 
new framework
5) when the new framework will reach a stable point we will plan to port the 
applications to it

A lot of details are missing but this is the general idea

Jacopo


Regards,

Pierre



2011/1/27 Jacopo Cappellato


On Jan 27, 2011, at 11:50 AM, Scott Gray wrote:


(With so many messages I don't have a good spot to say my short piece so

here will do)

IMO our problems will only increase with the size of the code base.

Every time a new feature is committed you have an additional potential
audience that must be kept happy and our ability to please everybody
continues to decrease.  Unhappy people don't work well together so things
just keep getting worse.

Solution?  Decrease the size of the code base and included features and

increase the ability for the community to share contributions outside of the
ASF's repo.  Decrease the load on the committers and let the rest of the
community put their money where their mouth is.

Some ideas (feasible or not):
- Pull out all of the themes except one and move each one to google code

or wherever if there is someone interested in looking after each one.

- Then do the same for the bulk of the special purpose apps.
- Separate the framework from the applications.
- Remove any framework features that aren't used by the applications or

are of relatively low value and allow them to be dropped in by users when
they need them.

- Perhaps even take another look at the possibility of reducing the

dependencies among the core apps and splitting them (I'd gladly welcome 100
new committers to the humanres app because I have no interest in it).

- Turn the payment and shipping gateway implementations into drop in

components along with any other pieces of code that are suitable for
extraction

- Investigate ways to allow plug-in modification of apps and implement

something (anything) that allows it.
+1 on all points; the next step in the life of the project will be the
setup of an healthy ecosystem and these are concrete steps in that
direction.

Jacopo


Right now we have a gigantic project with a gateway of ~13 active

committers (23 total) who have day jobs to worry about along with reviewing
(and fighting about) commits (or just giving up on this responsibility),
attempting to improve the project and taking part in these (mostly pointless
discussions) and then keeping the rest of the community happy.  Increasing
the number of committers just increases the potential for disagreement and
then stagnation so the only other option to reduce the code.

Give control of features and components to people who care about them and

then help users find them externally as they need them.  Don't like the
direction a feature/component is taking? Fork it and compete.

Regards
Scott

On 27/01/2011, at 9:54 PM, Jacopo Cappellato wrote:


I have noticed some negative trends happening to us in the last (1-2)

years:

* a dramatic decrease of design discussions and an increase in commits
* committers are often working for themselves and not for the greater

good of the project ("if a customer pays me to do something then it will be
also good for the project")

* less peer reviews and mostly focused on formal a

[jira] Created: (OFBIZ-4153) Make entity engine a standalone database access tool/API

2011-01-27 Thread Raj Saini (JIRA)
Make entity engine a standalone database access tool/API


 Key: OFBIZ-4153
 URL: https://issues.apache.org/jira/browse/OFBIZ-4153
 Project: OFBiz
  Issue Type: Improvement
  Components: framework
Reporter: Raj Saini
Priority: Minor


>From the user mailing list:

I was picturing the entity engine as a lower level artifact - like a jar file. 
I don't have all of the details worked out yet, but what I picture is this:

1. An application needs a database-agnostic data store.
2. The application accesses the data store though the entity engine API/ jar 
library.

Ofbiz has a very convenient way of defining databases, tables, and views as XML 
files. Plus, it has the ability to create/modify table/index structures during 
start-up. I believe that would be a very handy tool for anyone wanting to 
create any application that requires data storage.

Wrapping the entity engine jar file in an OSGI bundle would be trivial.

If anyone is interested in exploring this further, then they should create a 
Jira issue and we can take it from there. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



Re: OFBiz: The road ahead RE the framework

2011-01-27 Thread Raj Saini
One thing I would like to see is to use the OSGi runtime for framework. 
This will help modularising efforts. For example entity engine, service 
engine, security etc. will be OSGi bundles running on top of OSGi 
framework such Apache Karaf. Apache ServiceMix is already using Karaf 
(http://karaf.apache.org). I did a prototype and embedded the OFBiz in 
OSGi runtime (http://sourceforge.net/projects/ofbiz-osgi/) and it worked 
well.


Thanks,

Raj

On Thursday 27 January 2011 03:01 PM, Pierre Smits wrote:

Hi All,

This thread is about where you want the community to go with the underlying
core components of OFBiz (aka the Framework).

The framework is the enables of all applications and business processes and
users of the product. It is about security, and about a future proof and
reliable platform for developing applications on.

What do feel is important? What should be removed from the framework. what
should be included? What can be enhanced? And what not?

Please let all of us know what you think is important regarding the
framework so that we (the community) can take stock and draw up a plan for
comming releases.

Regards,

Pierre





Re: Marketing OFBiz and the OFBiz non-object approach (was Re: Wicket in OFBiz)

2011-01-27 Thread Raj Saini
I think these new idea should be separated form the current code base. 
It should be a new generation of the OFBiz while development still 
continues on the current one. As I said before, Eclipse 4.0 and Eclipse 
3.0 are the prefect example. Mouqi could be the start for the new 
generation OFbiz (Of course if David and community agrees to it) with 
fine grained access to the code base while current OFBiz can go on as it 
is until new generation OFBiz matures.


Raj


On Thursday 27 January 2011 02:27 PM, Jacopo Cappellato wrote:

Thank you Adrian.
Yes, I think that issuing another release branch before the switch would be a 
good idea; I am pretty sure that an important decision like this will take some 
good time before it is widely accepted :-)

Jacopo

On Jan 26, 2011, at 3:21 PM, Adrian Crum wrote:


Jacopo,

Your suggestions sound fair to me. Maybe after the 11.x branch is created we 
can discuss these ideas.

-Adrian

On 1/26/2011 2:11 AM, Jacopo Cappellato wrote:

There are so many interesting topics in this thread and for now I will comment 
on few of them (in spare order):

1) backward compatibility: we already have to stable release branches (and we 
will probably create another one soon) and users can use them and be sure that 
future releases *within* the branch will be backward compatible; I mean that 
10.04.01, 10.04.02, 10.04.03 etc... will be backward compatible with 10.04 but 
not with the 09.04 series; future release branches can (and in my opinion 
*should*) be free to break backward compatibility; of course the community, or 
even better, commercial vendors could create migration scripts for, let's say, 
users of 09.04 series to help them migrate t the 10.04 series; but this is not 
something that the community *has* to do; it is important that the history 
behind OFBiz is treated as a valuable asset of the project and not as an 
burden; to summarize: backward compatibility should be considered only for the 
commits of a given release branch and should not be a limitation for 
development in the trunk

2) refactoring the OFBiz framework: I would be very happy to discuss and 
implement a newer version of the framework; I think that we should get a much 
lighter framework working into the following directions:
2.0) before any action can be taken we should finally find an agreement for a definition 
of the framework; what is it? how should be used? IMO something like "a framework 
for building ERP applications (characterized by extensive relational data model and 
several business processes that manage the data) with browser friendly ui" is a good 
start
2.a) removing old or not used (by the official applications) artifacts and 
tools; ideally we should have one implementation for each tool required; 
alternate implementation should go away;
2.b) removing (or at least revisiting the way they have been integrated) big external 
chunks of other projects; they could be moved to a separate "extra" folder 
(possibly together with part of the 2.a stuff), not built by default and not included in 
our official releases (instead they could be released separately)
2.c) enhance/simplify the tools we want to keep based on the features/best 
practices that proved their validity in the history of the project (in an 
evolutionary context)
2.d) 2.a, 2.b and 2.c can happen in the trunk and we will update the official 
applications to reflect the changes in the framework (more about this in point 
2.e)
2.e) application and special purpose components: at some point we may realize 
that, in order to reflect the changes in the framework, it would be easier to 
rewrite/refactor (part of) them instead of updating them; at that point we may 
create a freeze/branch of OFBiz and remove the applications from the trunk; 
then migrate to the trunk the parts that we want to keep in the new generation 
OFBiz; we could even end up with a completely different structure like: one 
component for the generic ERP application (combining together part of several 
existing applications like party, product, order etc... that are already 
interdependent) plus a series of vertical components (still rather generic); or 
one generic component containing generic business logic (services) and data 
models for a generic ERP and then several different components with different 
ui for different industries (like one for retailers, one for manufacturers 
etc...)

3) issues with bureaucracy: it is definitely true that being part of the ASF 
oblige us to follow and respect some rules; this is sometime a pain, especially 
when the rules conflicts with the greater good of the project (see for example 
the issues with the ASF resources that we were forced to adopt); however I 
don't think that the issues we see in the community and in OFBiz are caused by 
this or by the PMC; I think that the main issues are caused by the attitude of 
people working in the community, by conflicting goals and expectations, by the 
lack of a shared goal (or by the

Re: Marketing OFBiz and the OFBiz non-object approach (was Re: Wicket in OFBiz)

2011-01-25 Thread Raj Saini

David,

I agree with you that  a complete overhaul or rather a new design of the 
OFBiz framework is needed taking into new ideas and new technologies 
into consideration. Moreover, as any software grows and matures it 
becomes extremely difficult to make changes due to the backward 
compatibility and this phenomena is not really new to OFBiz. You will 
see this around happening to any other big project.


Recent example is Eclipse 4.0. Eclipse community wanted to incorporate 
new features based on service oriented architecture and they could not 
do it with Eclipse 3.0 due to dreaded backward compatibility issues. 
What did they do? Started a brand new project under Eclipse foundation 
and that is without killing the 3.0. There are many more example around. 
Linux and FSF world is full of -ng and that includes small and big projects.


So we need here in OFBiz is a new generation OFBiz that is OFBizNG. A 
brand new OFBiz which builds on top of current without worrying about 
the backward compatibility issues.


So my question is why cant Mouqi be a OFBizNG? As it is going to be a 
sub project of the OFBiz, it can have different commitors, different set 
of commit rules, and you can take a leadeship roles as you are the most 
experienced person.


Thanks,

Raj

On Wednesday 26 January 2011 03:23 AM, David E Jones wrote:

On Jan 25, 2011, at 6:02 AM, Ruth Hoffman wrote:


On 1/25/11 2:06 AM, David E Jones wrote:

All of that said, now that Moqui is starting to take shape I find the OFBiz 
Framework to be cumbersome and inconsistent in many ways (things that are hard 
to fix, but that are not surprising given the pioneering history of the OFBiz 
Framework). Those funny quirky things are likely a turn-off to prospective 
developers and I'm hoping to remove that impediment to adopting the approach.

David - you keep saying this..Please provide some examples of "cumbersome and 
inconsistent" within the framework. And why not try and fix these? Instead of reinventing the 
wheel. What "funny quirky" things have turned of prospective developers? Do you have an 
specific examples?

Yes, I have mentioned these many times especially in the last 2-3 years. Some 
of them I have tried to fix in OFBiz itself and ran into rather large problems. 
These are not easy changes to make in a large and mature project like OFBiz, 
and after trying a few times I decided that a new framework was the only way 
forward (another thing I've written before and made very clear).

These are the things that led to many aspects of the design of Moqui, and the 
best summary of them is the document I wrote about the differences between the 
Moqui and OFBiz frameworks:

http://sourceforge.net/projects/moqui/forums/forum/1086127/topic/3597296

To sum up here are some of the major inconsistencies and annoyances in the 
current OFBiz framework that bug me frequently while I'm developing:

1. XML actions are different in each widget and in the simple-methods; they 
share some underlying code but there are so many differences

2. scriptlets and expressions are a messy combination of BeanShell, UEL, and 
Groovy and keeping track of which is a pain, plus the Groovy syntax and 
capabilities are SO much better than the others so I find myself almost always 
using ${groovy:...} instead of the default, and in annoying places like the 
form.field.@use-when attribute since it is always BeanShell I just use a set 
action to prepare a boolean and then check it in the use-when (BeanShell is 
HORRIBLE compared to groovy, especially when squeezed into XML attributes)

3. the controller.xml file gets HUGE for larger applications, and if split it 
becomes harder to find requests and views; *Screen.xml files also tend to get 
HUGE with large numbers of screens in them; both are not organized in the same 
way as the application, also generally making things harder to find; 
views/screens and requests don't define incoming parameters so when doing 
request-redirect you have to specify the parameters to use in a larger number 
of places

4. another on the topic of why so many files: service groups and simple-methods 
are just XML, why not include them inline in the service definition (especially 
for smaller services), and encourage fewer services per file

5. loading of artifacts is not very lazy, meaning lots of unused screens, 
forms, services, entities and so on that are not used are loaded anyway; also 
many artifacts are difficult to reload by cache clearing and so that has 
limited support in OFBiz; this slows things down reloading lots of stuff in 
development, and results in more resources used than needed in production

6. the deployment model of OFBiz is limited and the use of static fields for 
initialization makes it difficult to deploy in other ways; there are few 
init/destroy methods and object instances that would make more deployment 
models easier and more flexible; also because of this it is difficult to get 
data from other parts of the framework

Re: OfBiz Data Model

2010-12-01 Thread Raj Saini

Hello G Raman,

You can run the "run-install" ant target and OFBiz will create schema 
along with demo data.


Also, such questions should be asked in user mailing list as dev mailing 
list is used for OFBiz development discussion.


Thanks,

Raj

On Wednesday 01 December 2010 03:18 PM, Ganapathyraman Venkatraman wrote:

Hi,

Appreciate if someone can guide me to get access to the schema dump of OfBiz 
database.  I am on to bringing up OfBiz instance in my m/c.  Thanks ahead...

Regards,
G.Raman
Senior Technical Director
Sword Global India Pvt Ltd.
5th Floor, Arihant Nitco Park, 90, Dr. Radhakrishnan Salai, Mylapore, Chennai - 
600 004, India
_
m  +91 95000 53613
t+91 44 6636 3650
e   ganapathyraman.venkatra...@sword-in.com
www.sword-group.com


The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments contained in it.

   




Re: Fwd: Re: Woop! Confluence data imported into git and displayed with webslinger!

2010-10-14 Thread Raj Saini
So how this is going to work one code is deployed inside a application 
server? For example as a war or ear or let us say inside the component 
folder of OFBiz?




Here is an example of what I mean by overlay:

==
doo...@host:/job/brainfood-standard-base/pages/BASE/www/account$ tree
.
├── Actions.whtml
├── left.vm
├── left.vm@
│   └── no-edit
├── Menu.whtml
├── newsletters
│   ├── Header.whtml
│   ├── index.groovy
│   ├── index.groovy@
│   │   ├── is-filter
│   │   └── require-login
│   ├── List.vm
│   ├── SuccessMessage.whtml
│   ├── Title.whtml
│   ├── View.vm
│   └── View.vm@
│   └── no-edit
├── password
│   ├── index.groovy
│   ├── index.groovy@
│   │   ├── is-filter
│   │   └── require-login
│   ├── SuccessMessage.whtml
│   ├── Title.whtml
│   ├── View.vm
│   └── View.vm@
│   └── no-edit
├── profile
│   ├── contact-action-EMAIL_ADDRESS.vm
│   ├── contact-action-POSTAL_ADDRESS.vm
│   ├── contact-action-TELECOM_NUMBER.vm
│   ├── contact-edit-EMAIL_ADDRESS.vm
│   ├── contact-view-EMAIL_ADDRESS.vm
│   ├── contact-view-POSTAL_ADDRESS.vm
│   ├── contact-view-TELECOM_NUMBER.vm
│   ├── index.groovy
│   ├── index.groovy@
│   │   ├── is-filter
│   │   └── require-login
│   ├── Title.whtml
│   ├── View.vm
│   └── View.vm@
│   ├── no-edit
│   └── PageStyle
└── Title.whtml
doo...@host:/job/brainfood-shop-base/pages/SHOP/www/account$ tree
.
├── contactmech
│   ├── index.groovy
│   ├── index.groovy@
│   │   └── is-filter
│   ├── PostalAddress.vm
│   └── TelecomNumber.vm
├── destinations
│   ├── index.groovy
│   ├── index.groovy@
│   │   ├── is-filter
│   │   └── require-login
│   ├── NotYetCreated.whtml
│   ├── Orders.vm
│   ├── RelationDisplay.vm
│   ├── Rename.vm
│   ├── Rename.vm@
│   │   └── no-edit
│   ├── Title.whtml
│   ├── View.vm
│   └── View.vm@
│   └── no-edit
├── order
│   ├── Actions.whtml
│   ├── index.groovy
│   ├── index.groovy@
│   │   ├── is-filter
│   │   └── require-login
│   ├── Print.vm
│   ├── Print.vm@
│   │   └── no-edit
│   ├── View.vm
│   └── View.vm@
│   └── no-edit
├── orders
│   ├── index.groovy
│   ├── index.groovy@
│   │   ├── is-filter
│   │   └── require-login
│   ├── NoOrders.whtml
│   ├── View.vm
│   └── View.vm@
│   └── no-edit
└── paymentmethods
 ├── index.groovy
 ├── index.groovy@
 │   ├── is-filter
 │   └── require-login
 ├── Title.whtml
 ├── View.vm
 └── View.vm@
 └── no-edit
doo...@host:/job/content-site/pages/CONTENT/www/account$ tree
.
├── destinations
│   └── View.vm@
│   ├── PageStyle
│   └── section-Left
├── Menu.whtml
├── newsletters
│   └── View.vm@
│   ├── PageStyle
│   └── section-Left
├── order
│   └── View.vm@
│   ├── PageStyle
│   └── section-Left
├── orders
│   └── View.vm@
│   ├── PageStyle
│   └── section-Left
├── password
│   └── View.vm@
│   ├── PageStyle
│   └── section-Left
├── paymentmethods
│   └── View.vm@
│   ├── PageStyle
│   └── section-Left
└── profile
 └── View.vm@
 ├── PageStyle
 └── section-Left
==
You'll note that standard-base and shop-base have different account
folders.  base has completely generic screens, while shop has screens
that only make sense for online shopping sites.

Then, the content folder has the same directories that exist in both
of the bases, but is very light-weight, and only sets certain
configuration parameters.

All three of these directory structures are then merged at runtime, to
provide a unified view.  A higher-level tree can add new files, or
replace files.  It's also possible to delete a file in a lower level;
the standard term for this is called a whiteout.

Each main top-level folder(/job/foo is the root) is a separately
maintained git repository.

This has allowed us to share code between all of our sites, so that
features and fixes can be rapidly deployed, while allowing the
customer's content site to only contain what is required to configure
the bases.

   




Re: Woop! Confluence data imported into git and displayed with webslinger!

2010-10-12 Thread Raj Saini



To be honest it makes it a little difficult to take you seriously when you 
completely disregard the JCR/Jackrabbit approach without even the slightest 
hint of objectivity
if (!myWay) {
 return highway;
}
The JCR was produced by an expert working group driven largely by Day Software 
which has Roy T. Fielding as their chief scientist.  While I know next to 
nothing about what constitutes a great CMS infrastructure I cannot simply 
accept that you are right and they are wrong especially when you make no 
attempt whatsoever to paint the full picture, I mean are you suggesting that a 
file system based CMS has no downsides?  Your approach is filled with pros and 
their's all cons?
   
Subversion is good example of using a database to store the contents 
(source). Subversion does not use flat files to store the files. It does 
use a BDB or FSFS. Although FSFS is a single file filesystem, it is not 
a plain file to be manipulated directly. Generally applications using 
filessystem files add their own header information.

Regards
Scott




Re: Woop! Confluence data imported into git and displayed with webslinger!

2010-10-12 Thread Raj Saini


Then, with the backend code and template files stored in the 
filesystem, the actual content itself is also stored in the 
filesystem.  Why have a different storage module for the content, then 
you do for the application?


I don't think it is a code idea to store your code and data together. 
Data is some thing which you need to take regular backup and your code 
is generally in binary form and reproducible easily such as deploying a 
war or jar file.





Re: Entity Generator - Help Sought!

2010-08-12 Thread Raj Saini

Aneesh,

Firstly, you should ask this question to user mailing list as dev list 
is related to OFBiz development. Secondly, I would recommend you to 
subscribe to the mailing list if you are doing some serious work on OFBiz.


Thanks,

Raj

On 13/08/10 03:24, Aneesh Vijendran wrote:

Hi All,

I am trying to integrate some new functionality in Ofbiz(For a client).

I have created a few custom tables. But I don't find a way to generate the
entitymodel's for this tables. Can somebody please reply back (*cc to this
mail, as I am not subscribed to ofbiz mailing list*) on how to do this?

Cheers
Aneesh

   




Error in E-commerce while updating store

2010-07-15 Thread Raj Saini

Hi,


There seems to be a problem when update e-commerce store. Also, if I 
click on the Inventory Tab of a product.


SVN Info:

Path: .
URL: http://svn.apache.org/repos/asf/ofbiz/trunk
Repository Root: http://svn.apache.org/repos/asf
Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
Revision: 964384
Node Kind: directory
Schedule: normal
Last Changed Author: hansbak
Last Changed Rev: 964371
Last Changed Date: 2010-07-15 16:03:57 +0530 (Thu, 15 Jul 2010)




=E-commerce product update 
error=

Below is the Error and stacktrace:

The Following Errors Occurred:

Type check failed for field [updateProductStore.daysToCancelNonPay]; 
expected type is [Long]; actual type is [java.lang.String]


Type check failed for field [updateProductStore.storeCreditValidDays]; 
expected type is [Long]; actual type is [java.lang.String]



E-Commerce 
stacktrace==
 [java] 2010-07-15 18:50:39,520 (http-0.0.0.0-8443-1) [   
ModelService.java:564:ERROR] [ModelService.validate] : 
{updateProductStore} : (IN) Required test error: 
org.ofbiz.service.ServiceValidationException: Type check failed for 
field [updateProductStore.daysToCancelNonPay]; expected type is [Long]; 
actual type is [java.lang.String]Type check failed for field 
[updateProductStore.storeCreditValidDays]; expected type is [Long]; 
actual type is [java.lang.String]
 [java] 2010-07-15 18:50:39,541 (http-0.0.0.0-8443-1) [  
ServiceDispatcher.java:381:ERROR]
 [java]  exception report 
--
 [java] Incoming context (in runSync : updateProductStore) does not 
match expected requirements

 [java] Exception: org.ofbiz.service.ServiceValidationException
 [java] Message: Type check failed for field 
[updateProductStore.daysToCancelNonPay]; expected type is [Long]; actual 
type is [java.lang.String]Type check failed for field 
[updateProductStore.storeCreditValidDays]; expected type is [Long]; 
actual type is [java.lang.String]
 [java]  stack trace 
---
 [java] org.ofbiz.service.ServiceValidationException: Type check 
failed for field [updateProductStore.daysToCancelNonPay]; expected type 
is [Long]; actual type is [java.lang.String]Type check failed for field 
[updateProductStore.storeCreditValidDays]; expected type is [Long]; 
actual type is [java.lang.String]

 [java] org.ofbiz.service.ModelService.validate(ModelService.java:698)
 [java] org.ofbiz.service.ModelService.validate(ModelService.java:562)
 [java] 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:379)
 [java] 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226)
 [java] 
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:165)
 [java] 
org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:336)
 [java] 
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:637)
 [java] 
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:383)
 [java] 
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:227)
 [java] 
org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:90)

 [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
 [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 [java] 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 [java] 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 [java] 
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:271)
 [java] 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 [java] 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 [java] 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 [java] 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 [java] 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 [java] 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 [java] 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 [java] 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
 [java] 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
 [java] 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
 [java] 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
 [java] 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

 [java] java.lang.Thread.run(Thread.java:619)
 [java]

Re: Hippo CMS

2010-07-10 Thread Raj Saini
What I mean is improve/redo the current CMS to make it assemble 
e-commerce sites using small plug-ins/components similar to how Druple 
or Joomla to by plugging in  third party e-commerce components. I am 
thinking of fine grained plug-ins such as product-summary and then 
decorated by the CMS page using CSS/JS etc.


I see two different usage of CMS in OFBiz. Documents/digital content 
management and web content management. My input above is for web content 
management. Using a JCR repository as back end for both will certainly a 
good idea as it a standard and we can use third party tools to edit the 
contents.


In summary, my thoughts are to use the native OFBiz application to 
manage the CMS contents (current one or new one) and use JCR repository 
for storage.


Regards,

Raj

On 11/07/10 04:09, Scott Gray wrote:

Thanks for sharing your thoughts Raj, the more input the better.

Being better able to define flexible website/ecommerce content would be a big 
win for sure.  Are you saying you would prefer to see the current Content/CMS 
model improved rather than replacing it with the likes of a JCR repository?

Regards
Scott

On 10/07/2010, at 11:23 PM, Raj Saini wrote:

   

I have been experimenting with few of the CMS and as you said, they really do 
not fit into the OFBiz.

I am not sure what are the thoughts of others. What I have in mind is a web CMS 
system for OFBiz which is used to create site structure and then fill the 
contents either with static pages and the dynamic fragments such as 
product-summary, side-deep categories, product details etc. This kind of system 
will allow building of web site dynamically from predefined web fragments. I 
think best thing for this type of system will be to extend/modify or redo the 
current CMS.

Regards,

Raj

On 10/07/10 14:28, Scott Gray wrote:
 

The plan here is to get to know jackrabbit and content repositories in general, 
well at least that is my goal.

I'm not entirely convinced that a third party CMS will meet the full needs of 
an ERP system without extensive customization.  I want to better understand the 
underlying repository so that I can better understand what a third party CMS is 
actually bringing to the table.

For example Hippo's UI uses wicket, do I really want to have to deal with 
learning how to use that?  How big will that hurdle be compared to just 
duplicating the functionality using our own tools?  What happens when I don't 
want my users to have to go to a different web app just to manage some content?

But regardless, any higher level tools we create in OFBiz for accessing a JCR 
repo should be reusable irrespective of the CMS approach that we take.

Regards
Scott

On 10/07/2010, at 8:47 PM, Michael Xu (xudong) wrote:


   

Cool.

One quick question:  if we wanna adopt a CMS on top of jackrabbit, which one
you think is the best for this branch? I think we have select one, then
people can focus on that to verify the whole idea. But of course, we can
make it flexible enough to adopt other CMS in the future.

--
Regards,
Michael Xu (xudong)


On Sat, Jul 10, 2010 at 4:23 PM, Scott Graywrote:


 

Branch is created and can be checked out from here:
https://svn.apache.org/repos/asf/ofbiz/branches/jackrabbit20100709

I've committed a quick and dirty container for an embedded jackrabbit repo
so that we can go about accessing it straight away but much still needs to
be done at a low level.

Regards
Scott

On 9/07/2010, at 7:06 PM, Sascha Rodekamp wrote:


   

Jep Scott after you created the branch we maybe can split the tasks and

 

plan

   

the next steps.

2010/7/8 Scott Gray


 

Okay well cool, I'll go ahead and create a branch at some point, I know
Sascha has expressed interest as well so we may as well get the ball
rolling.

Regards
Scott

On 8/07/2010, at 11:54 PM, Adrian Crum wrote:


   

My spare time is very limited too, but I would be willing to help.

-Adrian

--- On Thu, 7/8/10, Scott Gray   wrote:


 

From: Scott Gray
Subject: Re: Hippo CMS
To: dev@ofbiz.apache.org
Date: Thursday, July 8, 2010, 12:04 AM
Hi Michael,

Personally, I wouldn't do anymore than the most basic CMS
work with the existing OFBiz component, but maybe I'm biased
because I want to see it replaced :-)

In regards to working together, my spare time is pretty
limited so I doubt that I'll be working very fast and
probably nowhere near fast enough for your needs.

If people are interested in helping out with my POC then we
can always consider creating a jackrabbit branch in the
OFBiz repo that people can use to collaborate.  The
main reason I'm looking at a direct Jackrabbit integration
is simply for learning purposes and to get a better
understanding of what the best long term approach will be,
there is every chance that it would never get merged back
into the trunk if we later decide to take a different
route.

Reg

Re: Hippo CMS

2010-07-10 Thread Raj Saini
I have been experimenting with few of the CMS and as you said, they 
really do not fit into the OFBiz.


I am not sure what are the thoughts of others. What I have in mind is a 
web CMS system for OFBiz which is used to create site structure and then 
fill the contents either with static pages and the dynamic fragments 
such as product-summary, side-deep categories, product details etc. This 
kind of system will allow building of web site dynamically from 
predefined web fragments. I think best thing for this type of system 
will be to extend/modify or redo the current CMS.


Regards,

Raj

On 10/07/10 14:28, Scott Gray wrote:

The plan here is to get to know jackrabbit and content repositories in general, 
well at least that is my goal.

I'm not entirely convinced that a third party CMS will meet the full needs of 
an ERP system without extensive customization.  I want to better understand the 
underlying repository so that I can better understand what a third party CMS is 
actually bringing to the table.

For example Hippo's UI uses wicket, do I really want to have to deal with 
learning how to use that?  How big will that hurdle be compared to just 
duplicating the functionality using our own tools?  What happens when I don't 
want my users to have to go to a different web app just to manage some content?

But regardless, any higher level tools we create in OFBiz for accessing a JCR 
repo should be reusable irrespective of the CMS approach that we take.

Regards
Scott

On 10/07/2010, at 8:47 PM, Michael Xu (xudong) wrote:

   

Cool.

One quick question:  if we wanna adopt a CMS on top of jackrabbit, which one
you think is the best for this branch? I think we have select one, then
people can focus on that to verify the whole idea. But of course, we can
make it flexible enough to adopt other CMS in the future.

--
Regards,
Michael Xu (xudong)


On Sat, Jul 10, 2010 at 4:23 PM, Scott Graywrote:

 

Branch is created and can be checked out from here:
https://svn.apache.org/repos/asf/ofbiz/branches/jackrabbit20100709

I've committed a quick and dirty container for an embedded jackrabbit repo
so that we can go about accessing it straight away but much still needs to
be done at a low level.

Regards
Scott

On 9/07/2010, at 7:06 PM, Sascha Rodekamp wrote:

   

Jep Scott after you created the branch we maybe can split the tasks and
 

plan
   

the next steps.

2010/7/8 Scott Gray

 

Okay well cool, I'll go ahead and create a branch at some point, I know
Sascha has expressed interest as well so we may as well get the ball
rolling.

Regards
Scott

On 8/07/2010, at 11:54 PM, Adrian Crum wrote:

   

My spare time is very limited too, but I would be willing to help.

-Adrian

--- On Thu, 7/8/10, Scott Gray  wrote:

 

From: Scott Gray
Subject: Re: Hippo CMS
To: dev@ofbiz.apache.org
Date: Thursday, July 8, 2010, 12:04 AM
Hi Michael,

Personally, I wouldn't do anymore than the most basic CMS
work with the existing OFBiz component, but maybe I'm biased
because I want to see it replaced :-)

In regards to working together, my spare time is pretty
limited so I doubt that I'll be working very fast and
probably nowhere near fast enough for your needs.

If people are interested in helping out with my POC then we
can always consider creating a jackrabbit branch in the
OFBiz repo that people can use to collaborate.  The
main reason I'm looking at a direct Jackrabbit integration
is simply for learning purposes and to get a better
understanding of what the best long term approach will be,
there is every chance that it would never get merged back
into the trunk if we later decide to take a different
route.

Regards
Scott

On 8/07/2010, at 6:07 PM, Michael Xu (xudong) wrote:

   

hi Scott,

Thanks.

We are customizing ofbiz for a customer here in China.
 

Party, Order,
   

Agreement, AP/AR, Birt, Catalog are in the current
 

scope and we feel very
   

comfortable with the flexibility offered by ofbiz. Now
 

customer needs CMS.
   

However, current CMS component is not that ready in
 

ofbiz. We are evaluating
   

which way to go:

1) enhance current ofbiz CMS component
2) embed a 3-party CMS as a component
3) integrate with a standalone 3-party CMS

Option 1 seems very risky, as we have to re-invent the
 

CMS wheel; Option 3
   

seems also very risky, as there are many integration
 

points, like
   

user/permission, etc. Now I tend to using option 2
 

just like what you are
   

doing. Maybe we can work together on this.

--
Regards,
Michael Xu (xudong)


On Thu, Jul 8, 2010 at 1:52 PM, Scott Gray<
 

scott.g...@hotwaxmedia.com
   

wrote:
 
 

Hi Michael,

The idea was to add hippo as a component and use
 

Re: OfBiz professional Support!

2010-07-03 Thread Raj Saini

Hi Venu,

OFBiz is a community driven open source project and support is provided 
by the volunteers who are also OFBiz users and developers. This kind of 
support is provided in the free time and free of cost. If you are 
looking for assured support, you can hire companies or individuals. You 
can find list of OFBiz service providers at 
https://cwiki.apache.org/OFBIZ/apache-ofbiz-service-providers.html.


BTW, we are one of the service provider and we are based in India.

Regards,

Raj

On 03/07/10 14:51, Venu Gopalakrishnan wrote:

Hi,

Couple of my clients are looking for an eCommerce application and I 
have OfBiz as one of the recommenced solution for them. Before I take 
the final call, I would like to know whether I will get adequate 
technical support from you for my developers who would be customizing 
this platform.


If I get an assurance on the technical support front then I would want 
to have my architects contributing to this forum by fixing some of the 
bugs (to start with) that we might come across to and in future we 
would love to contribute to the overall enhancement of this platform.


Please do let me know your thoughts! Appreciate your quick response as 
I need to go back to my client with the final solution before 10th 
July 2010.


Thanks and Regards
Venu Gopalakrishnan
CEO, TechMantra Software Solutions Pvt Ltd



The information contained in this electronic message and any 
attachments to this message are intended for the exclusive use of the 
addressee(s) and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately and destroy all copies of this message and any attachments.


WARNING: Computer viruses can be transmitted via email. The recipient 
should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any 
virus transmitted by this email.


www.techmantrasolutions.com
This e-mail and any files transmitted with it are for the sole use of 
the intended recipient(s) and may contain confidential and privileged 
information. If you are not the intended recipient, please contact the 
sender by reply e-mail and destroy all copies and the original 
message. Any unauthorized review, use, disclosure,dissemination, 
forwarding, printing or copying of this email or any action taken in 
reliance on this e-mail is strictly prohibited and may be unlawful.








Re: Hippo CMS

2010-06-23 Thread Raj Saini



of actual blog/wiki/forum code.
   

How did you just segue into JSR-286?

 

Hippo CMS is a JSR-286 provider.
   

I don't think Hippo is JSR-186 provider. Hippo Portal is using Apache 
Jetspeed which is JSR 168/286 (Portlet API) provider and Hippo is JSR 
170/283 provider.


Thanks,

Raj



Re: Dojo tree 1.4

2010-06-15 Thread Raj Saini
Vaddin is similar to the Eclipse RAP as both operates on server side 
though RAP has a well established API and RAP applications can also work 
as Desktop applications (theoretically) without code change and concept 
is called single sourcing.


Thanks,

Raj

On 16/06/10 08:02, Sam Hamilton wrote:

Hey Guys,

> From wikipedia - http://en.wikipedia.org/wiki/Vaadin
"Vaadin utilizes Google Web Toolkit for rendering the resulting web
page. While Google Web Toolkit operates only client-side (i.e. a
browser's JavaScript engine) – which could lead to trust issues – Vaadin
adds server-side validation to all actions. This means that if the
client data is tampered with, the server notices this and doesn't allow it."

So its not really a counter to the "threat", its a way to make life
"easier" to get into GWT

Sam


On 16/06/2010 09:52, Scott Gray wrote:
   

After a 2 second glance it looks interesting enough to bookmark.  Based on my 
current wish list I should be able to comment further in 2012 :-)

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 16/06/2010, at 1:18 PM, Ean Schuessler wrote:

 

I think you make a really great point here. JQuery is a utility not a
framework and when it comes to utility it really delivers the goods.

Looking back to Dojo, I still believe we need something to counter the
GWT-EXT "threat" because users continue to demand an "application" feel
when it comes to ERP. I find Vaadin (vaadin.com) very interesting, if
somewhat daunting in scale. It appears to offer the level of abstraction
necessary to integrate the screen and form widget systems and is under
the Apache License (which makes it very, very interesting). Has anyone
else looked seriously at Vaadin?

Jacques Le Roux wrote:
   

Looks like we have a good consensus around Jquery so far.

I must say that the main arugment for Dojo was its serious. It's a
real consistent framework with embedded widgets, not only an API. All
those third parties Jquery's widgets (and Prototypes's) are a bit
frightening. On the other hand when you want to upgrade to 1.4 you
find that it's not as serious as we thought, and I'm *very
disapointed* about that. And as those widgets are open source, it's
not as frightening as it 1st seems. For instance, we use a third party
calendar and we have already poked in (for layered lookups) without
issues.

At the time we decided to embed Doo and Prototype some pointed also
Jquery with good arguments [1] [2][3]. At this time we decided that
anyway we were not tied to any Ajax frameworks yet.

So yes, +1 for me also, especially now that Sascha wants to tackle it,
and I'm sure we will support his effort!

Thanks guys

Jacques
[1] Yoav Shapira in 2006: http://markmail.org/message/ftw7pjfrzxyxmsuz
[2] Ean in 2007 http://markmail.org/message/jf5qvxblvrbmtvae (and we
know now than when there is a dual licensing we can pick the one we
want, here MIT :o)
[3] Ean in 2007 http://markmail.org/message/vqjjtribdrulhbl3. When the
serious one is less serious than the other (demo in time). Dojo is
known to have documentation problems also... Found this link
http://www.ajaxdaddy.com/demo-dojo-fisheye.html
 

--
Ean Schuessler, CTO
e...@brainfood.com
214-720-0700 x 315
Brainfood, Inc.
http://www.brainfood.com

   
 


   




Re: Brainstorming: changing the way we work and release

2010-05-05 Thread Raj Saini
Recently, I worked on running the framework inside a OSGi framework. I 
could run the framework standalone except some minor issues such as 
loading of configuration files (entity engine and service engine 
configuration files) from classpath. Generally these files should be 
external to framework so that they can be places out side of the 
classpath. A system variable for the location of config files may a good 
idea. I also found, some dependency issues between entity engine and 
service engine. Entity engine depends on entityext and entityext depends 
on service engine which makes entity engine to depend on service engine.


Thanks,

Raj

On 05/05/10 11:31, Christopher Snow wrote:


I would support any effort to add more control to the framework. I 
support having many committers involved in the framework (so it 
doesn't become stagnant), but at the same time it would be nice to 
have better control over framework releases (so it can be reliable). 
David's suggestion of a separate branch for the framework is an 
excellent idea.


-Adrian


A separate branch along with David's proposal for configuration in 
Moqui (below) would also make security updates to production ofbiz 
installations much easier too.  Framework code (which shouldn't be 
changed by the end user) such as the entityengine could be updated 
just by replacing the entityengine.jar file.


"Configuration files are meant to come from a runtime directory and 
are not
spread around the code. There is a default-conf directory in the 
framework
so that if a configuration file is left out the framework will have a 
default

to fallback on that will work in most cases."





Re: IO Error processing request (java.security.cert.CertificateException: No trusted certificate found)

2010-05-03 Thread Raj Saini
It means their is not trusted SSL certificate in jdk CA store. You may 
need import the certificate in the JDK CA if your certificate is not 
signed by well knowns CAs.


Thanks,

Raj

On 03/05/10 14:36, Nalin Chandra wrote:

Hi All

I am working for the HSBC payment processor in my application. I prepared
the XML document correctly. But during the posting  i got

  IO Error processing request (java.security.cert.CertificateException: No
trusted certificate found).

Can any one please help me to sort out this issue.

The gateway url for the HSBC is;-
-https://www.secure-epayments.apixml.hsbc.com

I already implemented the SSL certificate on the server.

I also paste the log below this line.

==
2010-05-03 01:48:34,882 (TP-Processor16) [  CCPaymentServices.java:1042:INFO
]
 exception report
--
Exception: org.ofbiz.base.util.HttpClientException
Message: IO Error processing request
(java.security.cert.CertificateException: No trusted certificate found)
 stack trace
---
org.ofbiz.base.util.HttpClientException: IO Error processing request
(java.security.cert.CertificateException: No trusted certificate found)
org.ofbiz.base.util.HttpClient.sendHttpRequestStream(HttpClient.java:414)
org.ofbiz.base.util.HttpClient.sendHttpRequest(HttpClient.java:277)
org.ofbiz.base.util.HttpClient.post(HttpClient.java:191)
org.ofbiz.accounting.thirdparty.clearcommerce.CCPaymentServices.sendRequest(CCPaymentServices.java:1038)
org.ofbiz.accounting.thirdparty.clearcommerce.CCPaymentServices.ccAuth(CCPaymentServices.java:98)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:91)
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:53)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:336)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150)
org.ofbiz.accounting.payment.PaymentGatewayServices.authPayment(PaymentGatewayServices.java:496)
org.ofbiz.accounting.payment.PaymentGatewayServices.authOrderPaymentPreference(PaymentGatewayServices.java:161)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:91)
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:53)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:336)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
org.ofbiz.accounting.payment.PaymentGatewayServices.authOrderPayments(PaymentGatewayServices.java:349)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:91)
org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:53)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:336)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:150)
org.ofbiz.order.shoppingcart.CheckOutHelper.processPayment(CheckOutHelper.java:939)
org.ofbiz.order.shoppingcart.CheckOutEvents.processPayment(CheckOutEvents.java:527)
org.ofbiz.order.shoppingcart.CheckOutEvents.processPayment(CheckOutEvents.java:489)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:88)
org.ofbiz.webapp.event.JavaEventHandler.invoke(JavaEventHandler.java:74)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:471)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:304)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:404)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:404)
org.ofbiz.webapp.control.ControlServlet.d

Re: What about renaming "run-install" to "run-install-demo"?

2010-04-21 Thread Raj Saini
And what is the issue in adding the new command and changing the old one 
to give a meaningful help message to use the new one? How would this 
break the documentation? Command is still there and user can use it and 
they get on screen help to use a something new. I do not see why would 
you need to fix is the existing documentation and books for this change.


If some thing is broken and lot it written about it does not mean that 
you don't fix it. This change is needed to bring the clarity to the 
command as run-install does not give you a hint that it is installing 
the demo data unless you read through ant help messages.


Regards,

Raj

On 21/04/10 12:36, Adrian Crum wrote:

Jacopo,

You're missing the point - it's not as easy as that. The command "ant 
run-install" is mentioned in innumerable places in documentation, websites, books, 
etc. It's not just a matter of modifying a script - it's a matter of rewriting seven 
years of documentation.

If it's not an issue, then why did you bring it up?

-Adrian


--- On Tue, 4/20/10, Jacopo Cappellato  
wrote:

   

From: Jacopo Cappellato
Subject: Re: What about renaming "run-install" to "run-install-demo"?
To: dev@ofbiz.apache.org
Date: Tuesday, April 20, 2010, 11:54 PM
The easiest way to do this would be
to:
1) add run-install-demo (= run-install)
2) run-install should simply print a message explaining
that now run-install-demo should be used

But really, I am not very interested in spending more time
to discuss this, especially because it is not an issue I (or
my customers) have.

Kind regards,

Jacopo

On Apr 21, 2010, at 7:45 AM, Jacques Le Roux wrote:

     

I had the same thought, thanks Raj

Jacques

From: "Raj Saini"
   

In my opinion run-install is misleading as it
 

really does not tell that it is going to install demo data
and cause confusion to new users as it has happened with me
in the past. For the benefit of old and new users, I suggest
to add new command run-install-demo and leave the
run-install as it is for a while and document them to tell
what exactly they do. There are numerous examples of this in
the Linux/Unix world.
 

Thanks,

Raj

On 21/04/10 09:39, Jacopo Cappellato wrote:
 

On Apr 21, 2010, at 1:15 AM, Ean Schuessler
   

wrote:
 


   

Jacopo Cappellato wrote:

 

This is just *your* opinion and I
   

respect it (even if comparing this to altering an api is
ridiculous)... but please quit with the "teacher/guru"
mode...
 


   

Why is it ridiculous to think of shell
 

script parameters as an API? You
 

would surely be surprised if "ls" became
 

"rm" one day, as an extreme but
 

valid example.

 

As a new user of the "OFBiz Linux OS" I would
   

be also very surprised if the "rm" command really was a "rm
-r" command; in my opinion this is worth of a change, even
if old users would have to read one line of documentation to
learn the change.
 

But really, it is not very important, I am
   

more than happy to leave things as is because I understand
that this could be annoying for old users and frankly
speaking I don't have time and energy to further discuss
this.
 

Jacopo


   

I think we can safely regard shell scripts
 

as a class of
 

program.

Regarding "run-install", we've set an
 

expectation that run-install will
 

give you a demo system and that could
 

throw people off. Changing it
 

doesn't seem hazardous but I'm not clear
 

that it adds value.
 

--
Ean Schuessler, CTO
e...@brainfood.com
214-720-0700 x 315
Brainfood, Inc.
http://www.brainfood.com


 


   


   


 




   




Re: What about renaming "run-install" to "run-install-demo"?

2010-04-20 Thread Raj Saini
In my opinion run-install is misleading as it really does not tell that 
it is going to install demo data and cause confusion to new users as it 
has happened with me in the past. For the benefit of old and new users, 
I suggest to add new command run-install-demo and leave the run-install 
as it is for a while and document them to tell what exactly they do. 
There are numerous examples of this in the Linux/Unix world.


Thanks,

Raj

On 21/04/10 09:39, Jacopo Cappellato wrote:

On Apr 21, 2010, at 1:15 AM, Ean Schuessler wrote:

   

Jacopo Cappellato wrote:
 

This is just *your* opinion and I respect it (even if comparing this to altering an api 
is ridiculous)... but please quit with the "teacher/guru" mode...

   

Why is it ridiculous to think of shell script parameters as an API? You
would surely be surprised if "ls" became "rm" one day, as an extreme but
valid example.
 

As a new user of the "OFBiz Linux OS" I would be also very surprised if the "rm" command 
really was a "rm -r" command; in my opinion this is worth of a change, even if old users would have 
to read one line of documentation to learn the change.
But really, it is not very important, I am more than happy to leave things as 
is because I understand that this could be annoying for old users and frankly 
speaking I don't have time and energy to further discuss this.

Jacopo

   

I think we can safely regard shell scripts as a class of
program.

Regarding "run-install", we've set an expectation that run-install will
give you a demo system and that could throw people off. Changing it
doesn't seem hazardous but I'm not clear that it adds value.

--
Ean Schuessler, CTO
e...@brainfood.com
214-720-0700 x 315
Brainfood, Inc.
http://www.brainfood.com

 


   




Re: Peer Community and Strange Perceptions (was Re: svn commit: r923126 - /ofbiz/site/index.html)

2010-03-18 Thread Raj Saini
I think this is true for many of us. I always read end to end every 
email from David, irrespective of the topic. In fact, in the mailing 
list, I always look for the mails from David in hope to find something 
new about OFBiz. It happened last week when we were struggling with 
performance issues and a pointer about cache settings helped us a lot. 
Thanks you David.


Regards,

Raj

Anil Patel wrote:

David,
I agree with Scott, If not all, I always try to read your emails on list.

Thanks and Regards
Anil Patel
HotWax Media Inc
Find us on the web at www.hotwaxmedia.com or Google Keyword "ofbiz"

On Mar 17, 2010, at 10:32 PM, David E Jones wrote:

  

Thanks Scott, I appreciate that. I hope you are able to continue enjoying it 
for a good long time.

-David


On Mar 17, 2010, at 8:12 PM, Scott Gray wrote:


I'm sincerely sorry you feel that way and that you've been treated in the ways you describe below.  


I just want to say that I've read every single email you've written while I've 
been subscribed to the lists (and a pretty large number of the ones prior) and 
am immensely grateful for the knowledge you've shared with the community and 
for the contributions you've made.

Because of what you and Andrew started, I get to work on software that I love 
every day while solving all sorts of interesting business problems.

Regards
Scott

On 17/03/2010, at 7:34 PM, David E Jones wrote:

  

I won't speak for Andrew, but I'm against this, a lot.

Any advantage my contributions over time offers is more than cancelled out by suspicion of my motives, both now and in the past. This has resulted in all variety of personal attacks (usually based on an assumption of motives and ways of doing things) and resistance to anything I might propose. According to such I've intentionally made it hard for people to contribute things both now and even more a long while ago, and I've also made things intentionally difficult with OFBiz by design in order to make it harder for people to use it on their own in order drive business my way, and that's a small taste of the notions that continually come up on the mailing lists and in private emails. 


I'm tired of people calling me or emailing me privately to lay at my feet every 
imaginable problem and bug in OFBiz. I've had it with people sending their clients my way 
to help "sell" OFBiz when in fact it only costs me time and I get nothing 
positive out of it. Maybe I'm even more tired of prospective clients getting upset when I 
turn down there offers for piddling pay in exchange for brutal and risky work as if I can 
perform some miracle. And maybe it's even worse to have people constantly pinging me for 
referrals after a long history of things going very wrong when I have made the mistake of 
recommending people or companies.

So sorry, but don't look to me. Dere's nuttin' I kin do 'round 'ere. I'm just 
the bad guy that set everyone up for the pain they're currently experiencing.

That said, I don't think my invalidation is a bad thing for the community or 
the project at all. The community as a community of peers has to mature for the 
project to be successful and it's all the better if I'm not around interfering 
with the same.

-David


On Mar 17, 2010, at 10:41 AM, BJ Freeman wrote:



+1
when I ask your opinion it was as I was learning and was looking for
guidance, so I could contribute correctly.
If you notice since we have had documentation, I have not ask that as much.
I respect you for the effort and thought you put into ofbiz.

So a blurb about you and andy would seem appropriate as the founders of
ofbiz.

=
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation 

Specialtymarket.com 

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin



Adrian Crum sent the following on 3/17/2010 8:21 AM:
  

David E Jones wrote:


On Mar 16, 2010, at 6:49 PM, Scott Gray wrote:

  

On 16/03/2010, at 6:39 PM, David E Jones wrote:



I'll admit I empathize with what Sharan is expressing here. It's
hard to do stuff, or know how to do stuff and what to do, when there
are a bunch of people responding with implied policies or with
vetoes for this and that.
  

Well let's document it so everyone knows what the community policy
is.  Please feel free to comment on the guidelines I proposed
elsewhere in this thread.

You've quite clearly stepped away from taking an administrative
position within the community and it would be nice if we didn't spend
too much time criticizing people who are trying to help fill that void.


Oh, is that what's happening? I guess I missed that... I didn't even
realize there was an administrative void. Maybe it 

Re: Replace javax.imageio.spi.ServiceRegistry with java.util.ServiceLoader

2010-03-09 Thread Raj Saini

You can find a better description of the problem here:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5014358

Thanks,

Raj

Adam Heath wrote:

Raj Saini wrote:
  

Adam Heath wrote:


Raj Saini wrote:
 
  

Hi,

org.ofbiz.base.util.UtilObject#getObjectFromFactory class uses
*javax.imageio.spi.ServiceRegistry *class to load DelegatorFactory
implementation. ServiceRegistry class internally uses sun.misc.Service
class which is internal to sun and may not be part of other JDKs.



So?  ServiceRegistry is a public class, who cares how it works
internally.
  
  

Try debugging the code in Eclipse and you wont be able to attach source
code the source code internal classes is not part of the JDK. I had hard
time resolving a class loading issues as I could not look into look into
the source code in Eclipse debugger.



Huh?  ServiceRegistry is not an internal class, it's a public class.
There's nothing keeping ServiceLoader from being an *exact* copy of
ServiceRegistry, with any and all same-class internal uses, including
using some internal jvm-specific class.

So, to change this class just because eclipse can't debug it because
it's trying to read the source of some internal jvm class is the wrong
reason.



  




Re: Replace javax.imageio.spi.ServiceRegistry with java.util.ServiceLoader

2010-03-09 Thread Raj Saini

Thanks Adam. Look forward to it.

Raj

Adam Heath wrote:

Adam Heath wrote:
  

Raj Saini wrote:


Hi,

org.ofbiz.base.util.UtilObject#getObjectFromFactory class uses
*javax.imageio.spi.ServiceRegistry *class to load DelegatorFactory
implementation. ServiceRegistry class internally uses sun.misc.Service
class which is internal to sun and may not be part of other JDKs.
  

So?  ServiceRegistry is a public class, who cares how it works internally.



Starting with JDK 1.6, java.util.ServiceLoader class is provided to
replace the javax.imageio.spi.ServiceRegistry class and this class does
not depend on sun.misc.Service class. This is minor two line code change
and if community agree I can provide the patch.
  

The api isn't exactly compatible, but yes.



Btw, I'm happy to just do this, but I'm a bit busy for the next few
days.  There's no immediate hurry for this either.


  





Re: Replace javax.imageio.spi.ServiceRegistry with java.util.ServiceLoader

2010-03-09 Thread Raj Saini

Adam Heath wrote:

Raj Saini wrote:
  

Hi,

org.ofbiz.base.util.UtilObject#getObjectFromFactory class uses
*javax.imageio.spi.ServiceRegistry *class to load DelegatorFactory
implementation. ServiceRegistry class internally uses sun.misc.Service
class which is internal to sun and may not be part of other JDKs.



So?  ServiceRegistry is a public class, who cares how it works internally.
  
Try debugging the code in Eclipse and you wont be able to attach source 
code the source code internal classes is not part of the JDK. I had hard 
time resolving a class loading issues as I could not look into look into 
the source code in Eclipse debugger.
  

Starting with JDK 1.6, java.util.ServiceLoader class is provided to
replace the javax.imageio.spi.ServiceRegistry class and this class does
not depend on sun.misc.Service class. This is minor two line code change
and if community agree I can provide the patch.



The api isn't exactly compatible, but yes.
  
You are right they are not exactly compatible. I had to add one more 
line of code to replace the ServiceRegistry with ServiceLoader.


Thanks,

Raj


Re: Replace javax.imageio.spi.ServiceRegistry with java.util.ServiceLoader

2010-03-09 Thread Raj Saini

Thanks Jacques. Will create a JIRA issue and attach the patch.

Raj

Jacques Le Roux wrote:

Hi Raj,

I can't see any reasons to not create a Jira and a patch

Thanks

Jacques

From: "Raj Saini" 

Hi,

org.ofbiz.base.util.UtilObject#getObjectFromFactory class uses 
*javax.imageio.spi.ServiceRegistry *class to load DelegatorFactory 
implementation. ServiceRegistry class internally uses 
sun.misc.Service class which is internal to sun and may not be part 
of other JDKs.


Starting with JDK 1.6, java.util.ServiceLoader class is provided to 
replace the javax.imageio.spi.ServiceRegistry class and this class 
does not depend on sun.misc.Service class. This is minor two line 
code change and if community agree I can provide the patch.


Thanks,

Raj








Replace javax.imageio.spi.ServiceRegistry with java.util.ServiceLoader

2010-03-08 Thread Raj Saini

Hi,

org.ofbiz.base.util.UtilObject#getObjectFromFactory class uses 
*javax.imageio.spi.ServiceRegistry *class to load DelegatorFactory 
implementation. ServiceRegistry class internally uses sun.misc.Service 
class which is internal to sun and may not be part of other JDKs.


Starting with JDK 1.6, java.util.ServiceLoader class is provided to 
replace the javax.imageio.spi.ServiceRegistry class and this class does 
not depend on sun.misc.Service class. This is minor two line code change 
and if community agree I can provide the patch.


Thanks,

Raj



Re: OFBiz libraries versus Hot-deployed component ones

2010-03-02 Thread Raj Saini
You can copy the files in the WEB-INF/lib folder of the web app or 
create a ant target and copy those files at the build time.


Thanks,

Raj

Kévin Sailly wrote:

Not specifying the classpath makes ant build to not embed the libs, so it
does not work.
  




Re: OFBiz libraries versus Hot-deployed component ones

2010-03-02 Thread Raj Saini
Libraries in the WEB-INF/lib are automatically placed in web app 
classpath. I do not think you need to specify this anywhere in the 
classpath. You may want to check if you have the right jar files in the 
lib folder.


Thanks,

Raj

Kévin Sailly wrote:
I have try this : 




This giving me an error on runtime : 


interface javax.persistence.NamedQueries is not visible from class loader

any idea?
  




Re: tomahawk theme

2010-02-18 Thread Raj Saini

Is it there on the demo site?

Also changing themes on the demo site is broken. Accessing 
https://ofbiz-vm.apache.org:8443/catalog/control/LookupVisualThemes 
results in below error.

*:ERROR MESSAGE:*
org.ofbiz.webapp.control.RequestHandlerException: Unknown request 
[LookupVisualThemes]; this request does not exist or cannot be called 
directly.


Thanks,

Raj

Adam Heath wrote:

Scott Gray wrote:
  

I like it.  Unless there is some opposition to the theme becoming the default 
then I would say just go for it after waiting a day or two.

In terms of feedback the following bothers me (but are by no means blockers):
- The drop down menus are exposed until the page is fully loaded, looks bad on 
slow loading pages such as the entity and service lists in webtools
- The default buttontext images are too dark on the lower half, unless I've got 
my screen quite bright they don't read so well
- The yellow left and top border on the buttontext images doesn't look so great 
(just an opinion)

I haven't used it a huge amount so that's all I've got, but all in all it looks 
great, nice work Bruno and Erik.



Erik has said that the theme is not completely implemented, but it was
so much better than what was already available, that we decided to
commit it before it was fully finished.

Bruno has been very good at adding additional markup to the generated
html, to allow Erik to style it.  There are still things that need to
be done.

What has helped greatly, is that we have trained Erik to actually use
the ofbiz backend in detail now, so he's been going thru clicking and
trying stuff all on his own.


  




Re: style issues(show me the code)

2010-02-05 Thread Raj Saini
There are other Apache projects using checkstyle but not sure how. See 
the tiles link below.


http://tiles.apache.org/2.0/framework/tiles-jsp/checkstyle.html

For code coverage you can use Clover which is commercial but they give 
the free developer license to open source project similar to the  
IntelliJ IDEA  and it is also used in other Apache projects.


http://tapestry.apache.org/tapestry4/tapestry-contrib/clover/index.html

Thanks,

Raj


Adam Heath wrote:

Ean Schuessler wrote:
  

Adam Heath wrote:


Sorry, no, it's LGPL.
  
  

Do the test suites have to be checked in to the repository? We do use
JIRA for bugtracking.



checkstyle(which is the LGPL thing being discussed) needs to be run on
each developers workstation; that's the best place to have it
effective.  If each developer were required to download the library,
then that would be a pain in the ass.

This same reason is why I haven't pushed coverage reports(using
cobertura, which is GPL) more.  I am open to other tools, that have a
java-based api I can hook into, if others know of any.  But, before
anything gets added to the ofbiz repository, it must be an apache
compatible license.  Just saying that it's installed on some other
apache-infra type machine is not good enough, imho.

  



  




Re: Apache OFBiz EZBiz

2009-12-17 Thread Raj Saini
I am a big fan of OSGi and I feel it is a right component management 
technology to manage big project like OFBiz. This is one of the best to 
manage the component dependencies. I will work further on the OFBiz-OSGi 
and put more examples of how new bundles (aka plug-ins) can be developed.


Thanks,

Raj

Jacques Le Roux wrote:
Addons are certainly a good idea. But a good handling of them is also 
required (in other words they should never interfer).
I have a prospective customer (IT manager), who said that his company 
is using OpenERP (Python) but he is worried about the mess

addons bring. He talked by experience...
I remember also have read that some OsCommerce (PHP) users turned to 
Magento (PHP) because of addons issues
Maybe Apache Felix (OSGi Service Platform Release 4 implementation) is 
also to consider. But at longer term I guess

http://felix.apache.org/site/index.html

Also it's worth to be noted http://markmail.org/message/zyvtk67scqtriqf7
Also http://opentaps.org/docs/index.php/Ofbiz-osgi-prototype 
(contributed by Raj actually I will put it in OFBiz also a day or 
another)


My 2cts

Jacques

From: "Bruno Busco" 

Having OFBiz splitted in a core framework and add-on modules seems to
me like a must if we want to improve features.
Add-on modules is how many large and popular projects are built.
Even OpenERP says to have more that 350 modules and offers different
flavours of it here http://www.openerp.com/discover/demonstration.html

I think we should start discussing on the module add-on system that we
want to implement in OFBiz.
I have read that there is a plan from Neogia people to introduce what
they have developed. Is there any schedule for this?
Are you going to write a Confluence page where we can see how it works?

Are we going to host the add-on modules on a separate SVN folder?

Thank you,
Bruno

2009/10/29 Tim Ruppert :

This sounds fantastic Marc - it's amazing to see many of the software
providers out there coming together to back this idea. This has the 
unique

opportunity of taking everything that OFBiz does to the next level.

I guess the big question is, what's next to help get some of these 
backend
ideas back into this newly refined mission? We're more than happy to 
devote

resources to making this happen.

Cheers,
Ruppert
--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com

o:801.649.6594
f:801.649.6595

On Oct 29, 2009, at 7:47 AM, Marc Morin wrote:

As many of you know, we at Emforium have been busy building out a 
full set

of business software application to provide an "ALL-IN" comprehensive
solution for the small business market. When we started the 
evaluation over
a year ago, Ofbiz was the selected platform of choice. Other 
components are

Zimbra for email and concrete5 for web.

Over this time, we've spent our efforts providing an entirely new 
UI front

end for the backend applications: sales order, inventory, CRM, admin,
reports, multi tenancy, published datasets (makes solution targeted 
for any

market or geography), etc...

We have expressed privately that Ofbiz needs to have a new mission in
order to really drive it's importance and relevance as an open source
project. As it stands, it's scope is very wide, and not targeted a
providing and out-of-the box solution to any problem, save 
ecommerce (even

then, lot's of styling work usually needed).

We would be 100% behind this direction for Ofbiz. We'd want to 
contribute
back components now that are Emforium proprietary and would work to 
reduce
the amount of deviation between our proprietary solution and this 
newly

stated direction.

Marc













[OT]Re: Request for Comments: Board Report Dec 2009

2009-12-15 Thread Raj Saini

OpenEJB view of PMC roles and responsibilities

http://osdir.com/ml/dev.openejb.apache.org/2009-07/msg3.html


Ashish Vijaywargiya wrote:

Thanks David & Other PMC members.
Feeling glad to know that you guys have voted in favor of me to become a PMC
member.

Very nice, true feelings and for sure one of the biggest gift of my life.
Thanks once again for making Dec 15 as a memorable day for me.

+1 for the board report - everything looks good to me.
--
Ashish

On Mon, Dec 14, 2009 at 10:52 PM, David E Jones  wrote:

  

I have a draft for the Dec 2009 OFBiz Board Report ready here:


http://cwiki.apache.org/confluence/display/OFBADMIN/ASF+Board+Report+2009-12

If there is anything anyone would like to add, or correct, or whatever,
please let me know! I'll be submitting it later today.

Thanks,
-David





  




[jira] Commented: (OFBIZ-1533) Order Lookup fails with "Order not found with ID [XXXXX], or not allowed to view" message while sending email confirmation from order manager

2009-11-02 Thread Raj Saini (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12772487#action_12772487
 ] 

Raj Saini commented on OFBIZ-1533:
--

Hi Jacques,

I just tested this and original bug has been fixed.

Regarding the URL links I think some the link like have e-commerce hard-coded 
and which may not be a case for every e-commerce site. Most of the e-commerce 
site you will have root context. For orders created form order entry screen, it 
really does not make any sense to to show a URL with ordermgr as customers can 
never view them. Therefore, I think it may be a good idea to remove the link 
all together and instead give the link to the user profile page.

Regarding product link, it makes sense to use the e-commerce site link instead 
of product manager. Again hard coding the "ecommerce" as context is not a good 
idea. I think most of the users needs to customize these templates (we do) and 
use their own URL, that may be the reason no one is interested in this. 

> Order Lookup fails with "Order not found with ID [X], or not allowed to 
> view" message while sending email confirmation from order manager
> -
>
> Key: OFBIZ-1533
> URL: https://issues.apache.org/jira/browse/OFBIZ-1533
> Project: OFBiz
>  Issue Type: Bug
>  Components: order
>Affects Versions: Release Branch 4.0, SVN trunk
>     Environment: Ubuntu 7.10
>Reporter: Raj Saini
>Assignee: Jacques Le Roux
>Priority: Minor
> Attachments: orderstatus.bsh-trunk.patch, 
> orderstatus.bsh.branch-4.0.patch
>
>
> order lookup fails and following messages, while sending email confirmation 
> from the order manager for orders created through the e-commerce or the order 
> entry.
> "Order not found with ID [X], or not allowed to view"  where [X] is 
> the order id.
> How to reproduce:
> 1. Create an order form e-commerce by logging in (as registered user).
> 2. Goto the order manager and login with FULLADMIN or ORDERADMIN security 
> group permission.
> 3. Lookup the newly created order.
> 4. Click on the send confirmation button in the top right area of the order 
> screen.
> 5. It will open up a window with the email text. Email text shows the above 
> message instead of actual order confirmation html.
> 6. You can repeat the above by creating an order from Order Entry as well.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (OFBIZ-2348) I would like to use OFBiz as OSGI

2009-10-27 Thread Raj Saini (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-2348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12770453#action_12770453
 ] 

Raj Saini commented on OFBIZ-2348:
--

Creating a branch is a good idea. However, it is possible for this code to co 
exists within the trunk as major work is creating OSGi bundles from the current 
code base. It would involve using a build tool like Maven for creating the OSGi 
bundle bundles. GenericDelagator and LocalDispatcher may also need to be 
modified to allow each OFBiz component to be bundled as OSGI bundle. This will 
make the OFBiz very modular with clear dependency among various components.

Reason for hosting on SourceForge was for people to download and try as it was 
too big to attach to a Jira issue. Also, code is licensed under Apache 2.0 and 
should not be a problem to bring it into the Apache OFBiz.

> I would like to use OFBiz as OSGI
> -
>
> Key: OFBIZ-2348
> URL: https://issues.apache.org/jira/browse/OFBIZ-2348
> Project: OFBiz
>  Issue Type: Wish
>  Components: ALL COMPONENTS
>Affects Versions: SVN trunk
> Environment: software platform
>Reporter: Chatree Srichart
> Fix For: SVN trunk
>
>
> I would like to use OFBiz as OSGI (Equinox or Apache Felix). My problem is 
> when I edit a little java code in my componet, I must compile all component 
> (if it depend on main build file such common.xml or main ant task) and 
> restart ofbiz. It spend a lot of time for me. If OFBiz as OSGI, It can start 
> separate component and reload only jar file that you just compile any time. 
> If OFBiz use Equinox, It can integrated with Eclipse RCP. I had tried to do 
> that. It work.
> I would like to OFBiz distributer distribute OSGI feature to trunk. Thank you.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (OFBIZ-2348) I would like to use OFBiz as OSGI

2009-10-27 Thread Raj Saini (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-2348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12770413#action_12770413
 ] 

Raj Saini commented on OFBIZ-2348:
--

Hi Jacques,

I understand what you mean and the pre-occupation of the community. This is not 
something can happen quickly. You can think of it a new generation of OFBiz 
like most of the open source or commercial Java EE application server vendors 
are moving to OSGi based kernels. 

Good thing about it is it can co-exists with the current OFBiz. For example, 
the prototype I created did not change a single line of the code in OFBiz. 
Community can keep doing what is being done and at the same time create OSGi 
bundles of the existing application which is mostly a build time effort. This 
is how other projects like ActiveMQ enabling themselves to be used inside OSGi 
containers.

> I would like to use OFBiz as OSGI
> -
>
> Key: OFBIZ-2348
> URL: https://issues.apache.org/jira/browse/OFBIZ-2348
> Project: OFBiz
>  Issue Type: Wish
>  Components: ALL COMPONENTS
>Affects Versions: SVN trunk
> Environment: software platform
>Reporter: Chatree Srichart
> Fix For: SVN trunk
>
>
> I would like to use OFBiz as OSGI (Equinox or Apache Felix). My problem is 
> when I edit a little java code in my componet, I must compile all component 
> (if it depend on main build file such common.xml or main ant task) and 
> restart ofbiz. It spend a lot of time for me. If OFBiz as OSGI, It can start 
> separate component and reload only jar file that you just compile any time. 
> If OFBiz use Equinox, It can integrated with Eclipse RCP. I had tried to do 
> that. It work.
> I would like to OFBiz distributer distribute OSGI feature to trunk. Thank you.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (OFBIZ-2348) I would like to use OFBiz as OSGI

2009-10-26 Thread Raj Saini (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-2348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12770387#action_12770387
 ] 

Raj Saini commented on OFBIZ-2348:
--

I have created a experimental OFBiz and OSGI integration project on sourceforge 
at http://sourceforge.net/projects/ofbiz-osgi. OFbiz is bundled as OSGi Bungle 
(Big one at the moment). Project uses Eclipse Equinox as OSGi Kernel and all 
OFBiz dependencies and OFBiz itself is a OSGi bundle. This is just a proof of 
concept and can really help OFBiz to adapt OSGi based kernel. Few  advantages 
of OSGi kernel could be:

Modularity container for OFBiz component/applications. All OFBiz components 
will be OSGi bundles and deployable as single units instead of a monolithic 
application.

Automatic dependency management of component. Stopping/undeploying will 
automatically stop/un-deploy dependent components.

Start, stop, load, refresh, update the applications in a running container 
without the need of restarting the server.

Dependency injection using OSGi services

Easier integration with other OSGi based application such as ServiceMix V4



> I would like to use OFBiz as OSGI
> -
>
> Key: OFBIZ-2348
> URL: https://issues.apache.org/jira/browse/OFBIZ-2348
> Project: OFBiz
>  Issue Type: Wish
>  Components: ALL COMPONENTS
>Affects Versions: SVN trunk
> Environment: software platform
>Reporter: Chatree Srichart
> Fix For: SVN trunk
>
>
> I would like to use OFBiz as OSGI (Equinox or Apache Felix). My problem is 
> when I edit a little java code in my componet, I must compile all component 
> (if it depend on main build file such common.xml or main ant task) and 
> restart ofbiz. It spend a lot of time for me. If OFBiz as OSGI, It can start 
> separate component and reload only jar file that you just compile any time. 
> If OFBiz use Equinox, It can integrated with Eclipse RCP. I had tried to do 
> that. It work.
> I would like to OFBiz distributer distribute OSGI feature to trunk. Thank you.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (OFBIZ-1560) Promotion rule for quantity discount not working

2009-10-26 Thread Raj Saini (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12770381#action_12770381
 ] 

Raj Saini commented on OFBIZ-1560:
--

Hi Jacques,

Sorry, I could not get the time so far. I will work on it during this week and 
update you.

Thanks

> Promotion rule for quantity discount not working
> 
>
> Key: OFBIZ-1560
> URL: https://issues.apache.org/jira/browse/OFBIZ-1560
> Project: OFBiz
>  Issue Type: Bug
>  Components: product, specialpurpose/ecommerce
>Affects Versions: SVN trunk
> Environment: Firefox 2.0, Ubuntu 7.10
>Reporter: Raj Saini
>Assignee: Jacques Le Roux
>Priority: Minor
> Attachments: OFBIZ-1560.patch, OFBIZ-1560.patch
>
>
> Promotion rule for quantity discount does not work properly. For example if 
> the X product in shopping cart has Qty >= Y, apply  Z% discount to all the 
> quantities in the shopping cart. 
> I have created the following action to achieve the above:
> X Product for Y% discount - Can get the discounted price but this promotion 
> applies to every item i.e. it does not consider the minimum quantity limit.
> If I create the following condition:
> X quantity of Product  - It does apply the minimum quantity condition but 
> applies discount to the item above X. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (OFBIZ-1560) Promotion rule for quantity discount not working

2009-10-20 Thread Raj Saini (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12767744#action_12767744
 ] 

Raj Saini commented on OFBIZ-1560:
--

Hi Jacques,

I did not looked at the latest code as I had used some work around. I would be 
glad to test again if you want me to.

> Promotion rule for quantity discount not working
> 
>
> Key: OFBIZ-1560
> URL: https://issues.apache.org/jira/browse/OFBIZ-1560
> Project: OFBiz
>  Issue Type: Bug
>  Components: product, specialpurpose/ecommerce
>Affects Versions: SVN trunk
> Environment: Firefox 2.0, Ubuntu 7.10
>Reporter: Raj Saini
>Assignee: Jacques Le Roux
>Priority: Minor
> Attachments: OFBIZ-1560.patch
>
>
> Promotion rule for quantity discount does not work properly. For example if 
> the X product in shopping cart has Qty >= Y, apply  Z% discount to all the 
> quantities in the shopping cart. 
> I have created the following action to achieve the above:
> X Product for Y% discount - Can get the discounted price but this promotion 
> applies to every item i.e. it does not consider the minimum quantity limit.
> If I create the following condition:
> X quantity of Product  - It does apply the minimum quantity condition but 
> applies discount to the item above X. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



Re: not serving a particular browser version

2009-10-20 Thread Raj Saini
You will need to do it on very beginning of every page. header.ftl is 
the place you can put your code. header.ftl is part of the theme for 
9.04 and trunk.


Thanks,

Raj

aswath narayana wrote:

Any ideas on this...
My ecommerce pages are very bad in IE7.  Hence, I don't want to support
IE7.
Where are the hooks to provide this kind of check?

Thanks a lot.
Aswath

On Mon, Oct 19, 2009 at 12:08 PM, aswath narayana <
aswath.satras...@gmail.com> wrote:

  

Hello,
I don't want to support IE7, so I want to display a message to the user
saying
'use IE8, firefox etc.'

How can this be done

Regards
-Aswath




  




Re: steps for payemnt gateway integration

2009-07-30 Thread Raj Saini

Amit,

You will need to implement various payment gateway services to integrate 
a payment gateway. OFBiz has many payment gateways out of the box. I 
would suggest to base your implementation on one of the payment gateway 
which is similar to yours. If you are in India, you will also need to 
implement 3D secure which has been made mandatory by reserve bank of 
India from 1st Aug 2009.


Thanks,

Raj

Amit Bhalla wrote:

Hi,Can any one tells me the steps to integrate a "XYZ" payment gateway with
ofbiz.

Thanks in advance.

Amit

  




[jira] Commented: (OFBIZ-2644) syntax is incorrect

2009-06-22 Thread Raj Saini (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-2644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722670#action_12722670
 ] 

Raj Saini commented on OFBIZ-2644:
--

Hi Harmeet,

Why do you think   is incorrect? As far as I 
know this is correct XML.  Any elements XML element not having sub-elements can 
be closed like this. For example this is the case for  and  . 


>  syntax is incorrect
> --
>
> Key: OFBIZ-2644
> URL: https://issues.apache.org/jira/browse/OFBIZ-2644
> Project: OFBiz
>  Issue Type: Bug
>Reporter: Harmeet Bedi
>Priority: Trivial
> Fix For: SVN trunk
>
> Attachments: EditCategoryFeatureCats.ftl.diff
>
>
> use to be widespread earlier found this only in one spot in trunk. Attaching 
> patch.
>  is incorrect syntax
> but 
>  is right

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



Re: Use Prototype or JQuery for Ajax goodies

2009-06-02 Thread Raj Saini

Hi Ashish,

Raj, Thanks for sharing your thoughts on this. I haven't looked too much
details about JQuery.
What about your vote? Which one is good to become part of OFBiz trunk
Prototype or JQuery ?

--
Ashish

  
I would like go with JQuery as it is light weight, modular and feature 
rich. Dojo is good but some time it is a overkill. I have not worked 
much with Prototype though.


Thanks,

Raj



Re: Use Prototype or JQuery for Ajax goodies

2009-06-02 Thread Raj Saini



I liked this approach instead of removing one because some features could be
handled very nicely in Protype and some in JQuery.
It is my personal opinion but I am also fine if we remove Prototype after
migration is done to JQuery.


  
There is some conflict in JQuery and Prototype (I think init method 
called on page load) and it may not be possible keep them side by side.


Thanks,

Raj



Re: Cyclic dependency between Entity engine and Service engine

2009-05-05 Thread Raj Saini
Sorry Adam, it was my mistake as I got confused with the logged stack 
trace and added entityext as dependency to entity component.


Thanks,

Raj

Adam Heath wrote:

Raj Saini wrote:
  

Hi Adam,

Yes, this is a problem inside a OSGi Bundle. This makes the entity
engine bundle depends on service engine bundle.



How can it be a problem?  The attempted class load is done in a try
catch, and if not found, ofbiz continues processing.  Are you saying
that any osgi bundle can't do any dynamic configuration, looking for
possible non-existant classes, and then auto-configure itself if it
does or does not find them?  If so, that is broken.


  




Re: Cyclic dependency between Entity engine and Service engine

2009-05-04 Thread Raj Saini

Hi Adam,

Yes, this is a problem inside a OSGi Bundle. This makes the entity 
engine bundle depends on service engine bundle.


Thanks,

Raj

Huh?  There are no circular deps during the compile.  That class is
only referenced by use of a String.  GenericDelegator then tries to
load the class, and if it fails, just issues a warning.

So, is this really a problem?  I don't see that it is.


  




Cyclic dependency between Entity engine and Service engine

2009-05-04 Thread Raj Saini

Hi,

I am working on experimental project to run the OFBiz framework in a 
OSGi kernel and thereby creating OSGi bundle from various framework 
components. I have created bundles for entity and service engine and 
could launch entity and service engine as OSGi Service. Although  entity 
engine is fairly independent of service engine at compile, there is run 
time circular dependency though entityext component because 
org.ofbiz.entity.config.DelegatorInfo class (in entity component)  
depends on org.ofbiz.entityext.cache.EntityCacheServices and 
org.ofbiz.entityext.cache.EntityCacheServices.depends on LocalDispatcher 
class of service engine.


This circular dependency is stopping me a creating separate bundle for 
entity and service engine. Is it possible to remove this dependency to 
keep the entity engine independent of service engine?


Thanks,

Raj





Re: Microsoft NAV look and feel

2009-05-01 Thread Raj Saini

Hi Ean,

This is very much possible using Eclipse RAP. I did basic level of 
integration (Wrote a view handler for RAP). You can see some of the 
demos here:


http://www.eclipse.org/rap/demos.php

Thanks,

Raj

Ean Schuessler wrote:
I really like what Microsoft NAV is doing in their interfaces. If we do something like this using GWT it would be suh-lick! 

http://www.microsoft.com/library/media/1033/business/images/dynamics/screenshotimages/PivotTable.jpg 

  




[jira] Commented: (OFBIZ-1560) Promotion rule for quantity discount not working

2009-03-01 Thread Raj Saini (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12677905#action_12677905
 ] 

Raj Saini commented on OFBIZ-1560:
--

Hi Jacques,

It mean to apply the Z% discount to all the quantities of the X product.

Let me explain a bit what I wanted to achieve. Let us say we want to offer a 
quantity discount if a customer buys  minimum five number of product X. If 
customer buys just four numbers we don't want to give this discount. And the 
discount is Z% of the product price. This was not working when I tested it 
(almost one year back). The problem was the price % discount was applied 
irrespective of the number of items in the cart. For example if a customer buys 
just one number of the product X, Z% discount was offered.

For condition I used "X Quantities Product" Is Greater Than or Equal is 

For Action I used "X Product for Y Discount" 

Thanks



> Promotion rule for quantity discount not working
> 
>
> Key: OFBIZ-1560
> URL: https://issues.apache.org/jira/browse/OFBIZ-1560
> Project: OFBiz
>  Issue Type: Bug
>  Components: ecommerce, product
>Affects Versions: SVN trunk
> Environment: Firefox 2.0, Ubuntu 7.10
>Reporter: Raj Saini
>Priority: Minor
>
> Promotion rule for quantity discount does not work properly. For example if 
> the X product in shopping cart has Qty >= Y, apply  Z% discount to all the 
> quantities in the shopping cart. 
> I have created the following action to achieve the above:
> X Product for Y% discount - Can get the discounted price but this promotion 
> applies to every item i.e. it does not consider the minimum quantity limit.
> If I create the following condition:
> X quantity of Product  - It does apply the minimum quantity condition but 
> applies discount to the item above X. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (OFBIZ-2146) Quote to order - manual adjustments amount not included in cart grand total

2009-02-16 Thread Raj Saini (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-2146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674063#action_12674063
 ] 

Raj Saini commented on OFBIZ-2146:
--

Hi Jacques and Bilgin,

I am out of the office for a week and could not look test it personally. 
However, I has asked one of my team member to test and he confirmed that it is 
working. I will look into it next week and will update you.



> Quote to order - manual adjustments amount not included in cart grand total
> ---
>
> Key: OFBIZ-2146
> URL: https://issues.apache.org/jira/browse/OFBIZ-2146
> Project: OFBiz
>  Issue Type: Bug
>  Components: order
>Affects Versions: SVN trunk
> Environment: Ubuntu 8.10, Firefox 3.0.5Quote to order - manual 
> adjustments amount not included in cart grand total
>Reporter: Raj Saini
>Assignee: Bilgin Ibryam
> Attachments: order.diff
>
>
> While creating a order from a quote with a manual adjustment of shipping 
> charges, the adjustment amount is not included in the cart grand total. 
> Although manual adjustments are copied to order adjustment and added to cart 
> adjustment (ShoppingCartService.java, lines 676-781), they are filtered out 
> while calculating the maxAmount for OrderPaymentPreference when calling the 
> cart.getOrderOtherAdjustmentTotal() method which in turns calls the 
> OrderReadHelper.calcOrderAdjustments(List orderHeaderAdjustments, BigDecimal 
> subTotal, boolean includeOther, boolean includeTax, boolean includeShipping). 
> This method filters out the SHIPPING_CHARGES order adjustment as 
> includeShipping parameter is always true.
> One way to solve the problem is to use the value of includeInShipping field 
> from OrderAdjsutment entity in  OrderHelper#filterOrderAdjustments(List 
> adjustments, boolean includeOther, boolean includeTax, boolean 
> includeShipping, boolean forTax, boolean forShipping) method and setting this 
> to true in QuoteAdjustment entity. (quote adjustments are copied to order 
> adjustment by loadCartFromQuote service). However, doing so wrongly shows the 
> shipping charges twice in the Order view and also add the shipping charges to 
> the total tax whereas the grand total remains correct. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



Re: different approach to remote UI

2009-02-06 Thread Raj Saini
Last week, I integrate Eclipse RAP (http://www.eclipse.org/rap/) with 
OFBiz to tryout the the cool AJAX and OSGi stuff. The rapdemo 
application worked well. This could be a good alternative to the desktop 
rich client application (Of course not the default OFBiz UI).


Thanks,

Raj

BJ Freeman wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

it is a combination applet/application that can be detached from a
webpage and used Standalone.
there is one module in it that communicates with ofbiz as you say
client/server, but not in the traditional way. That is the one the is
mostly updated.
What it achieves is very loose coupling to ofbiz. It only deals with
data presented from ofbiz webpages and Sending Data back as if a user
did something on the ofbiz webpage.

so I have a very rich UI for the user. Similar to the Eclipse UI.


Bruno Busco sent the following on 2/5/2009 11:57 AM:
  

BJ,
I am interested in better understand how the architecture you describe works.
Is this a client-server architecture?
I mean a java swing application running on the client that make
requestes to the OFBiz server?

Thank you,
-Bruno

2009/2/5 BJ Freeman :
I agree with David.
But if someone want to go to the trouble of doing the code I don't see
why it can't be put in the jira for someone to use if they want to.
Just as a heads up I use the current screens in my remote UI(java swing).
my app reads the screens, generates the equivalent in the UI i have, and
sends the changes as if a user does it.
This allows ofbiz to keep it dynamics, and allow my users to have a
intuitive UI.

As ofbiz screens change at the browser level, then I have one module in
my code that gets updated.

as far as "Remote" UI's I think they should be designed at arms length
to ofbiz.
that is what SOap is suppose to do.
so maybe getting Soap more robust would be one way.

David E Jones sent the following on 2/4/2009 4:33 PM:


On Feb 4, 2009, at 3:49 PM, Bruno Busco wrote:

  

...and GWT is Apache licensed !


That does make is easier to include... but isn't really a reason to use
it... ;)


  

2009/2/4 Bruno Busco 



Well...
...to have something similar to this in the OFBiz UI :
http://opensourcestrategies.com/images/opentaps_gwt_demo.htm
  

I don't know about others, but so far if OSS decides to do something in
opentaps I take it as a good reason to NOT do the same in OFBiz. :)

Quite a few of the things in that little recording are already supported
in the form and screen widgets (with demos in the Example app), and
other things could certainly be done.

The question is... how does GWT compare to other options? You can
probably find dozens of emails on this topic in the archives if you're
interested (ie comparing them to other JavaScript/AJAX libraries like
prototype and dojo and such).

AFAIK no one has done an adequate comparison of these technologies for
what we want to do in OFBiz (or what users of OFBiz want to do, more to
the point), but IMO we have more flexibility with our current tools, and
not requiring the translation it makes it easier to debug and do funky
things if needed... and as for overall development efficiency... I
dunno, but my guess is the current approach is better so unless we find
good reasons to move to GWT or something pushes it and does neat things
with it that make it into the project, we probably won't use it much.

-David


  

2009/2/4 David E Jones 


  

What for?

-David



On Feb 4, 2009, at 2:52 PM, Bruno Busco wrote:

It seems opentaps is going to use GWT.


Shouldn't we consider using it?
-Bruno

2009/2/2 Jeroen van der Wal 

Dear Harmeet,
  

Your GWT approach sounds promising. Could you share more details with
us on how you did it and perhaps supply some code?

Thanks,
-Jeroen


On Sat, Jan 24, 2009 at 2:27 PM, Bilgin Ibryam 
wrote:



Hi Harmeet,

Can you show any demo or POC code for gwt integrated with ofbiz?
Do you need to compile and deploy javascipt files in ofbiz after
every
change in the screens?
Thanks in advance

Bilgin

On Dec 1, 2008, at 4:50 AM, Harmeet Bedi wrote:

There are a few libraries that are rich with widgets in GWT that can
  

be
applied. We started with gxt : http://extjs.com/products/gxt/. Some



other
good candidates are smartgwt ( http://code.google.com/p/smartgwt/ )
  

and
default GWT toolkit and associated google projects have some decent



widgets
too. (GWT is under apache license so compatible).
  

It would be very nice if Ofbiz team can consider more GWT. We could
provide code.. developer help etc. to promote this.
We could start with creating a demo that you can see and see if you
want
to evaluate this direction more. I feel GWT + HTML is a very good
choice



for
people writing java servers.
 

[jira] Created: (OFBIZ-2146) Quote to order - manual adjustments amount not included in cart grand total

2009-01-28 Thread Raj Saini (JIRA)
Quote to order - manual adjustments amount not included in cart grand total
---

 Key: OFBIZ-2146
 URL: https://issues.apache.org/jira/browse/OFBIZ-2146
 Project: OFBiz
  Issue Type: Bug
  Components: order
Affects Versions: SVN trunk
 Environment: Ubuntu 8.10, Firefox 3.0.5Quote to order - manual 
adjustments amount not included in cart grand total
Reporter: Raj Saini


While creating a order from a quote with a manual adjustment of shipping 
charges, the adjustment amount is not included in the cart grand total. 
Although manual adjustments are copied to order adjustment and added to cart 
adjustment (ShoppingCartService.java, lines 676-781), they are filtered out 
while calculating the maxAmount for OrderPaymentPreference when calling the 
cart.getOrderOtherAdjustmentTotal() method which in turns calls the 
OrderReadHelper.calcOrderAdjustments(List orderHeaderAdjustments, BigDecimal 
subTotal, boolean includeOther, boolean includeTax, boolean includeShipping). 
This method filters out the SHIPPING_CHARGES order adjustment as 
includeShipping parameter is always true.

One way to solve the problem is to use the value of includeInShipping field 
from OrderAdjsutment entity in  OrderHelper#filterOrderAdjustments(List 
adjustments, boolean includeOther, boolean includeTax, boolean includeShipping, 
boolean forTax, boolean forShipping) method and setting this to true in 
QuoteAdjustment entity. (quote adjustments are copied to order adjustment by 
loadCartFromQuote service). However, doing so wrongly shows the shipping 
charges twice in the Order view and also add the shipping charges to the total 
tax whereas the grand total remains correct. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



Re: SOA and EDA

2009-01-17 Thread Raj Saini
I see the events in a event-driven system are emitted by some sources 
(or agents) and consumed by consumers ( sinks). Sinks have the 
responsibility of applying a reaction as soon as an event is presented. 
Generally, event are transmitted among loosely coupled software 
components. One important think to note here is that source and sinks 
may not be aware of each other in the event processing and hence this 
results in the highly modular and loosely coupled applications.


I apologizes if I am wrong but I see ECAs as interceptors similar to the 
aspect oriented stuff and they are triggered as part of the call to service.


Thanks,

Raj

David E Jones wrote:


It would not be correct to say that EDA (Event Driven Architecture) 
and ECA (Event-Condition-Action rules) are the same thing. It would be 
correct to say that ECA Rules are one way of implementing an 
event-driven architecture (EDA).


If you look at how ECA rules are used in OFBiz you'll see it is very 
consistent with the general EDA concepts. With all logic flowing 
through the Service Engine in OFBiz it becomes a natural hub for 
business events, and ECA rules allow us to do things based on those 
business events.


If you disagree, please do share. How is your vision of an EDA 
different from how we use ECA rules in OFBiz?


-David


On Jan 17, 2009, at 9:07 PM, Raj Saini wrote:

Is ECA same as EDA? I feel ECAs in OFBiz are more like 
interceptors/triggers where are EDA is all together a different 
architecture pattern. This is a good document explain EDA:


http://www.eaipatterns.com/docs/EDA.pdf

Thanks,

Raj

Jacques Le Roux wrote:
I think, as a marketing effort, we should put 2-3 sentences about 
SOA (Service Oriented Architecture) and EDA (Event Driven 
Architecture) OFBiz's features on main site, in "Introduction: What 
is Apache OFBiz?" section for instance.
Buzz words (acronyms nowadays) can't hurt if we want more 
recognition. And it's easier to be understood by using SOA acronym 
than Service Engine and especially EDA instead of ECA. Of course a 
sentence explaining quickly both concepts is needed.


Any takers ? (several would be better...)

Jacques










Re: SOA and EDA

2009-01-17 Thread Raj Saini
Is ECA same as EDA? I feel ECAs in OFBiz are more like 
interceptors/triggers where are EDA is all together a different  
architecture pattern. This is a good document explain EDA:


http://www.eaipatterns.com/docs/EDA.pdf

Thanks,

Raj

Jacques Le Roux wrote:

I think, as a marketing effort, we should put 2-3 sentences about SOA (Service Oriented 
Architecture) and EDA (Event Driven Architecture) OFBiz's features on main site, in 
"Introduction: What is Apache OFBiz?" section for instance.
Buzz words (acronyms nowadays) can't hurt if we want more recognition. And it's 
easier to be understood by using SOA acronym than Service Engine and especially 
EDA instead of ECA. Of course a sentence explaining quickly both concepts is 
needed.

Any takers ? (several would be better...)

Jacques
  




Re: Discussion: ESB or ServiceMix Integration

2009-01-09 Thread Raj Saini

David E Jones wrote:
To me loose coupling means that the applications share nothing... they 
exclusively communicate through messages or services and have minimal 
dependencies on each other. Loose coupling is not always a good thing. 
Loose coupling of things that are closely related, or that are the 
same thing from different aspects or angles, results in redundancy and 
inconsistency.
This is a good article how Event driven Architecture (EDA) can fit into 
a Enterprise System.


http://www.eaipatterns.com/docs/EDA.pdf

Thanks,

Raj



-David







Re: Discussion: ESB or ServiceMix Integration

2009-01-08 Thread Raj Saini

I see two possible scenarios where ESB can be used in OFBiz:

1. Internally to make OFBiz applications to talk to each other. This 
will make OFBiz more modular and applications loosely coupled.


2. Make external applications talk to OFBiz.

ServiceMix ESB implements Java ESB standard called Java Business 
Integration (JBI). Therefore, it should be JBI integration and not the 
particular ESB such as ServiceMix.


Thanks,

Raj

David E Jones wrote:


I've been looking into some of these for a while now (ServiceMix, as 
well as others that have existed over the years). The basic problem 
is: what will we do with them?


Usually an ESB is used within an organization to integrate various 
applications by trying to get all of the applications to talk to the 
ESB. OFBiz would just be one of those applications. It would be great 
to make sure we could talk effectively to ServiceMix and/or other 
ESBs, but of less value to actually include ServiceMix into OFBiz.


In short we want to work well with ESBs, but if an organization 
needs/wants an ESB then they will probably choose than independently 
of whatever OFBiz or any other application offers. In other words, it 
is of more value to work with a variety of ESBs than to include any.


On a related note, if want ServiceMix compatibility we should do that 
without any ServiceMix libraries. The whole point is loose coupling, 
and if we get working well with ServiceMix in a loosely coupled way 
we'll have a better chance of working well with other app servers.


One interesting project we may want to include in OFBiz in order to 
work better with external service environments is CXF. It has 
libraries for exposing services with a wide variety of standards 
support, and for consuming services available from a wide variety of 
standards. The only question I had based on limited research of it was 
whether or not we could interact with it at a low enough level to be 
able to automatically expose Service Engine services in a variety of 
ways, and also map incoming service calls of various types of OFBiz 
Service Engine services (like we do with XML-RPC and to some extend 
with Axis for SOAP).


-David


On Jan 8, 2009, at 9:49 AM, Adrian Crum wrote:

Anil sent out an email some time ago with the subject "Application 
framework technology set" in which he started a discussion on new 
technologies that could be used in OFBiz. One of the technologies 
mentioned - Enterprise Service Bus - received several "+1" responses, 
so I thought I would get the discussion started on that one technology.


Apache's ServiceMix was suggested as one solution to implementing 
ESB. Should we start looking at that? Or are there other alternatives 
that would be better?


Does anyone have experience using ESB who would be willing to 
coordinate the integration effort?


I'm willing to help with this effort. Is anyone else available?

-Adrian







[jira] Commented: (OFBIZ-2072) Search is broken in the party manager application when logged in as any user other than admin

2009-01-02 Thread Raj Saini (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660301#action_12660301
 ] 

Raj Saini commented on OFBIZ-2072:
--

Just verified your code and it is getUserPreferenceGroup service instead of 
setUserPreferenceGroup.

> Search is broken in the party manager application when logged in as any user 
> other than admin
> -
>
> Key: OFBIZ-2072
> URL: https://issues.apache.org/jira/browse/OFBIZ-2072
> Project: OFBiz
>  Issue Type: Bug
>  Components: site
>Affects Versions: SVN trunk
> Environment: Ubuntu 8.10, Firefix 3.0.4
>Reporter: Raj Saini
> Attachments: Screenshot.png
>
>
> Party search is broken in the party manager application when any other user 
> than the one with Full Admin permissions.
> How to reproduce:
> 1. Login as flexadmin https://demo.hotwaxmedia.com/partymgr/ application
> 2. Search the party using any field (party id, login id or first name, last 
> name).
> 3. Search results shows a error page.
> See the attached screen shot 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (OFBIZ-2072) Search is broken in the party manager application when logged in as any user other than admin

2009-01-02 Thread Raj Saini (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660300#action_12660300
 ] 

Raj Saini commented on OFBIZ-2072:
--

Hi Jacques,

Sorry, I thought it would be a quick one and  did not test it with the latest 
revision. I will do that now and submit the patch.

Thanks,

Raj




> Search is broken in the party manager application when logged in as any user 
> other than admin
> -
>
> Key: OFBIZ-2072
> URL: https://issues.apache.org/jira/browse/OFBIZ-2072
> Project: OFBiz
>  Issue Type: Bug
>  Components: site
>Affects Versions: SVN trunk
> Environment: Ubuntu 8.10, Firefix 3.0.4
>Reporter: Raj Saini
> Attachments: Screenshot.png
>
>
> Party search is broken in the party manager application when any other user 
> than the one with Full Admin permissions.
> How to reproduce:
> 1. Login as flexadmin https://demo.hotwaxmedia.com/partymgr/ application
> 2. Search the party using any field (party id, login id or first name, last 
> name).
> 3. Search results shows a error page.
> See the attached screen shot 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (OFBIZ-2072) Search is broken in the party manager application when logged in as any user other than admin

2009-01-02 Thread Raj Saini (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660286#action_12660286
 ] 

Raj Saini commented on OFBIZ-2072:
--

I fixed this by changing the userLoginId to userPrefLoginid on line #446 
framework/common/servicedef/service.xml file. I tested and it is working fine 
so far.

> Search is broken in the party manager application when logged in as any user 
> other than admin
> -
>
> Key: OFBIZ-2072
> URL: https://issues.apache.org/jira/browse/OFBIZ-2072
> Project: OFBiz
>  Issue Type: Bug
>  Components: site
>Affects Versions: SVN trunk
> Environment: Ubuntu 8.10, Firefix 3.0.4
>Reporter: Raj Saini
> Attachments: Screenshot.png
>
>
> Party search is broken in the party manager application when any other user 
> than the one with Full Admin permissions.
> How to reproduce:
> 1. Login as flexadmin https://demo.hotwaxmedia.com/partymgr/ application
> 2. Search the party using any field (party id, login id or first name, last 
> name).
> 3. Search results shows a error page.
> See the attached screen shot 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Created: (OFBIZ-2081) Security Code in new payment from order manager application

2008-12-15 Thread Raj Saini (JIRA)
Security Code in new payment from order manager application
---

 Key: OFBIZ-2081
 URL: https://issues.apache.org/jira/browse/OFBIZ-2081
 Project: OFBiz
  Issue Type: Improvement
  Components: order
Affects Versions: SVN trunk
 Environment: Ubuntu 8.10, Firefox 3.0.4
Reporter: Raj Saini
 Fix For: SVN trunk


Order view screen has a form to add new payments to the existing order. 
However, in the case of a credit card there is no security code field and due 
to missing security code, payment authorizations are denied by the payment 
processor.  This issue is propose to add the security code to the add payment 
form


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (OFBIZ-2072) Search is broken in the party manager application when logged in as any user other than admin

2008-12-14 Thread Raj Saini (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656545#action_12656545
 ] 

Raj Saini commented on OFBIZ-2072:
--

I will be taking this up during this week. 

> Search is broken in the party manager application when logged in as any user 
> other than admin
> -
>
> Key: OFBIZ-2072
> URL: https://issues.apache.org/jira/browse/OFBIZ-2072
> Project: OFBiz
>  Issue Type: Bug
>  Components: site
>Affects Versions: SVN trunk
> Environment: Ubuntu 8.10, Firefix 3.0.4
>Reporter: Raj Saini
> Attachments: Screenshot.png
>
>
> Party search is broken in the party manager application when any other user 
> than the one with Full Admin permissions.
> How to reproduce:
> 1. Login as flexadmin https://demo.hotwaxmedia.com/partymgr/ application
> 2. Search the party using any field (party id, login id or first name, last 
> name).
> 3. Search results shows a error page.
> See the attached screen shot 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



Re: Grey list in OFBiz [was Re: Discussion: Permissions Checking Enhancement]

2008-12-12 Thread Raj Saini

Gray and Grey is same as color and colour.

http://www.answers.com/main/ntquery?s=grey&gwp=13

Thanks,

Raj

Jacques Le Roux wrote:

From: "Adrian Crum" 
Maybe we should also decide on whether it is spelled "grey" or 
"gray." ;-)


I fight hard to write correctly grey but as with prodcut most of the 
time I failed and write gray (here I must say I"m not a Dyslexic). For 
prodcut I don't know why (though I suspect our hands to be used to the 
word cut) but have a look at 
http://www.nabble.com/forum/Search.jtp?local=y&forum=2740&query=prodcut 
: I'm not the only one :D


For gray may be I'm influenced by Scott's name ?

Jacques


-Adrian

Jacques Le Roux wrote:
I think the phrase "grey list" is easier to speak about this 
functionnality and easier to understand and remember. So I propose to
use it rather than the tarpit word when speaking about this at large 
(I will change Entities names, fields, etc. accordinlgly when 
appropriate)


As we use a prepocessor, to avoid any bad surprise later, I propose 
we introduce in site-conf.xsd an attribute allowGrayList in
request-map element. It would work like track-visit and 
track-serverhit being true by default (though I wonder if we should 
not do

reverse to false).

Jacques











[jira] Updated: (OFBIZ-2072) Search is broken in the party manager application when logged in as any user other than admin

2008-12-09 Thread Raj Saini (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Raj Saini updated OFBIZ-2072:
-

Attachment: Screenshot.png

Error page screenshot

> Search is broken in the party manager application when logged in as any user 
> other than admin
> -
>
> Key: OFBIZ-2072
> URL: https://issues.apache.org/jira/browse/OFBIZ-2072
> Project: OFBiz
>  Issue Type: Bug
>  Components: site
>Affects Versions: SVN trunk
> Environment: Ubuntu 8.10, Firefix 3.0.4
>Reporter: Raj Saini
> Attachments: Screenshot.png
>
>
> Party search is broken in the party manager application when any other user 
> than the one with Full Admin permissions.
> How to reproduce:
> 1. Login as flexadmin https://demo.hotwaxmedia.com/partymgr/ application
> 2. Search the party using any field (party id, login id or first name, last 
> name).
> 3. Search results shows a error page.
> See the attached screen shot 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Created: (OFBIZ-2072) Search is broken in the party manager application when logged in as any user other than admin

2008-12-09 Thread Raj Saini (JIRA)
Search is broken in the party manager application when logged in as any user 
other than admin
-

 Key: OFBIZ-2072
 URL: https://issues.apache.org/jira/browse/OFBIZ-2072
 Project: OFBiz
  Issue Type: Bug
  Components: site
Affects Versions: SVN trunk
 Environment: Ubuntu 8.10, Firefix 3.0.4
Reporter: Raj Saini


Party search is broken in the party manager application when any other user 
than the one with Full Admin permissions.

How to reproduce:

1. Login as flexadmin https://demo.hotwaxmedia.com/partymgr/ application
2. Search the party using any field (party id, login id or first name, last 
name).
3. Search results shows a error page.

See the attached screen shot 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



Re: Application framework technology set

2008-11-10 Thread Raj Saini
+1, yes it would be nice to have this discussion and wider community 
participation.


Thanks,

Raj

Adrian Crum wrote:

Raj Saini wrote:

Adrian Crum wrote:
I spent a little time looking at ServiceMix. It seems to duplicate a 
lot of the OFBiz infrastructure - which may be good or bad. It has 
its own application server container and persistence engine. Maybe 
we could create our own ESB based on whatever persistence layer 
OFBiz uses (Entity Engine or some future existing library) and JBI.


I really like the idea of OFBiz implementing ESB - an OFBiz user 
could easily plug in additional ESB applications.


-Adrian
  


I don't think ServicMix has their own persistence and service layers. 
ServiceMix is implementation of Java Business Integration (JBI) What 
they have are called Binding Components (BC)and Service Engines (SE). 
I see OFBiz applications as another BEs and communicating to each 
other using JBI standards.


Also, we can run service mix as standalone as well as embedded 
container. For example Apache Geronimo application server embeds 
ServiceMix. ServiceMix 4.0 will support OSGi components.


Thanks Raj! I saw that the ServiceMix download included Jetty and 
Hibernate. I admit I don't know enough about it - so I didn't realize 
those were optional.


If there is enough interest, it would be nice to get a discussion 
going in a Jira issue or on the Wiki.


-Adrian





Re: Application framework technology set

2008-11-09 Thread Raj Saini

Adrian Crum wrote:

I spent a little time looking at ServiceMix. It seems to duplicate a lot of the 
OFBiz infrastructure - which may be good or bad. It has its own application 
server container and persistence engine. Maybe we could create our own ESB 
based on whatever persistence layer OFBiz uses (Entity Engine or some future 
existing library) and JBI.

I really like the idea of OFBiz implementing ESB - an OFBiz user could easily 
plug in additional ESB applications.

-Adrian
  


I don't think ServicMix has their own persistence and service layers. 
ServiceMix is implementation of Java Business Integration (JBI) What 
they have are called Binding Components (BC)and Service Engines (SE). I 
see OFBiz applications as another BEs and communicating to each other 
using JBI standards.


Also, we can run service mix as standalone as well as embedded 
container. For example Apache Geronimo application server embeds 
ServiceMix. ServiceMix 4.0 will support OSGi components.


Thanks,

Raj




  

  




Re: Application framework technology set

2008-10-24 Thread Raj Saini
Thanks Anil for starting this thread. I have been asking these very 
questions many time while working on the OFBiz. Your POV about the 
concentration on applications instead of the framework is something very 
interesting. I found OFBiz community two good things about the OFBiz and 
community. OFBiz data model and domain knowledge of the community is is 
great. Therefore, community can certainly leverage on these two.


Though this may be premature to discuss specif technologies to be used, 
however, I would like to mention that OSGi based component model and 
Enterprise Service Bus (ESB) may be two interesting technologies to 
think about.


http://servicemix.apache.org/introduction-to-esb.html
http://java.sys-con.com/node/117740?page=1


Thanks,

Raj


Anil Patel wrote:

Hi,
I am having little difficulty to envision, What Ofbiz will look like a 
year or two down the road?


I am personally satisfied with most of core technologies of ofbiz 
except for Form widget. Form widgets needs some enhancements and even 
those don't seem too difficult. Ofbiz framework technologies made 
development lot easy back in day when J2EE made things impossible. 
Now, 7 years down the road, Java enterprise application development 
tool set has changed a lot.  What I am trying to get out of this 
thread is, What others in community think about it?"


At different times, people have asked for ability to deploy ofbiz on 
application servers other then Tomcat, and in JEE recommended style, 
like create war or ear. I am curious what did these people do? Did we 
loose those potential ofbiz users!, Or Did they accept whatever is 
available and used ofbiz to solve their business problems.


There are some JEE spec compliant technologies that we can use instead 
of home grown like,  use

1) Ice Faces (or Myfaces) instead of Form Widget
2) JPA instead of Entity engine
3) EJB instead of Service engine
4) Integrate with Pluto for Portal server
5) use third party Content management

I think Ofbiz community is more interested in solving business process 
problems instead of building cool framework. We can focus much more on 
business problems if we utilize third party framework technologies. 
Some of the frameworks have excellent support from IDE venders, great 
books are available to learn, existing pool of skilled developers and 
many more goodies that we all know.


Open source ERP space is growing. We need to think fresh. Take a 
break, Plan for next 5 years, Set our goals.  All other open source 
ERP/CRM applications are doing it. There is no corporation behind 
ofbiz so its community's responsibility. Put a plan together. Make it 
easy for people to contribute. I am sure there are tons of people in 
community who want to contribute but don't know how.


I am worried because, After working on minilang, screen widgets, form 
widgets,  service engine, entity engine for so long I almost forgot 
Java/J2EE skills set. What if Ofbiz does not remain as popular 5 years 
down the road, How am I going to pay for my daughters college expenses?


This email is not intended to hurt anybody's feeling or scare anybody. 
Ofbiz is in great shape, I wanted to get people to speak up and help 
plan for future.


Thanks and Regards
Anil Patel




Re: [Fwd: Re: I want to discuss integration 3D Secure Credit Card with ofbiz.]

2008-10-20 Thread Raj Saini

David E Jones wrote:


With 3D Secure, if they use the same username/password that you use 
for online banking and you can't opt out of 3D Secure, then you get to 
move to a bank that doesn't do 3D Secure, or deal with the fact that 
if anyone gets your online account's username/password then you're in 
big trouble and you'll get no help.
For customers there is a option to opt out from the 3D secure. I 
remember bank site asking me to giving options to join in or opt of the 
3D secure when it was activated on first use of the card.


Oh well, wonderful world we live in. I may be outvoted in this, but 
just like Verified by Visa this is the sort of feature I'd like to see 
never make it into OFBiz.
Well, 3D secure is optional for the customers as well as Vendors. 
However, some of the merchant banks made it mandatory (in UK at least). 
I feel there is no harm in having it in OFBiz as long as it does not 
interfere with the normal authorization flow. Idea is to hook up the 3D 
secure only if it is enabled in OFBiz otherwise, normal CC processing 
used as it is.


Thanks,

Raj



-David


On Oct 20, 2008, at 12:04 AM, Raj Saini wrote:


David,

AFAIK, 3D secure is similar to "Verified by Visa" in addition to that 
it also supports Mastercard. In 3D secure customer authenticate with 
their banker (issuer bank) and not the Visa or MasterCard site and 
yes they waives the right to repudiation as they use their bank 
userid/password to authenticate.


I know some of the merchant banks in UK made it mandatory to use 3D 
secure for CC processing. I am not sure how useful it could be for 
end customers but vendor have little choice when their merchant bank 
makes it mandatory to use 3D secure as part of CC processing. Only 
alternative is to switch to the other merchant bank which may not be 
feasible sometime.


Thanks,

Raj

David E Jones wrote:


On a side note, is 3D Secure like the old "Verified by Visa" thingy 
that was supposed to make things more secure for "customers" but by 
using it customers actually waived the right to repudiation. In 
other words, if someone was able to get your CC information and 
Verified by Visa username/password then they could commit fraud and 
Visa wouldn't help you out with it at all.


In other words, for your extra pain of signing up and using the 
problem, the customer was rewarded by not being able to repudiate 
fraudulent charges.


If the same is true for 3D Secure then chances are it won't be on 
the radar for very long... when was the last time anyone here was 
asked to implement for Verified by Visa?


-David


On Oct 19, 2008, at 11:05 PM, Christopher L wrote:


Yes, it's a complete rethink on how to ensure non-repudiation.

It's also less of a "call to a gateway" as it is a redirection to 
the card issuer.  The goal is to keep the PIN from the merchants 
and card processors.


Here's the flow, IIRC.

1.  User enters in a CC number into a storefront.
2.  Storefront queries the CC number to determine participation in 
3dsecure.

3.  Response and issuer authentication url is returned.
4.  Storefront redirects the user to the card issuer, with an 
encrypted payload.  This could be in a pop-up.

5.  User authenticates with card issuer.
6.  Card issuer redirects the user back to the storefront with a 
code in an xml doc signed by the issuer.
7.  Storefront adds the code to the authorization that is sent to 
the credit card processor.


In my experience, merchants get very worried (and rightly so) about 
the redirection/pop-up because you lose control of the user.  It's 
essential to make it a smooth experience.  If it's not, you lose 
sales because the customers don't come back from the redirect.


Chris Lombardi


Date: Sun, 19 Oct 2008 13:27:43 -0700
From: [EMAIL PROTECTED]
To: dev@ofbiz.apache.org
Subject: Re: [Fwd: Re: I want to discuss integration 3D Secure 
Credit Card with ofbiz.]


I did not catch that, thanks, Chris.
This would be a independent service that the different CC services 
could

call it while building thier call to the gateway they are using.
it would still be in the third party service.
3DsecureService.java


Christopher L sent the following on 10/19/2008 1:02 PM:
3D Secure isn't a payment processor.  It's a supplemental 
authentication service that authenticates the cardholder to the 
*card issuing bank*.


The output of 3D Secure is an encrypted hash (not a payment auth) 
that is then sent via your normal payment authorization service.


So, you really can't implement ccAuth, ccCapture, etc.

Sarvesh is trying to find out where in the checkout process this 
additional authentication step could go to then be utilized by 
all the payment authorization services.  I'm familiar with 3D 
Secure, but unfortunately not familiar with the ofbiz ecommerce 
module, or I'd suggest something myself.


Chris Lombardi


Date: S

Re: [Fwd: Re: I want to discuss integration 3D Secure Credit Card with ofbiz.]

2008-10-19 Thread Raj Saini

David,

AFAIK, 3D secure is similar to "Verified by Visa" in addition to that it 
also supports Mastercard. In 3D secure customer authenticate with their 
banker (issuer bank) and not the Visa or MasterCard site and yes they 
waives the right to repudiation as they use their bank userid/password 
to authenticate.


I know some of the merchant banks in UK made it mandatory to use 3D 
secure for CC processing. I am not sure how useful it could be for end 
customers but vendor have little choice when their merchant bank makes 
it mandatory to use 3D secure as part of CC processing. Only alternative 
is to switch to the other merchant bank which may not be feasible sometime.


Thanks,

Raj

David E Jones wrote:


On a side note, is 3D Secure like the old "Verified by Visa" thingy 
that was supposed to make things more secure for "customers" but by 
using it customers actually waived the right to repudiation. In other 
words, if someone was able to get your CC information and Verified by 
Visa username/password then they could commit fraud and Visa wouldn't 
help you out with it at all.


In other words, for your extra pain of signing up and using the 
problem, the customer was rewarded by not being able to repudiate 
fraudulent charges.


If the same is true for 3D Secure then chances are it won't be on the 
radar for very long... when was the last time anyone here was asked to 
implement for Verified by Visa?


-David


On Oct 19, 2008, at 11:05 PM, Christopher L wrote:


Yes, it's a complete rethink on how to ensure non-repudiation.

It's also less of a "call to a gateway" as it is a redirection to the 
card issuer.  The goal is to keep the PIN from the merchants and card 
processors.


Here's the flow, IIRC.

1.  User enters in a CC number into a storefront.
2.  Storefront queries the CC number to determine participation in 
3dsecure.

3.  Response and issuer authentication url is returned.
4.  Storefront redirects the user to the card issuer, with an 
encrypted payload.  This could be in a pop-up.

5.  User authenticates with card issuer.
6.  Card issuer redirects the user back to the storefront with a code 
in an xml doc signed by the issuer.
7.  Storefront adds the code to the authorization that is sent to the 
credit card processor.


In my experience, merchants get very worried (and rightly so) about 
the redirection/pop-up because you lose control of the user.  It's 
essential to make it a smooth experience.  If it's not, you lose 
sales because the customers don't come back from the redirect.


Chris Lombardi


Date: Sun, 19 Oct 2008 13:27:43 -0700
From: [EMAIL PROTECTED]
To: dev@ofbiz.apache.org
Subject: Re: [Fwd: Re: I want to discuss integration 3D Secure 
Credit Card with ofbiz.]


I did not catch that, thanks, Chris.
This would be a independent service that the different CC services 
could

call it while building thier call to the gateway they are using.
it would still be in the third party service.
3DsecureService.java


Christopher L sent the following on 10/19/2008 1:02 PM:
3D Secure isn't a payment processor.  It's a supplemental 
authentication service that authenticates the cardholder to the 
*card issuing bank*.


The output of 3D Secure is an encrypted hash (not a payment auth) 
that is then sent via your normal payment authorization service.


So, you really can't implement ccAuth, ccCapture, etc.

Sarvesh is trying to find out where in the checkout process this 
additional authentication step could go to then be utilized by all 
the payment authorization services.  I'm familiar with 3D Secure, 
but unfortunately not familiar with the ofbiz ecommerce module, or 
I'd suggest something myself.


Chris Lombardi


Date: Sun, 19 Oct 2008 12:41:03 -0700
From: [EMAIL PROTECTED]
To: dev@ofbiz.apache.org
Subject: Re: [Fwd: Re: I want to discuss integration 3D Secure 
Credit Card with ofbiz.]


I read
http://docs.ofbiz.org/display/OFBIZ/Credit+Card+3D+Secure++Authentication+Integration+with+ofbiz 


and see no difference than using the CC service called by
PaymentGatewayServices
all the services now, had web interfaces at one time.



Raj Saini sent the following on 10/19/2008 8:43 AM:

BJ,

3D secure is not same as normal CC authorization. 3D secure has a 
issuer
bank authentication and it happens in 2 phases. And that is the 
reason

this proposal is to make 3D secure generic enough to integrate with
OFBiz so that it can easily hooked up in other payment processors.

Thanks,

Raj

BJ Freeman wrote:

look at the third party code under the financial folder.
applications\accounting\src\org\ofbiz\accounting\thirdparty
provide
ccAuth
ccCapture
at a minimum
and
ccRefund
ccRelease
ccCredit
ccAuthCapture
if the provider supports them.

http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application 



see part 1

Sarvesh sent the following on 10/17/2008 7:2

Re: [Fwd: Re: I want to discuss integration 3D Secure Credit Card with ofbiz.]

2008-10-19 Thread Raj Saini

BJ,

3D secure is not same as normal CC authorization. 3D secure has a issuer 
bank authentication and it happens in 2 phases. And that is the reason 
this proposal is to make 3D secure generic enough to integrate with 
OFBiz so that it can easily hooked up in other payment processors.


Thanks,

Raj

BJ Freeman wrote:

look at the third party code under the financial folder.
applications\accounting\src\org\ofbiz\accounting\thirdparty
provide
ccAuth
ccCapture
at a minimum
and
ccRefund
ccRelease
ccCredit
ccAuthCapture
if the provider supports them.

http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application
see part 1

Sarvesh sent the following on 10/17/2008 7:26 AM:
  

Hi,


 I want to discuss integration 3D Secure Credit Card with ofbiz. I have got
it working(using protx simulator) by changing some of ofbiz files but still
it is not generic so I want to discuss it with the user community to make it
generic for general usage.


Thanks
Sarvesh.






  




Re: Eclipse CloudFree proposal

2008-10-10 Thread Raj Saini
I just read their proposal and one of their project goal not to provide 
integration with third party ERP, CRM system. Excerpts from their proposal:


"Outside the project's scope will be the development of vendor-specific 
integrations, such as integrations with specific ERP or CRM systems, as 
well as highly specialized services, such as a sophisticated product 
recommendation service. However, the CloudFree platform will provide 
frameworks and extension points to allow third parties building such 
integrations and specialized services. "


May be we at ofbiz can look for integrating the OFBiz ERP and this will 
certainly increase the OFBiz visibility.


Thanks,

Raj


Actually, I sent my reply half jokingly.

There have been requests over the years for OFBiz to have the ability 
to start/stop/deploy/remove components dynamically - without 
restarting the server. The response has always been that there are 
class loader issues, component dependency issues, etc, etc - so it 
wouldn't work. It seems to me that OSGi has addressed those issues. 
(I'm not an expert on the subject, so I could be wrong.)


It would be nice if the folks at CloudFree joined our community and 
worked toward getting our existing eCommerce/ERP platform running on 
OSGi, instead of creating a new one.


-Adrian

Tim Ruppert wrote:
Interesting feedback Joe.  I've had a look inside this and how it 
works for OFBiz in general and am really interested to see how it may 
help out.  At first glance, my response was the same as Adrian's, but 
these guys do have good experience, so it'll be nice to see how it 
ends up looking.


Cheers,
Tim
--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com

o:801.649.6594
f:801.649.6595

On Oct 10, 2008, at 9:03 AM, Joe Eckard wrote:


"The foundation of the CloudFree Platform is Equinox. Thus, everything
will be developed and deployed as OSGi bundles. Thus, it's valid to say
that Java is our technology of choice for the platform."


I've been exploring OSGi for a few months now and it seems like an 
ideal solution for OFBiz (and enterprise frameworks in general). It 
will be exciting to see what experienced OSGi developers come up 
with to make the interesting features easier to use in our context.


-Joe

On Oct 10, 2008, at 8:49 AM, Ravi Kumar wrote:


http://cloudfree.net/

http://www.eclipse.org:80/proposals/cloudfree/


news://news.eclipse.org/eclipse.cloudfree



In the news group, there is a reference to OFBiz under this thread: 
"Why

another open source ecommerce platform?"



-R





















[jira] Commented: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

2008-09-16 Thread Raj Saini (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631417#action_12631417
 ] 

Raj Saini commented on OFBIZ-1955:
--

David, yes I agree there is quite a lot more beyond this. Catalog, categories, 
products already support this using Party Role association. I did this for a 
client who just wanted a separate view of catalogs, products and categories.  I 
think having this feature will be another addition to what is already there for 
a multi-tenant environment.

> Create a party relationship between a new customer and the product store in 
> the eCommerce application
> -
>
> Key: OFBIZ-1955
> URL: https://issues.apache.org/jira/browse/OFBIZ-1955
> Project: OFBiz
>  Issue Type: Improvement
>  Components: ecommerce
>Affects Versions: SVN trunk, Release Branch 4.0
>Reporter: Patrick Antivackis
>Assignee: Jacques Le Roux
>Priority: Trivial
> Fix For: SVN trunk
>
> Attachments: OFBIZ-1955.patch
>
>
> When a new user is creating its own account in an eCommerce application, a 
> CUSTOMER profile is created to this new user, but no relationship is made 
> between this new user and the product store.
> The enclosed patch will create a relationshop of type CUSTOMER_REL between 
> the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the 
> data store (partyIdTo) with profile _NA_ (roleTypeIdTo) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (OFBIZ-1955) Create a party relationship between a new customer and the product store in the eCommerce application

2008-09-16 Thread Raj Saini (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631410#action_12631410
 ] 

Raj Saini commented on OFBIZ-1955:
--

This could be very useful in multi store environment where each store is owned 
by a different vendor. I have similar requirement to create a mall kind of 
e-commerce site where stores are owned by different vendors. With a customer 
and product store relationship in place, it would be possible to create a view 
where a store owner sees only customer of her store. 


> Create a party relationship between a new customer and the product store in 
> the eCommerce application
> -
>
> Key: OFBIZ-1955
> URL: https://issues.apache.org/jira/browse/OFBIZ-1955
> Project: OFBiz
>  Issue Type: Improvement
>  Components: ecommerce
>Affects Versions: SVN trunk, Release Branch 4.0
>Reporter: Patrick Antivackis
>Assignee: Jacques Le Roux
>Priority: Trivial
> Fix For: SVN trunk
>
> Attachments: OFBIZ-1955.patch
>
>
> When a new user is creating its own account in an eCommerce application, a 
> CUSTOMER profile is created to this new user, but no relationship is made 
> between this new user and the product store.
> The enclosed patch will create a relationshop of type CUSTOMER_REL between 
> the user (partyIdFrom) with the profile CUSTOMER (roleTypeIdFrom) and the 
> data store (partyIdTo) with profile _NA_ (roleTypeIdTo) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



Re: running out of database connections.....

2008-08-29 Thread Raj Saini

Hans,

I experienced this problem and I had to increase the concurrent open 
connection to 500+. I sometime run a test server using same db server 
instance and this limit is reached after running OFBiz for few days. 
Traffic on server is not more than 2000 visits a day.


I have another instance where experiencing the similar problem but not 
sure if it is due to database. I will post my finding soon.


Thanks,

Raj

Hans Bakker wrote:

I have several customer installations which have the same problem:
running out of database connections...

So there should be in the system that database iterators are not closed?

for example in createUserLoginPasswordHistory in logionServices.java,
line 391:
EntityListIterator eli = delegator.find("UserLoginPasswordHistory",.

but is see no eli.close()

do i see this wrong or should this be corrected?

anybody else have the same database connections problem?

  




[jira] Updated: (OFBIZ-1812) Add support for VisaElectron card number validation in UtilValidate.java as defined Wikipedia

2008-05-30 Thread Raj Saini (JIRA)

 [ 
https://issues.apache.org/jira/browse/OFBIZ-1812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Raj Saini updated OFBIZ-1812:
-

Attachment: UtilValidate.java.patch

Patch to add validation support for known Visa Electron cards numbers

> Add support for VisaElectron card number validation in UtilValidate.java as 
> defined Wikipedia
> -
>
> Key: OFBIZ-1812
> URL: https://issues.apache.org/jira/browse/OFBIZ-1812
> Project: OFBiz
>  Issue Type: Improvement
>  Components: framework
>    Reporter: Raj Saini
>Priority: Trivial
> Attachments: UtilValidate.java.patch
>
>
> Current Visa Electron credit card number validation supports only card 
> numbers whose  first 6 digits are  417500. Due to this current validation 
> rejects Visa Electron cards with valid credit card numbers.
> Known Visa Electron starting numbers are 417500, 4917,4913,4508,4844 (Ref. 
> Wikipedia http://en.wikipedia.org/wiki/Credit_card_numbers).
> Attached patch adds validation support for missing numbers.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Created: (OFBIZ-1812) Add support for VisaElectron card number validation in UtilValidate.java as defined Wikipedia

2008-05-30 Thread Raj Saini (JIRA)
Add support for VisaElectron card number validation in UtilValidate.java as 
defined Wikipedia
-

 Key: OFBIZ-1812
 URL: https://issues.apache.org/jira/browse/OFBIZ-1812
 Project: OFBiz
  Issue Type: Improvement
  Components: framework
Reporter: Raj Saini
Priority: Trivial


Current Visa Electron credit card number validation supports only card numbers 
whose  first 6 digits are  417500. Due to this current validation rejects Visa 
Electron cards with valid credit card numbers.

Known Visa Electron starting numbers are 417500, 4917,4913,4508,4844 (Ref. 
Wikipedia http://en.wikipedia.org/wiki/Credit_card_numbers).

Attached patch adds validation support for missing numbers.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



Re: external banking service of credit card payment (Sherlocks by Atos Origin)

2008-05-21 Thread Raj Saini
I think your payment details (Credit card number etc.) are collected by 
Shelocks. If this the case, I would suggest you to look at how Paypal 
works. I never did this kind of integration before.


Thanks,

Raj

Eric wrote:

Raj, everybody,

When I process to a purchase in the ecommerce web site,
on the "Final Checkout Review" page (with Payment Information : 
"Sherlocks")

here I click on "Submit order" button.
This act creates a recording in the "OrderPaymentPreference" table 
with the statusId field  "PAYMENT_NOT_RECEIVED"
The next pages are my Sherlocks  Request Servlet to begin the payment, 
then the bank server pages and at least my Sherlocks  Response Servlet.
Here I want to modify the same recording in order to modify the 
statusId field from "PAYMENT_NOT_RECEIVED" to "PAYMENT_RECEIVED" or 
another status,
with my Sherlocks  Response Servlet (in a second time this will be an 
AutoResponse Servlet from bank server to Ofbiz server).


My question is the same : what class / service can I use in order to 
modify a recording in the "OrderPaymentPreference" table ?


Thank you very much

Eric



Eric,

I don't think you need to modify any of the OFBiz classes to 
implement a payment processor service. The error you are getting may 
be due to misconfiguration or wrong implementation for service.


Thanks,

Raj

Eric wrote:

Hello

I'm trying to implement this service.
I'm following the WorldPay example.
In the response (file : applications/accounting/src ... 
/thirdparty/worldpay/SelectRespServlet.java)
I get an error (line 284) because the request to modify the 
ORDER_PAYMENT_PREFERENCE table

is a INSERT query and not an UPDATE query, so I get
ERROR: duplicate key violates unique constraint 
"pk_order_payment_preference"


How can I use an UDPATE query in order to modify the defined row (in 
ORDER_PAYMENT_PREFERENCE table)

and update with the external credit card payment datas from the bank

What class / service have I to use in order to record external 
payments ?


Thanks






--
No virus found in this incoming message.
Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.21/1457 - 
Release Date: 20/05/2008 16:45










Re: external banking service of credit card payment (Sherlocks by Atos Origin)

2008-05-20 Thread Raj Saini

Eric,

I don't think you need to modify any of the OFBiz classes to implement a 
payment processor service. The error you are getting may be due to 
misconfiguration or wrong implementation for service.


Thanks,

Raj

Eric wrote:

Hello

I'm trying to implement this service.
I'm following the WorldPay example.
In the response (file : applications/accounting/src ... 
/thirdparty/worldpay/SelectRespServlet.java)
I get an error (line 284) because the request to modify the 
ORDER_PAYMENT_PREFERENCE table

is a INSERT query and not an UPDATE query, so I get
ERROR: duplicate key violates unique constraint 
"pk_order_payment_preference"


How can I use an UDPATE query in order to modify the defined row (in 
ORDER_PAYMENT_PREFERENCE table)

and update with the external credit card payment datas from the bank

What class / service have I to use in order to record external payments ?

Thanks





Re: Is OFBiz for Redhat too??

2008-05-20 Thread Raj Saini
Yes, you can use Redhat Linux to deploy Ofbiz. Theoretically, you can 
deploy OFBiz only any platform which run Java 5.0 as OFBiz is a 100% 
Java application.


Raj

Ajay @ Pal InfoCom wrote:

Hello developers,


I have a query, can we use OFBiz on RedHat Linux too? Because we want 
to use RedHat platform and are not sure on this, whether it will work 
or not.


Any response will be appreciated.

Thanks and regards,

Ajay Sodhi





[jira] Commented: (OFBIZ-1763) Checkout via login causes error in confirmation email send in ordermgr

2008-05-03 Thread Raj Saini (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594005#action_12594005
 ] 

Raj Saini commented on OFBIZ-1763:
--

This is duplicate of https://issues.apache.org/jira/browse/OFBIZ-1533. There is 
a patch attached but it may not be optimal solution. 

> Checkout via login causes error in confirmation email send in ordermgr
> --
>
> Key: OFBIZ-1763
> URL: https://issues.apache.org/jira/browse/OFBIZ-1763
> Project: OFBiz
>  Issue Type: Bug
>Affects Versions: Release Branch 4.0
> Environment: Unix-based os.  Default tomcat instance, mysql db.
>Reporter: Phillip Rhodes
>
> If one checks out of the store using a login (username, password), and an 
> administrator later uses the ordermgr to send a confirmation email, the email 
> that is generated is truncated due to the  error on orderstatus.bsh.  If one 
> uses anonymous checkout, this function works fine.
> Here is the error in logs:
> 2008-05-03 14:46:13,699 (TP-Processor5) [  
> ?:?  :WARN ] Warning: in orderstatus.bsh before getting order detail info:
> role not found or user not logged in; partyId=[admin], userLoginId=[admin]
> The email that is generated is as follows:
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> http://www.w3.org/1999/xhtml";>
> 
> 
> Order Confirmation Notice
> http://65.61.140.175/images/maincss.css"; 
> type="text/css"/>
> 
> 
> Order Confirmation Notice
> NOTE: This is a DEMO store-front.  Orders placed here will NOT be billed, 
> and will NOT be fulfilled.
> 
> If you are not satisfied with your purchase or if your purchase arrives 
> damaged, please contact Calgon Consumer Products by calling 1-800-550-8789. 
> Thank you.
> 
> Order not found with ID [WS10243], or not allowed to 
> view.
> 
> 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



Re: How to change an ecommerce .ftl file reusing the whole

2008-04-20 Thread Raj Saini

I do the following in such situation.

1. Create new screens in the widget folder, generally copying similar 
screen from the e-commerce.
2. Modify the required screen to include ftl in my application. It 
removes the reference to e-commerce ftl file.
3. Add a view map, generally copying similar view-map from e-commerce 
and modify it to point to newly created screen in my application instead 
of e-commerce.


Copying similar screens from e-commerce helps me re-using most of the 
action stuff (bsh, field definition etc).


Thanks,

Raj

Bruno Busco wrote:

Hi,
as long as I go deeper and deeper in ofbiz I can appreciate the very good
design of this application.

Now I need to make a my own eshop module and I want to be sure I am using
all the re-use mechanism you have designed.
- I have created an eshop application under the hot-deploy, here I have all
my data files using the "ext" reader, with the data file I have defined my
show, website, facilities, catalogs and categories.
- In my eshop application, I have the controller.xml file that (as seen in
ecommerce clone example) includes the ecommerce application controller with
the line


- In my eshop application there is also the images folder with a modified
copy of the ecommerce.css file and all required gif

Now I need little changes in some of the .ftl files. I want not to modify
the original files of the ecommerce application so that I can better follow
the development and update without conflicts.

Is there a mechanism that let me have one or more additional .ftl files in
my application and all standard .ftl under the original ecommerce?

For example:
I have changed the minilastviewedcategories.ftl. I would like to have a
modified copy of this file in my own application.
I can create a copy in my application but in order to make ofbiz using it I
need to local copy also all the other files in the chain that are:
CatalogScreens.xml, CommonScreens.xml and the controller.xml

Could anyone make some light for me on this?

Thank you

-Bruno

  




Re: how to run multiple instance of ofbiz on server

2008-04-15 Thread Raj Saini
I don't know what you mean by clone web store. Technically, nothing 
stops connecting two instances to same database. But I don't know it 
would make any business sense as for me two instances are operated by 
two different business entities unless they are part of a cluster and 
that is all together different story.


Raj

[EMAIL PROTECTED] wrote:

Thank you Raj for quick reply.

One thing i would like to ask is- is it possible to  use the same
database for clone web store?

Thanks for your suggestions.
Ajay..

Raj Saini wrote:
  

You will need to change various ports in ofbiz-container.xml in
framework/base/config.xml. Look for Technical Setup Guide on wiki to
see the list of ports.

Raj

[EMAIL PROTECTED] wrote:


Hello all,

I need to run two instances of ofbiz on server. Is it possible?
If the answer is yes, then please anyone can guide how to achieve this?
I will be very thankful.

Ajay
  
  


  




Re: how to run multiple instance of ofbiz on server

2008-04-15 Thread Raj Saini
You will need to change various ports in ofbiz-container.xml in 
framework/base/config.xml. Look for Technical Setup Guide on wiki to see 
the list of ports.


Raj

[EMAIL PROTECTED] wrote:

Hello all,

I need to run two instances of ofbiz on server. Is it possible?
If the answer is yes, then please anyone can guide how to achieve this?
I will be very thankful.

Ajay
  




[jira] Commented: (OFBIZ-1740) Product detail page shows page title as "Product Page" instead of the actual product name

2008-04-07 Thread Raj Saini (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-1740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586331#action_12586331
 ] 

Raj Saini commented on OFBIZ-1740:
--

Thanks Jacques,

It is my laziness that I did not test it on trunk before submitting the patch. 
I generally test and fix it on my private repository  first and then move them 
to Ofbiz trunk or branch.

I promise to take care of such minor issue in future to minimize  the time of 
committers in reviewing and committing the patches.

> Product detail page shows page title as "Product Page" instead of the actual 
> product name
> -
>
> Key: OFBIZ-1740
> URL: https://issues.apache.org/jira/browse/OFBIZ-1740
> Project: OFBiz
>  Issue Type: Bug
>  Components: ecommerce
>Affects Versions: SVN trunk
> Environment: Ubuntu 7.10 Firefox 2.0.0.12
>Reporter: Raj Saini
>Assignee: Jacques Le Roux
> Fix For: SVN trunk, Release Branch 4.0
>
> Attachments: productdetail.patch
>
>
> Product detail page should show the product name in the page title instead of 
> "Product Page". This is due to the reason that page title is retried from 
> Product generic entity instead of ProductContentWrapper in product.bsh file. 
> Attached patch fixes this problem and product name and product description is 
> used for Page title and description meta description field respectively.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



  1   2   >