[jira] Closed: (OFBIZ-2216) Unknown buffered image type for PNG image

2009-03-01 Thread Jacques Le Roux (JIRA)

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

Jacques Le Roux closed OFBIZ-2216.
--

Resolution: Fixed
  Assignee: Jacques Le Roux

Well spotted, thanks Eric,

Your patch is in trunk at revision: 749217  


> Unknown buffered image type for PNG image
> -
>
> Key: OFBIZ-2216
> URL: https://issues.apache.org/jira/browse/OFBIZ-2216
> Project: OFBiz
>  Issue Type: Bug
>  Components: product
>Affects Versions: SVN trunk
> Environment: trunk revision 748987
>Reporter: Eric DE MAULDE
>Assignee: Jacques Le Roux
>Priority: Trivial
> Fix For: SVN trunk
>
> Attachments: ImageTransform_imageType.patch
>
>
> The image type of a PNG image is TYPE_CUSTOM
> With this type is unabled to create a new buffered image

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



[jira] Closed: (OFBIZ-2215) Add Chinese translation for HR module

2009-03-01 Thread Jacques Le Roux (JIRA)

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

Jacques Le Roux closed OFBIZ-2215.
--

Resolution: Fixed
  Assignee: Jacques Le Roux

Thanks Guo,

Your patch is in trunk at revision: 749216 .

Please use preferably the suffixes .patch or .diff for your patches (less work 
for me)


> Add Chinese translation for HR module
> -
>
> Key: OFBIZ-2215
> URL: https://issues.apache.org/jira/browse/OFBIZ-2215
> Project: OFBiz
>  Issue Type: Improvement
>  Components: humanres
>Affects Versions: SVN trunk
>Reporter: WeizhanGuo
>Assignee: Jacques Le Roux
> Fix For: SVN trunk
>
> Attachments: HumanResUiLabels.xml, patch.txt
>
>
> Add Chinese translation for HR module

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



[jira] Created: (OFBIZ-2219) Special feature to allow submitting patches for online help update

2009-03-01 Thread Jacques Le Roux (JIRA)
Special feature to allow submitting patches for online help update
--

 Key: OFBIZ-2219
 URL: https://issues.apache.org/jira/browse/OFBIZ-2219
 Project: OFBiz
  Issue Type: Improvement
  Components: ALL COMPONENTS
Affects Versions: SVN trunk
Reporter: Jacques Le Roux
Priority: Minor


*This issue should not be closed, at least until the online help is not 
completed...*

in OFBIZ-2133, Bruno Busco has used Sharan's work in wiki as an help from OFBiz 
OOTB. You can find links in AccountingHelpUrls.xml. I have asked Sharan if she 
could update this links, while she is improving documentation, and she agreed. 
So this issue is to allow her, and anybody else, to submit patches to improve 
the online help (not only accounting of course hence the ALL COMPONENTS)

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



[jira] Created: (OFBIZ-2218) Buyer should be able to specify PO# otherwise it should be generated automatically while placing a purchase order.

2009-03-01 Thread Pranay Pandey (JIRA)
Buyer should be able to specify PO# otherwise it should be generated 
automatically while placing a purchase order.
--

 Key: OFBIZ-2218
 URL: https://issues.apache.org/jira/browse/OFBIZ-2218
 Project: OFBiz
  Issue Type: Sub-task
  Components: order
Affects Versions: SVN trunk
Reporter: Pranay Pandey
Priority: Minor
 Fix For: SVN trunk


Currently this functionality is not supported.
While placing purchase order buyer should be able to provide PO# and if not 
then system should generate it automatically which happens currently.

*Implementation Notes:* 
  Add text box to enter optional purchase orderId, add support to order 
creation service to use if passed and generate as it currently does if not 
passed.
 



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



[jira] Created: (OFBIZ-2217) Improvements in processing of Purhcase Order

2009-03-01 Thread Pranay Pandey (JIRA)
Improvements in processing of Purhcase Order


 Key: OFBIZ-2217
 URL: https://issues.apache.org/jira/browse/OFBIZ-2217
 Project: OFBiz
  Issue Type: Improvement
  Components: order
Affects Versions: SVN trunk
Reporter: Pranay Pandey
Priority: Minor
 Fix For: SVN trunk


Improvements in processing of Purchase Order.



-- 
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-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.



Re: the theme for the form widget

2009-03-01 Thread guo weizhan
that's a good idea, I will submit a jira issue later.

2009/3/2 Bruno Busco 

