Re: Odd UI Behavior

2010-02-23 Thread Hans Bakker
Hi Adrian, this is caused by the go-home and go-last functionality in the requestmanager. The 'home' and 'last' requests are kept but only work properly when only one screen is open. If multiple screens are open the wrong 'last' and/or wrong 'home' request will be requested again. In your example

Re: "Premature end of file." error from Webslinger Servlet

2010-02-23 Thread Kaushik Chakraborty
- Where to check the .cowstate.xml files? I searched under Var directory of the site causing problem but could not find any. I restarted OFBiz number of times but that did not fix the problem (previously for such errors it was the solution ). - This is a pre-built system with an older version o

Odd UI Behavior

2010-02-23 Thread Adrian Crum
Using the latest trunk: 1. Log into the Example component as admin 2. Click the Help link (? in upper right corner) 3. Close the Help popup window 4. Click the language (or locale) link and change the locale 5. The main screen becomes the previous Help page 6. Navigate back to Example main page (u

Re: svn commit: r912645 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: form/ModelFormAction.java screen/ModelScreenAction.java

2010-02-23 Thread David E Jones
On Feb 23, 2010, at 11:15 PM, Adrian Crum wrote: > --- On Tue, 2/23/10, David E Jones wrote: >> Actually, my suggestion was not to add an attribute to the >> script element, but allow script text under the script >> element (surrounded by the funny CDATA thingy as needed to >> avoid having to es

Re: svn commit: r912645 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: form/ModelFormAction.java screen/ModelScreenAction.java

2010-02-23 Thread Adrian Crum
--- On Tue, 2/23/10, David E Jones wrote: > Actually, my suggestion was not to add an attribute to the > script element, but allow script text under the script > element (surrounded by the funny CDATA thingy as needed to > avoid having to escape characters all over the place). That could get real

Re: entity-one no longer converting types (probably a GenericEntity.setAllFields issue)

2010-02-23 Thread David E Jones
What's strange is that this was working fine, even on MySQL, the last time I played with it. Unfortunately that was a bit of time ago so I don't have a good reference to narrow this down. I'll try some things on Derby and see if I can reproduce it, and with more detailed steps to do so. -Davi

Re: entity-one no longer converting types (probably a GenericEntity.setAllFields issue)

2010-02-23 Thread Adrian Crum
I was unable to reproduce the problem in the Example component using Derby. -Adrian --- On Tue, 2/23/10, David E Jones wrote: > From: David E Jones > Subject: entity-one no longer converting types (probably a > GenericEntity.setAllFields issue) > To: dev@ofbiz.apache.org > Date: Tuesday, Febr

entity-one no longer converting types (probably a GenericEntity.setAllFields issue)

2010-02-23 Thread David E Jones
Has anyone made any changes GenericEntity.setAllFields method or the code underneath it? It no longer works unless the primary key consists only of String type fields. This is easy to reproduce, even in the Example Application, by trying to work with ExampleFeatureAppl records, which have a fr

Re: svn commit: r912645 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: form/ModelFormAction.java screen/ModelScreenAction.java

2010-02-23 Thread Adam Heath
Erwan de FERRIERES wrote: > Le 23/02/2010 17:46, Adam Heath a écrit : >> Erwan de FERRIERES wrote: >>> Le 22/02/2010 17:34, doo...@apache.org a écrit : Author: doogie Date: Mon Feb 22 16:34:47 2010 New Revision: 912645 URL: http://svn.apache.org/viewvc?rev=912645&view=rev >

Re: "Premature end of file." error from Webslinger Servlet

2010-02-23 Thread Adam Heath
Kaushik Chakraborty wrote: > Hi, > > I am receiving the following every time I am accessing any site built using > WebSlinger: > > javax.servlet.ServletException: Unknown message with code "Premature end of > file.". > > org.webslinger.AbstractMappingWebslingerServletContextFactory.getWe

"Premature end of file." error from Webslinger Servlet

2010-02-23 Thread Kaushik Chakraborty
Hi, I am receiving the following every time I am accessing any site built using WebSlinger: javax.servlet.ServletException: Unknown message with code "Premature end of file.". org.webslinger.AbstractMappingWebslingerServletContextFactory.getWebslingerServletContext(AbstractMappingWebsl

Re: shopping cart, promo_gwp, and multiple ship groups

2010-02-23 Thread Scott Gray
On 23/02/2010, at 6:27 PM, Adam Heath wrote: > For a client, we are allowing end-users to create multiple ship-group > destinations. This same client also has several promos, when if one > product is bought, you get a free gift with the purchase. > > All of the above is straight forward. > > Th

shopping cart, promo_gwp, and multiple ship groups

2010-02-23 Thread Adam Heath
For a client, we are allowing end-users to create multiple ship-group destinations. This same client also has several promos, when if one product is bought, you get a free gift with the purchase. All of the above is straight forward. The issue is when you purchase multiple of the original produc

Re: tomahawk theme

2010-02-23 Thread Adrian Crum
There are unclosed elements in the main navigation: Applications ... ... ??? -Adrian Ashish Vijaywargiya wrote: Today I have reviewed this theme. Good contribution

test cases in the future

2010-02-23 Thread Adam Heath
Is there an example of a complex, service/entity based test cases that changes the system time, and tests how things change over time? I was going thru some old ofbiz versions, and discovered an off-by-one fix in the shopping list recurring billing system, and would like to have a test case of th

Re: Accounting transaction for commission invoice

2010-02-23 Thread Bob Morley
Makes sense. I have gone with the individual methods to be consistent with other methods in the UtilAccounting class -- they split out a bunch of them so that they can embed the "known" type under the covers. As a side note, when I went to run this my JVM would actually die. It turns out that t

[jira] Commented: (OFBIZ-3424) Upgrade Tomcat version to 6.0.24

2010-02-23 Thread Anil K Patel (JIRA)
[ https://issues.apache.org/jira/browse/OFBIZ-3424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837427#action_12837427 ] Anil K Patel commented on OFBIZ-3424: - I have not tested the patch, but looks like it s

[jira] Commented: (OFBIZ-3497) using date-time type="time" shouldn't display a textbox for a date

2010-02-23 Thread Jacques Le Roux (JIRA)
[ https://issues.apache.org/jira/browse/OFBIZ-3497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837388#action_12837388 ] Jacques Le Roux commented on OFBIZ-3497: Ha! I see, sorry for the confusion. I mus

Re: svn commit: r912645 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: form/ModelFormAction.java screen/ModelScreenAction.java

2010-02-23 Thread Adrian Crum
David E Jones wrote: I guess what it comes down to is that if we could treat from-field like an expression we wouldn't need the hacks in value and we wouldn't need a separate expression attribute with yet another set of rules for people to learn. That would work too, and it would be a simple

Re: svn commit: r912645 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: form/ModelFormAction.java screen/ModelScreenAction.java

2010-02-23 Thread David E Jones
Actually, my suggestion was not to add an attribute to the script element, but allow script text under the script element (surrounded by the funny CDATA thingy as needed to avoid having to escape characters all over the place). As for the expression attribute... IMO it would be better to simpli

Re: svn commit: r912645 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: form/ModelFormAction.java screen/ModelScreenAction.java

2010-02-23 Thread Adrian Crum
Adam Heath wrote: Adrian Crum wrote: On a related note... The problem Adam tried to fix is one of the problems I have with how the scripting language is used. Here are some examples: Both of those set elements do the same thing. The first example is (in my opinion) a hack - it should throw

Re: svn commit: r912645 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: form/ModelFormAction.java screen/ModelScreenAction.java

2010-02-23 Thread Adam Heath
Adrian Crum wrote: > On a related note... > > The problem Adam tried to fix is one of the problems I have with how the > scripting language is used. Here are some examples: > > > > > Both of those set elements do the same thing. The first example is (in > my opinion) a hack - it should throw a

Re: svn commit: r912645 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: form/ModelFormAction.java screen/ModelScreenAction.java

2010-02-23 Thread Adrian Crum
On a related note... The problem Adam tried to fix is one of the problems I have with how the scripting language is used. Here are some examples: Both of those set elements do the same thing. The first example is (in my opinion) a hack - it should throw an exception. The value attribute s

Re: tomahawk theme

2010-02-23 Thread Ashish Vijaywargiya
Today I have reviewed this theme. Good contribution - thanks Erik & Bruno. -- Ashish On Fri, Feb 19, 2010 at 7:28 AM, Adam Heath wrote: > Have people had a chance to look at the tomahawk theme yet?  I'd like > to have a vote to switch the default theme to tomahawk.  It's much > more usable than

Re: svn commit: r912645 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: form/ModelFormAction.java screen/ModelScreenAction.java

2010-02-23 Thread Adam Heath
> update your OFBiz instance to any version after the 912645, compile and > just try to login to > https://localhost:8443/ap/control/main or > https://localhost:8443/ar/control/main > > The page will not be displayed, and the only thing you will see is this > message > ERROR rendering error page

Re: svn commit: r912645 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: form/ModelFormAction.java screen/ModelScreenAction.java

2010-02-23 Thread Erwan de FERRIERES
Le 23/02/2010 17:46, Adam Heath a écrit : Erwan de FERRIERES wrote: Le 22/02/2010 17:34, doo...@apache.org a écrit : Author: doogie Date: Mon Feb 22 16:34:47 2010 New Revision: 912645 URL: http://svn.apache.org/viewvc?rev=912645&view=rev Log: Make use of FSE.expand(), instead of expandString,

Re: svn commit: r912645 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: form/ModelFormAction.java screen/ModelScreenAction.java

2010-02-23 Thread Adam Heath
Erwan de FERRIERES wrote: > Le 22/02/2010 17:34, doo...@apache.org a écrit : >> Author: doogie >> Date: Mon Feb 22 16:34:47 2010 >> New Revision: 912645 >> >> URL: http://svn.apache.org/viewvc?rev=912645&view=rev >> Log: >> Make use of FSE.expand(), instead of expandString, to provide support >> fo

Re: svn commit: r912645 - in /ofbiz/trunk/framework/widget/src/org/ofbiz/widget: form/ModelFormAction.java screen/ModelScreenAction.java

2010-02-23 Thread Erwan de FERRIERES
Le 22/02/2010 17:34, doo...@apache.org a écrit : Author: doogie Date: Mon Feb 22 16:34:47 2010 New Revision: 912645 URL: http://svn.apache.org/viewvc?rev=912645&view=rev Log: Make use of FSE.expand(), instead of expandString, to provide support for direct setting of values in widgets. This clos

Re: Accounting transaction for commission invoice

2010-02-23 Thread Jacopo Cappellato
On Feb 23, 2010, at 5:29 PM, Bob Morley wrote: > Jacopo -- > > I like the utility method that you provided. However, the implementation of > these services is in minilang so calling it is a little bit of a pain. Yes, there are some examples of its usage in Minilang, like: but I agree it

[jira] Commented: (OFBIZ-3497) using date-time type="time" shouldn't display a textbox for a date

2010-02-23 Thread Erwan de FERRIERES (JIRA)
[ https://issues.apache.org/jira/browse/OFBIZ-3497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837300#action_12837300 ] Erwan de FERRIERES commented on OFBIZ-3497: --- Jacques, we are not speaking of the

Re: Accounting transaction for commission invoice

2010-02-23 Thread Bob Morley
I like the idea of employee expenses, but we have not considered them to date for our solution. Right now I think they would be entered by the bookkeeper directly as an acctgTrans with associated entries. Not think I think having that type of invoice is a bad idea (as a more robust model of thes

[jira] Commented: (OFBIZ-3497) using date-time type="time" shouldn't display a textbox for a date

2010-02-23 Thread Jacques Le Roux (JIRA)
[ https://issues.apache.org/jira/browse/OFBIZ-3497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837272#action_12837272 ] Jacques Le Roux commented on OFBIZ-3497: Erwan, Sure, I know that, it's in the exa

[jira] Commented: (OFBIZ-3497) using date-time type="time" shouldn't display a textbox for a date

2010-02-23 Thread Erwan de FERRIERES (JIRA)
[ https://issues.apache.org/jira/browse/OFBIZ-3497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837233#action_12837233 ] Erwan de FERRIERES commented on OFBIZ-3497: --- Hi Jacques, if you want to choose t

[jira] Commented: (OFBIZ-3497) using date-time type="time" shouldn't display a textbox for a date

2010-02-23 Thread Jacques Le Roux (JIRA)
[ https://issues.apache.org/jira/browse/OFBIZ-3497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837217#action_12837217 ] Jacques Le Roux commented on OFBIZ-3497: Hi Erwan, This makes sense indeed since w

Re: svn commit: r915275 - in /ofbiz/trunk/specialpurpose/projectmgr: entitydef/ script/org/ofbiz/project/ webapp/projectmgr/WEB-INF/actions/ webapp/projectmgr/project/ widget/ widget/forms/

2010-02-23 Thread Hans Bakker
Ho Jacopo, Yes i considered that, however a project is a special case. the whole project manager is arranged using the parentWorkeffortId because in a project the task can only have one parent, not more. This has nothing to do with the dependencies which is also used, this is just a matter of org

[jira] Updated: (OFBIZ-3497) using date-time type="time" shouldn't display a textbox for a date

2010-02-23 Thread Erwan de FERRIERES (JIRA)
[ https://issues.apache.org/jira/browse/OFBIZ-3497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Erwan de FERRIERES updated OFBIZ-3497: -- Attachment: OFBIZ-3497.png An example > using date-time type="time" shouldn't display

[jira] Created: (OFBIZ-3497) using date-time type="time" shouldn't display a textbox for a date

2010-02-23 Thread Erwan de FERRIERES (JIRA)
using date-time type="time" shouldn't display a textbox for a date -- Key: OFBIZ-3497 URL: https://issues.apache.org/jira/browse/OFBIZ-3497 Project: OFBiz Issue Type: Bug

Re: svn commit: r915275 - in /ofbiz/trunk/specialpurpose/projectmgr: entitydef/ script/org/ofbiz/project/ webapp/projectmgr/WEB-INF/actions/ webapp/projectmgr/project/ widget/ widget/forms/

2010-02-23 Thread Jacopo Cappellato
On Feb 23, 2010, at 11:47 AM, hans...@apache.org wrote: > Author: hansbak > Date: Tue Feb 23 10:47:21 2010 > New Revision: 915275 > > URL: http://svn.apache.org/viewvc?rev=915275&view=rev > Log: > add optional sequenceNum to be able to order phases and tasks within a project > > Modified: >o

Actual completion date of a fixed asset maintenance

2010-02-23 Thread Vikas Mayur
Hi Devs, In revision 912532 I have introduced an automated test testUpdateFixedAssetMaintAndWorkEffortComplete for testing the process of updating a fixed asset maintenance. In the commit I have also removed WorkEffort.actualCompletionDate from the previous tests as this newly added test uses the

[jira] Updated: (OFBIZ-3492) Tomahawk LookupLayer Layout update

2010-02-23 Thread Sascha Rodekamp (JIRA)
[ https://issues.apache.org/jira/browse/OFBIZ-3492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sascha Rodekamp updated OFBIZ-3492: --- Attachment: OFBIZ-3492_tomahawk_lookup_update.patch Updated against the latest trunk (resolve

Re: Accounting transaction for commission invoice

2010-02-23 Thread Jacopo Cappellato
I would suggest to replace static "equals" condition for "PURCHASE_INVOICE" with the utility method: if (CommonWorkers.hasParentType(delegator, "InvoiceType", "invoiceTypeId", invoiceTypeId, "parentTypeId", "PURCHASE_INVOICE")) { // } (where invoiceTypeId could contain "COMMISSION_INVO