> Hi Guo,
> this looks interesting!
>
> I think the best would be submitting a simple patch in a jira issue
> when you have some ready.
>
> -Bruno
>
> 2009/3/1 guo weizhan :
> > Hi all,
> >
> > We are creating the "theme" for the ofbiz widget form, why we create
> this?
> > We found it's very difficultty to extend the current form widget, all the
> > widget generation code is hard code in HtmlFormRenderer, we need to
> change
> > this file if we want to add some function to the form, like ajax.
> >
> > And yes, we have some ajax function in ofbiz now, but the code of
> > HtmlFormRenderer with ajax is much harder for understanding.
> > like the code: "if(ajaxEnabled)". In fact , we want to implement the dojo
> > function in ofbiz without mess.
> >
> > So we decide to extract the hard code is responsible for the html form
> > generation  to the ftl files, like the struts2 does. If you know well
> about
> > struts2, then you will also know the form theme we are creating.
> >
> > Those ftl files is responsible for the html code generation, like
> text.ftl:
> > 
> >  name="${rp.name?default( "")?html}"<#rt/>
> > <#include "class.ftl" />
> > <#if rp.value?exists>
> > <#escape x as x?html> value="${rp.value}"  <#rt/>
> > 
> > <#if rp.textSize?exists>
> >  size="${rp.textSize?html}"<#rt/>
> > 
> > <#if rp.maxlength?exists>
> >  maxlength="${rp.maxlength?html}"<#rt/>
> > 
> > <#if rp.textId?exists>
> >  id="${rp.textId?html}"<#rt/>
> > 
> > <#if rp.event?exists && rp.action?exists>
> >  ${rp.event?html}="${rp.action?html}"<#rt/>
> > 
> > <#if rp.clientAutocomplete?exists && !rp.clientAutocomplete>
> >   autocomplete="off"<#rt/>
> > 
> > />
> > Then, in the renderTextField method, we use the ftl file to generate the
> > html text instand of the hard code.
> >
> > Finally,we can have different themes like simple/text.ftl  ajax/text.ftl
> > and dojo/text.ftl. By setting the theme with code
> "theme=simple/ajax/dojo "
> > , the corresponding theme file like text.ftl will be loaded. The
> attachment
> > is the dojo theme capture.
> >
> > If you are interested or have  any advises, we can discuss it in detail.
> >
> >
>


Re: the theme for the form widget

2009-03-01 Thread guo weizhan
I know what your mean, this is need to add more code to this class. if I
want to add dojo enabled, I have to add if(dojoEnable) and will let the
this class become hard to understand

2009/3/2 Adrian Crum 

>
> --- On Sun, 3/1/09, guo weizhan  wrote:
> > We are creating the "theme" for the ofbiz widget
> > form, why we create this?
> > We found it's very difficultty to extend the current
> > form widget, all the
> > widget generation code is hard code in HtmlFormRenderer, we
> > need to change
> > this file if we want to add some function to the form, like
> > ajax.
> >
> > And yes, we have some ajax function in ofbiz now, but the
> > code of
> > HtmlFormRenderer with ajax is much harder for
> > understanding.
> > like the code: "if(ajaxEnabled)". In fact , we
> > want to implement the dojo
> > function in ofbiz without mess.
>
> The reason the widget code checks to see if Ajax is enabled is because some
> users will have JavaScript disabled - in which case, plain HTML needs to be
> rendered.
>
> -Adrian
>
>
>
>
>


[jira] Updated: (OFBIZ-2216) Unknown buffered image type for PNG image

2009-03-01 Thread Eric DE MAULDE (JIRA)

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

Eric DE MAULDE updated OFBIZ-2216:
--

Attachment: ImageTransform_imageType.patch

This patch set a default image type if the current image type is TYPE_CUSTOM
so, in this case, a new buffered image can be built

> Unknown buffered image type for PNG image
> -
>
> Key: OFBIZ-2216
> URL: https://issues.apache.org/jira/browse/OFBIZ-2216
> Project: OFBiz
>  Issue Type: Bug
>  Components: product
>Affects Versions: SVN trunk
> Environment: trunk revision 748987
>Reporter: Eric DE MAULDE
>Priority: Trivial
> Fix For: SVN trunk
>
> Attachments: ImageTransform_imageType.patch
>
>
> The image type of a PNG image is TYPE_CUSTOM
> With this type is unabled to create a new buffered image

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



[jira] Created: (OFBIZ-2216) Unknown buffered image type for PNG image

2009-03-01 Thread Eric DE MAULDE (JIRA)
Unknown buffered image type for PNG image
-

 Key: OFBIZ-2216
 URL: https://issues.apache.org/jira/browse/OFBIZ-2216
 Project: OFBiz
  Issue Type: Bug
  Components: product
Affects Versions: SVN trunk
 Environment: trunk revision 748987
Reporter: Eric DE MAULDE
Priority: Trivial
 Fix For: SVN trunk


The image type of a PNG image is TYPE_CUSTOM
With this type is unabled to create a new buffered image

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



[jira] Commented: (OFBIZ-2215) Add Chinese translation for HR module

2009-03-01 Thread WeizhanGuo (JIRA)

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

WeizhanGuo commented on OFBIZ-2215:
---

Sorry, I forget to create a patch

> Add Chinese translation for HR module
> -
>
> Key: OFBIZ-2215
> URL: https://issues.apache.org/jira/browse/OFBIZ-2215
> Project: OFBiz
>  Issue Type: Improvement
>  Components: humanres
>Affects Versions: SVN trunk
>Reporter: WeizhanGuo
> Fix For: SVN trunk
>
> Attachments: HumanResUiLabels.xml, patch.txt
>
>
> Add Chinese translation for HR module

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



[jira] Updated: (OFBIZ-2215) Add Chinese translation for HR module

2009-03-01 Thread WeizhanGuo (JIRA)

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

WeizhanGuo updated OFBIZ-2215:
--

Attachment: patch.txt

> Add Chinese translation for HR module
> -
>
> Key: OFBIZ-2215
> URL: https://issues.apache.org/jira/browse/OFBIZ-2215
> Project: OFBiz
>  Issue Type: Improvement
>  Components: humanres
>Affects Versions: SVN trunk
>Reporter: WeizhanGuo
> Fix For: SVN trunk
>
> Attachments: HumanResUiLabels.xml, patch.txt
>
>
> Add Chinese translation for HR module

-- 
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-03-01 Thread Jacques Le Roux (JIRA)

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

Jacques Le Roux commented on OFBIZ-1560:


Hi Raj,

Your example is 
{quote}if the X product in shopping cart has Qty >= Y, apply Z% discount to all 
the quantities in the shopping cart.{quote}
Does this really means
 "apply Z% discount to all the quantities in the shopping cart." 
or only 
"apply Z% discount to all the quantities of the product X" ?

Which operator did you use in the condition ?

For the action, why not using "Order percent discount"  (if you really want to 
have  "Z% discount to all the quantities in the shopping cart.". But I suppose 
you are looking for something else)

In other words, can you elaborate a bit more 
* what you are looking for, 
* how did you try to achieve it
* what did you expect as results 
* and what you really got

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.



Re: the theme for the form widget

2009-03-01 Thread Bruno Busco
Hi Guo,
this looks interesting!

I think the best would be submitting a simple patch in a jira issue
when you have some ready.

-Bruno

2009/3/1 guo weizhan :
> Hi all,
>
> We are creating the "theme" for the ofbiz widget form, why we create this?
> We found it's very difficultty to extend the current form widget, all the
> widget generation code is hard code in HtmlFormRenderer, we need to change
> this file if we want to add some function to the form, like ajax.
>
> And yes, we have some ajax function in ofbiz now, but the code of
> HtmlFormRenderer with ajax is much harder for understanding.
> like the code: "if(ajaxEnabled)". In fact , we want to implement the dojo
> function in ofbiz without mess.
>
> So we decide to extract the hard code is responsible for the html form
> generation  to the ftl files, like the struts2 does. If you know well about
> struts2, then you will also know the form theme we are creating.
>
> Those ftl files is responsible for the html code generation, like text.ftl:
> 
>  name="${rp.name?default("")?html}"<#rt/>
> <#include "class.ftl" />
> <#if rp.value?exists>
> <#escape x as x?html> value="${rp.value}"  <#rt/>
> 
> <#if rp.textSize?exists>
>  size="${rp.textSize?html}"<#rt/>
> 
> <#if rp.maxlength?exists>
>  maxlength="${rp.maxlength?html}"<#rt/>
> 
> <#if rp.textId?exists>
>  id="${rp.textId?html}"<#rt/>
> 
> <#if rp.event?exists && rp.action?exists>
>  ${rp.event?html}="${rp.action?html}"<#rt/>
> 
> <#if rp.clientAutocomplete?exists && !rp.clientAutocomplete>
>   autocomplete="off"<#rt/>
> 
> />
> Then, in the renderTextField method, we use the ftl file to generate the
> html text instand of the hard code.
>
> Finally,we can have different themes like simple/text.ftl  ajax/text.ftl
> and dojo/text.ftl. By setting the theme with code "theme=simple/ajax/dojo "
> , the corresponding theme file like text.ftl will be loaded. The attachment
> is the dojo theme capture.
>
> If you are interested or have  any advises, we can discuss it in detail.
>
>


Re: the theme for the form widget

2009-03-01 Thread Adrian Crum

--- On Sun, 3/1/09, guo weizhan  wrote:
> We are creating the "theme" for the ofbiz widget
> form, why we create this?
> We found it's very difficultty to extend the current
> form widget, all the
> widget generation code is hard code in HtmlFormRenderer, we
> need to change
> this file if we want to add some function to the form, like
> ajax.
> 
> And yes, we have some ajax function in ofbiz now, but the
> code of
> HtmlFormRenderer with ajax is much harder for
> understanding.
> like the code: "if(ajaxEnabled)". In fact , we
> want to implement the dojo
> function in ofbiz without mess.

The reason the widget code checks to see if Ajax is enabled is because some 
users will have JavaScript disabled - in which case, plain HTML needs to be 
rendered.

-Adrian



  


[jira] Closed: (OFBIZ-2214) Product Id for SEO

2009-03-01 Thread Jacques Le Roux (JIRA)

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

Jacques Le Roux closed OFBIZ-2214.
--

Resolution: Fixed
  Assignee: Jacques Le Roux

Thanks Eric,

Your patch is in trunk at revision: 749047  


> Product Id for SEO
> --
>
> Key: OFBIZ-2214
> URL: https://issues.apache.org/jira/browse/OFBIZ-2214
> Project: OFBiz
>  Issue Type: Improvement
>  Components: product
>Affects Versions: SVN trunk
> Environment: trunk 748884
>Reporter: Eric DE MAULDE
>Assignee: Jacques Le Roux
>Priority: Trivial
> Fix For: SVN trunk
>
> Attachments: ProductFeatureServices_productId-SEO.patch
>
>
> For SEO into URL,
> Google (by example) recognizes words
> but a word has to be separate by "/" or "-" or ","
> But OFBiz suggests Variant Product Id
> with a non-separated extension (the counter)

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



[jira] Commented: (OFBIZ-2215) Add Chinese translation for HR module

2009-03-01 Thread Jacques Le Roux (JIRA)

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

Jacques Le Roux commented on OFBIZ-2215:


Pease follow [OFBiz Contributors Best 
Practices|http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices]

Thanks

> Add Chinese translation for HR module
> -
>
> Key: OFBIZ-2215
> URL: https://issues.apache.org/jira/browse/OFBIZ-2215
> Project: OFBiz
>  Issue Type: Improvement
>  Components: humanres
>Affects Versions: SVN trunk
>Reporter: WeizhanGuo
> Fix For: SVN trunk
>
> Attachments: HumanResUiLabels.xml
>
>
> Add Chinese translation for HR module

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



Re: Error in installation of ofbiz

2009-03-01 Thread Jacques Le Roux
I tried (fresh check out, r748971, PostGres 8.3 on XP SP3) and I got any problems. Which revision are you using  (please update I 
think this has been introduced and corrected recently)?


BTW, use rather user ML for such issues, see why here :
http://docs.ofbiz.org/display/OFBADMIN/Mailing+Lists#MailingLists-DeveloperList:dev@ofbiz.apache.org

Thanks

Jacques

From: "Vu Hong Thuan" 

I install Ofbiz with postgres 8.3 and have following error

Expression layoutSettings.companyName is undefined on line 32, column
14 in component://common/webcommon/includes/header.ftl.
The problematic instruction:
--
==> ${layoutSettings.companyName} [on line 32, column 12 in
component://common/webcommon/includes/header.ftl]
--

Java backtrace for programmers:
--
freemarker.core.InvalidReferenceException: Expression
layoutSettings.companyName is undefined on line 32, column 14 in
component://common/webcommon/includes/header.ftl.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
at freemarker.core.Expression.getStringValue(Expression.java:118)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
at freemarker.core.Environment.visit(Environment.java:209)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:209)
at freemarker.core.Environment.process(Environment.java:189)
at 
org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:205)
at org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:201)
at 
org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:245)
at org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:107)
at 
org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:994)
at 
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138)
at 
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:225)
at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393)
at 
org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:554)
at 
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138)
at 
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:225)
at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393)
at 
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:649)
at 
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138)
at 
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:225)
at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393)
at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:129)
at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:92)
at 
org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:98)
at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:677)
at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:490)
at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
at 
org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)

Re: the theme for the form widget

2009-03-01 Thread anil . patel

+1
I have wanting to do this for long.

Sent from my iPhone

On Mar 1, 2009, at 10:30 AM, guo weizhan  wrote:


Hi all,

We are creating the "theme" for the ofbiz widget form, why we create  
this? We found it's very difficultty to extend the current form  
widget, all the widget generation code is hard code in  
HtmlFormRenderer, we need to change this file if we want to add some  
function to the form, like ajax.


And yes, we have some ajax function in ofbiz now, but the code of  
HtmlFormRenderer with ajax is much harder for understanding. like  
the code: "if(ajaxEnabled)". In fact , we want to implement the dojo  
function in ofbiz without mess.


So we decide to extract the hard code is responsible for the html  
form generation  to the ftl files, like the struts2 does. If you  
know well about struts2, then you will also know the form theme we  
are creating.


Those ftl files is responsible for the html code generation, like  
text.ftl:


 name="${rp.name?default("")?html}"<#rt/>
<#include "class.ftl" />
<#if rp.value?exists>
<#escape x as x?html> value="${rp.value}"  <#rt/>

<#if rp.textSize?exists>
 size="${rp.textSize?html}"<#rt/>

<#if rp.maxlength?exists>
 maxlength="${rp.maxlength?html}"<#rt/>

<#if rp.textId?exists>
 id="${rp.textId?html}"<#rt/>

<#if rp.event?exists && rp.action?exists>
 ${rp.event?html}="${rp.action?html}"<#rt/>

<#if rp.clientAutocomplete?exists && !rp.clientAutocomplete>
  autocomplete="off"<#rt/>

/>
Then, in the renderTextField method, we use the ftl file to generate  
the html text instand of the hard code.


Finally,we can have different themes like simple/text.ftl  ajax/ 
text.ftl  and dojo/text.ftl. By setting the theme with code  
"theme=simple/ajax/dojo " , the corresponding theme file like  
text.ftl will be loaded. The attachment is the dojo theme capture.


If you are interested or have  any advises, we can discuss it in  
detail.





the theme for the form widget

2009-03-01 Thread guo weizhan
Hi all,

We are creating the "theme" for the ofbiz widget form, why we create this?
We found it's very difficultty to extend the current form widget, all the
widget generation code is hard code in HtmlFormRenderer, we need to change
this file if we want to add some function to the form, like ajax.

And yes, we have some ajax function in ofbiz now, but the code of
HtmlFormRenderer with ajax is much harder for understanding.
like the code: "if(ajaxEnabled)". In fact , we want to implement the dojo
function in ofbiz without mess.

So we decide to extract the hard code is responsible for the html form
generation  to the ftl files, like the struts2 does. If you know well about
struts2, then you will also know the form theme we are creating.

Those ftl files is responsible for the html code generation, like text.ftl:

 name="${rp.name?default("")?html}"<#rt/>
<#include "class.ftl" />
<#if rp.value?exists>
<#escape x as x?html> value="${rp.value}"  <#rt/>

<#if rp.textSize?exists>
 size="${rp.textSize?html}"<#rt/>

<#if rp.maxlength?exists>
 maxlength="${rp.maxlength?html}"<#rt/>

<#if rp.textId?exists>
 id="${rp.textId?html}"<#rt/>

<#if rp.event?exists && rp.action?exists>
 ${rp.event?html}="${rp.action?html}"<#rt/>

<#if rp.clientAutocomplete?exists && !rp.clientAutocomplete>
  autocomplete="off"<#rt/>

/>
Then, in the renderTextField method, we use the ftl file to generate the
html text instand of the hard code.

Finally,we can have different themes like simple/text.ftl  ajax/text.ftl
and dojo/text.ftl. By setting the theme with code "theme=simple/ajax/dojo "
, the corresponding theme file like text.ftl will be loaded. The attachment
is the dojo theme capture.

If you are interested or have  any advises, we can discuss it in detail.


[jira] Closed: (OFBIZ-2213) Error in Feature Type creation

2009-03-01 Thread Jacques Le Roux (JIRA)

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

Jacques Le Roux closed OFBIZ-2213.
--

Resolution: Fixed
  Assignee: Jacques Le Roux

> Error in Feature Type creation
> --
>
> Key: OFBIZ-2213
> URL: https://issues.apache.org/jira/browse/OFBIZ-2213
> Project: OFBiz
>  Issue Type: Bug
>  Components: ALL COMPONENTS
>Affects Versions: SVN trunk
> Environment: trunk 748884 and Demo Server
>Reporter: Eric DE MAULDE
>Assignee: Jacques Le Roux
>Priority: Trivial
> Fix For: SVN trunk
>
> Attachments: if-regexp_field.patch
>
>
> Error with  this field calls "field-name" instead of "field"

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



[jira] Commented: (OFBIZ-2214) Product Id for SEO

2009-03-01 Thread Eric DE MAULDE (JIRA)

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

Eric DE MAULDE commented on OFBIZ-2214:
---

Into Url and into page,
Google identifies words to analyse the page.
So words are important.

*** Example : 
http://demo.hotwaxmedia.com/ecommerce/catalog/200/202/p_WG-9943-B3

It's better to display "WG-9943-B3" than "WG-994301".

Into my application, virtual products can build around 200 variants.
Manually, it's too long to change each variant product id.

My futur target is to display each variant product into different pages,
and  so reference more pages to Google

> Product Id for SEO
> --
>
> Key: OFBIZ-2214
> URL: https://issues.apache.org/jira/browse/OFBIZ-2214
> Project: OFBiz
>  Issue Type: Improvement
>  Components: product
>Affects Versions: SVN trunk
> Environment: trunk 748884
>Reporter: Eric DE MAULDE
>Priority: Trivial
> Fix For: SVN trunk
>
> Attachments: ProductFeatureServices_productId-SEO.patch
>
>
> For SEO into URL,
> Google (by example) recognizes words
> but a word has to be separate by "/" or "-" or ","
> But OFBiz suggests Variant Product Id
> with a non-separated extension (the counter)

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



[jira] Commented: (OFBIZ-2213) Error in Feature Type creation

2009-03-01 Thread Eric DE MAULDE (JIRA)

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

Eric DE MAULDE commented on OFBIZ-2213:
---

Thanks Jacques,

Your changes has fixed the problem

> Error in Feature Type creation
> --
>
> Key: OFBIZ-2213
> URL: https://issues.apache.org/jira/browse/OFBIZ-2213
> Project: OFBiz
>  Issue Type: Bug
>  Components: ALL COMPONENTS
>Affects Versions: SVN trunk
> Environment: trunk 748884 and Demo Server
>Reporter: Eric DE MAULDE
>Priority: Trivial
> Fix For: SVN trunk
>
> Attachments: if-regexp_field.patch
>
>
> Error with  this field calls "field-name" instead of "field"

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



[jira] Updated: (OFBIZ-2215) Add Chinese translation for HR module

2009-03-01 Thread WeizhanGuo (JIRA)

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

WeizhanGuo updated OFBIZ-2215:
--

Attachment: HumanResUiLabels.xml

> Add Chinese translation for HR module
> -
>
> Key: OFBIZ-2215
> URL: https://issues.apache.org/jira/browse/OFBIZ-2215
> Project: OFBiz
>  Issue Type: Improvement
>  Components: humanres
>Affects Versions: SVN trunk
>Reporter: WeizhanGuo
> Fix For: SVN trunk
>
> Attachments: HumanResUiLabels.xml
>
>
> Add Chinese translation for HR module

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



[jira] Created: (OFBIZ-2215) Add Chinese translation for HR module

2009-03-01 Thread WeizhanGuo (JIRA)
Add Chinese translation for HR module
-

 Key: OFBIZ-2215
 URL: https://issues.apache.org/jira/browse/OFBIZ-2215
 Project: OFBiz
  Issue Type: Improvement
  Components: humanres
Affects Versions: SVN trunk
Reporter: WeizhanGuo
 Fix For: SVN trunk


Add Chinese translation for HR module

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



Error in installation of ofbiz

2009-03-01 Thread Vu Hong Thuan
I install Ofbiz with postgres 8.3 and have following error

Expression layoutSettings.companyName is undefined on line 32, column
14 in component://common/webcommon/includes/header.ftl.
The problematic instruction:
--
==> ${layoutSettings.companyName} [on line 32, column 12 in
component://common/webcommon/includes/header.ftl]
--

Java backtrace for programmers:
--
freemarker.core.InvalidReferenceException: Expression
layoutSettings.companyName is undefined on line 32, column 14 in
component://common/webcommon/includes/header.ftl.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
at freemarker.core.Expression.getStringValue(Expression.java:118)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
at freemarker.core.Environment.visit(Environment.java:209)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:209)
at freemarker.core.Environment.process(Environment.java:189)
at 
org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:205)
at 
org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:201)
at 
org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:245)
at 
org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:107)
at 
org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:994)
at 
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138)
at 
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:225)
at 
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393)
at 
org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:554)
at 
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138)
at 
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:225)
at 
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393)
at 
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:649)
at 
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138)
at 
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:225)
at 
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393)
at 
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:129)
at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:92)
at 
org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:98)
at 
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:677)
at 
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:490)
at 
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:259)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
at 
org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.

[jira] Commented: (OFBIZ-1825) Colors and localisation for the calendar

2009-03-01 Thread Jacques Le Roux (JIRA)

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

Jacques Le Roux commented on OFBIZ-1825:


Hi Marco,

It's just to know if you got a chance to work on this issue because I expected 
to put calendar i18n in release 9.3 which should come soon. 
Don't feel any pressure, if you think you will do it later just let us know so 
that we will not wait for it in 9.3

Thanks

> Colors and localisation for the calendar
> 
>
> Key: OFBIZ-1825
> URL: https://issues.apache.org/jira/browse/OFBIZ-1825
> Project: OFBiz
>  Issue Type: Improvement
>  Components: ALL COMPONENTS
>Affects Versions: SVN trunk
>Reporter: Jacques Le Roux
>Assignee: Jacques Le Roux
>Priority: Minor
> Fix For: Release Branch 9.3
>
> Attachments: calendar.patch, calendar_sequence.patch, 
> calendarDateSelectColor.patch, calendarDateSelectColor.patch, 
> calendarModified.patch, CommonScreens.patch, Existing.jpg, 
> LocalizedDate_it.patch, Proposition.jpg, WE_CAL.gif
>
>
> I tried to change the calendar colors, to be more "in the OFBiz way". Please 
> let me you know what you think.
> I also changed some colors to respect our CSS best practices (no color names).
> Here are some remarks :
> Colors
> *  I kept the 3 chars scheme when it's was obvious. For instance we don't 
> need to set #00 or #ff when actually #000 or #fff is sufficient. 
> * I used Wikipedia as reference http://en.wikipedia.org/wiki/Web_colors for 
> choising colors. While doing this change I wondered if we could not authorise 
> and even recommend to use sandard names for colors as shown in Wikipedia 
> page. I found it easier to recall a color by its names than by an hexa 
> number...! As long as we would use this Wikipedia reference I think it could 
> be possible to use names instead of hexa, WDYT ?
> * The days initials are not centered but at left (It's late and I did not 
> found the reason)
> We need to provide a localisation mean. From 
> http://electronicholas.com/calendar?style=default&format=natural it should 
> not be too hard. I propose a simple way, maybe we can do better
> * More calendar formats in a calendar.properties file (like the euro or 
> american ones)
> * For the moment I think all string are harcoded in calendar_date_select.js
> Date.weekdays = $w("S M T W T F S");
> Date.first_day_of_week = 0;
> Date.months = $w("January February March April May June July August 
> September October November December" );
> _translations = {
>   "OK": "OK",
>   "Now": "Now",
>   "Today": "Today"
> }
> A very simple way (but not very clever I must admit) could be to set a 
> property for the language to use in calendar.properties file and use it in a 
> switch statement with "hardcoded" strings in  calendar_date_select.js. Is 
> anybody aware of better ways to do that in Javascript or Prototype ?
> BTW I think we should delete calendarstyles.css and calendarTable.css. If 
> it's ok, I will do it when I will upate the attached patch later.

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



Re: svn commit: r748683 - in /ofbiz/trunk/applications: content/entitydef/entitymodel.xml order/entitydef/entitymodel.xml party/entitydef/entitymodel.xml

2009-03-01 Thread risalitim
I have seen that some contentId are inserted into "seed" xml file and  
some into "demo" xml file and so it can cause some little confusion.
For example ContentTypeData.xml, MiscData.xml, SeedBlogData.xml,  
Template.xml having some contentId but those file are declared as seed  
data.


I have removed "default-resource-name" attribute from Content and  
PartyClassificationGroup entity definition into rev. 748987.


I will remove it from Content entity labels on the next days if no-one  
disagree with this.


Thanks
Marco


Il giorno 28/feb/09, alle ore 22:53, David E Jones ha scritto:



Wow, these are worse than I thought. I'm not sure where these came  
from, or what the point of them is, but yes there certainly are a  
number of Content.contentName and Content.description entries.


One thing to keep in mind about those fields is they are usually for  
internal use ONLY, so i18n isn't needed. We don't need to  
internationalize EVERY field in the database... why not? Because  
that would imply that every field, even those used for internal  
administration by a smaller group of people who speak the same  
language, would need to be translated. Also, if an organization  
allowed entry in any language desired it would make it tough for  
those who didn't understand that language but needed to work with  
the data. In other words, it's a huge can of worms from a business/ 
organization/process perspective, and not something that technology  
can fix. There are specific places where i18n is needed and wanted.


Also, these values are in demo data and so the information in this  
file isn't even used or helpful for many instances of OFBiz.


My vote would be to remove those labels and also remove that setting  
from the Content entity. I don't think there is any reason to  
translate them as they would be used internally only and are of a  
somewhat technical nature for these demo Content records, kind of  
like comments in code.


-David


On Feb 27, 2009, at 2:46 PM, risali...@gmail.com wrote:


Hi David,

I agree with you but there are a lot of Content.description  
translation and PartyClassification.description labels and in this  
case we need to remove it or use it (adding default-resource-name  
on the entity).
Anyway I can revert the default-resource-name for those specific  
entities or remove those labels.

What did you think of it ?

Thanks
Marco

Il giorno 27/feb/09, alle ore 22:29, David E Jones ha scritto:



Are the entity field labels actually used for all of these entities?

Generally this feature ONLY makes sense for things that are part  
of seed data, things that may be entered by users should use other  
patterns for i18n.


The suspect entities that are included here include:

- Content (has the alternate locale associated content pattern for  
i18n)

- PartyClassificationGroup

The rest look fine, and are populated by seed data (ie data that  
is maintained with code).


-David


On Feb 27, 2009, at 1:26 PM, mrisal...@apache.org wrote:


Author: mrisaliti
Date: Fri Feb 27 20:26:54 2009
New Revision: 748683

URL: http://svn.apache.org/viewvc?rev=748683&view=rev
Log:
Some missing default-resource-name for entity labels.

Modified:
ofbiz/trunk/applications/content/entitydef/entitymodel.xml
ofbiz/trunk/applications/order/entitydef/entitymodel.xml
ofbiz/trunk/applications/party/entitydef/entitymodel.xml

Modified: ofbiz/trunk/applications/content/entitydef/ 
entitymodel.xml

URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/entitydef/entitymodel.xml?rev=748683&r1=748682&r2=748683&view=diff
= 
= 
= 
= 
= 
= 
= 
= 
= 
= 
= 
===
--- ofbiz/trunk/applications/content/entitydef/entitymodel.xml  
(original)
+++ ofbiz/trunk/applications/content/entitydef/entitymodel.xml  
Fri Feb 27 20:26:54 2009

@@ -150,6 +150,7 @@

 
   
   
@@ -412,6 +413,7 @@
 
 
   
   
@@ -731,6 +733,7 @@
 
 
   
   
@@ -1093,6 +1096,7 @@
 
 
   
   

Modified: ofbiz/trunk/applications/order/entitydef/entitymodel.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/entitydef/entitymodel.xml?rev=748683&r1=748682&r2=748683&view=diff
= 
= 
= 
= 
= 
= 
= 
= 
= 
= 
= 
===
--- ofbiz/trunk/applications/order/entitydef/entitymodel.xml  
(original)
+++ ofbiz/trunk/applications/order/entitydef/entitymodel.xml Fri  
Feb 27 20:26:54 2009

@@ -253,6 +253,7 @@
 
 
   
   
@@ -912,6 +913,7 @@
 
 
   
   
@@ -1276,6 +1278,7 @@
 
 
   
   

Modified: ofbiz/trunk/applications/party/entitydef/entitymodel.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/entitydef/entitymodel.xml?rev=748683&r1=748682&r2=748683&view=diff
= 
= 
= 
= 
= 
= 
= 
= 
= 
= 
= 
===
--- ofbiz/trunk/applications/party/entitydef/entitymodel.xml  
(original)
+++ ofbiz/trunk/applications/party/entitydef/entitymodel.xml Fri  
Feb 2

[jira] Closed: (OFBIZ-2086) States/Provinces not displaying properly for country

2009-03-01 Thread Jacques Le Roux (JIRA)

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

Jacques Le Roux closed OFBIZ-2086.
--

   Resolution: Fixed
Fix Version/s: SVN trunk

To be completed in another issue

> States/Provinces not displaying properly for country
> 
>
> Key: OFBIZ-2086
> URL: https://issues.apache.org/jira/browse/OFBIZ-2086
> Project: OFBiz
>  Issue Type: Bug
>  Components: ecommerce
>Affects Versions: SVN trunk
>Reporter: CJ Horton
>Priority: Minor
> Fix For: SVN trunk
>
>
> https://demo.hotwaxmedia.com/ecommerce/control/newcustomer
> The State/Province drop down only becomes active when 'United States' is 
> selected as the country.  Every state and province for every country is 
> displayed.  If you select a country other than the 'United States' no 
> states/provinces are displayed.
> Potential areas to check:
> applications/ecommerce/webapp/ecommerce/customer/newcustomer.ftl
> framework/common/webcommon/includes/states.ftl
> framework/common/src/org/ofbiz/common/CommonWorkers.java
>  

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



[jira] Commented: (OFBIZ-2110) Add initialAccount field to SalesOpportunity entity

2009-03-01 Thread Jacques Le Roux (JIRA)

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

Jacques Le Roux commented on OFBIZ-2110:


Pierre,

You suggested " a link to an employee in the role of 'account manager". Have 
you a patch for that and/or a more complete patch in general ?

> Add initialAccount field to SalesOpportunity entity
> ---
>
> Key: OFBIZ-2110
> URL: https://issues.apache.org/jira/browse/OFBIZ-2110
> Project: OFBiz
>  Issue Type: Bug
>  Components: order
>Affects Versions: SVN trunk
>Reporter: Vince Clark
>Assignee: Jacques Le Roux
>Priority: Minor
> Attachments: SalesOpportunityEntity.patch
>
>
> There is a field in the SalesOpportunity form to link to a Party but no field 
> in the entity to store it in.

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



[jira] Commented: (OFBIZ-2208) ServerHit aborts transactions when trying to create entries with duplicate startTime(s).

2009-03-01 Thread Jacques Le Roux (JIRA)

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

Jacques Le Roux commented on OFBIZ-2208:


Also the counter idea is a good one, as Karim proposed I will let the comment 
in so that people interested will just have to pick the idea. 
Waiting for Karim answer to commit. If you need something like that (counter) 
Karim you could propose a patch though...

> ServerHit aborts transactions when trying to create entries with duplicate 
> startTime(s).
> 
>
> Key: OFBIZ-2208
> URL: https://issues.apache.org/jira/browse/OFBIZ-2208
> Project: OFBiz
>  Issue Type: Bug
>  Components: framework
>Affects Versions: SVN trunk, Release Branch 4.0
> Environment: any
>Reporter: Karim Rahimpur
>Assignee: Jacques Le Roux
> Fix For: SVN trunk
>
> Attachments: ServerHitBin.java.patch
>
>
> org.ofbiz.webapp.stats.ServerHitBin.saveHit(...) causes transactions to be 
> aborted due to duplicate PKs.
> The problem is that said method will try to create two or more entries with 
> identical startTimes (i.e. duplicate hitStartDateTime and the other fields 
> composing the PK: visitId, contentId, hitStartDateTime, hitTypeId) if two or 
> more subsequent requests are made in a sufficiently small interval. This can 
> and *will* be the case for example if an application rapidly issues requests 
> for similar data. It would usually not be observed when human users cause 
> requests being issued.
> The cause is that the above mentioned method uses
> serverHit.create();
> to store the entries.
> A solution to this is to _create or update_ an existing entry, thus 
> overwriting an existing entry in case there already was an entry, but more 
> importantly avoiding the actual transaction being aborted. This may not 
> satisfy those who want to record each and every server hit even with equal 
> startTimes. For these cases other approaches might be considered ...
> This is an example where a transaction fails due to saveHit(...). In our case 
> an applet tries to pull data off the server and fails ...
> {panel}Failure in create operation for entity [ServerHit]: 
> org.ofbiz.entity.GenericEntityException: Error while inserting: 
> [GenericEntity:ServerHit][contentId,gdm.getProductFeatureApplAttrs(java.lang.String)][createdStamp,2009-02-24
>  10:34:29.454(java.sql.Timestamp)][createdTxStamp,2009-02-24 
> 10:34:29.454(java.sql.Timestamp)][hitStartDateTime,2009-02-24 
> 10:34:29.443(java.sql.Timestamp)][hitTypeId,REQUEST(java.lang.String)][lastUpdatedStamp,2009-02-24
>  10:34:29.454(java.sql.Timestamp)][lastUpdatedTxStamp,2009-02-24 
> 10:34:29.454(java.sql.Timestamp)][partyId,KR(java.lang.String)][referrerUrl,(java.lang.String)][requestUrl,https://127.0.0.1:8443/gdm/control/getProductFeatureApplAttrs(java.lang.String)][runningTimeMillis,8(java.lang.Long)][serverHostName,Kitty(java.lang.String)][serverIpAddress,192.168.1.70(java.lang.String)][userLoginId,karim(java.lang.String)][visitId,11900(java.lang.String)]
>  (SQL Exception while executing the following:INSERT INTO SERVER_HIT 
> (VISIT_ID, CONTENT_ID, HIT_START_DATE_TIME, HIT_TYPE_ID, NUM_OF_BYTES, 
> RUNNING_TIME_MILLIS, USER_LOGIN_ID, STATUS_ID, REQUEST_URL, REFERRER_URL, 
> SERVER_IP_ADDRESS, SERVER_HOST_NAME, LAST_UPDATED_STAMP, 
> LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP, INTERNAL_CONTENT_ID, 
> PARTY_ID, ID_BY_IP_CONTACT_MECH_ID, REF_BY_WEB_CONTACT_MECH_ID) VALUES (?, ?, 
> ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (Duplicate entry 
> '11900-gdm.getProductFeatureApplAttrs-2009-02-24 10:34:29-REQUEST' for key 
> 'PRIMARY')). Rolling back transaction.
> Exception: org.ofbiz.entity.GenericEntityException{panel}
> This issue seems to be related (it refers to the releae branch 4.0 and the 
> same error shows up):
> [https://issues.apache.org/jira/browse/OFBIZ-2041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]

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