Commit Graph
27737 Commits
Author SHA1 Message Date
Adrian Crum 33f04b40e7 New method for UtilXml.java - convert a DOM node name to a Java field name or Java class name.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1489360 13f79535-47bb-0310-9956-ffa450edef68
2013-06-04 09:41:34 +00:00
Jacques Le Roux 91f0337093 Fix a typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1489162 13f79535-47bb-0310-9956-ffa450edef68
2013-06-03 20:40:53 +00:00
Jacques Le Roux 5bffbb20bf A fixing patch from Leon for "Some enhancement to password change." https://issues.apache.org/jira/browse/OFBIZ-5176
This line should not have been changed, "requirePasswordChange" can come from UserLogin not only "request"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488938 13f79535-47bb-0310-9956-ffa450edef68
2013-06-03 09:34:26 +00:00
Adrian Crum d1723ce249 JobPoller improvement - make it a ServiceConfigListener so service config file changes can be made at run-time. One <thread-pool> attribute doesn't get updated: "jobs" (the queue size) - which would require creating a new ThreadPoolExecutor instance, and that would require a lot of complicated synchronization code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488736 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 16:25:09 +00:00
Adrian Crum c7eb2f2622 ServiceConfigUtil improvement - notify listeners when the config file is reloaded.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488727 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 15:03:41 +00:00
Adrian Crum 43751eec49 Small improvement to the new service config models: move thread pool constants to the ThreadPool model, and initialize instances from the constant values.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488715 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 14:25:25 +00:00
Adrian Crum 528059c90d Improved attribute value validation in ThreadPool.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488695 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 12:19:58 +00:00
Adrian Crum 032960984a Bug fix in new ServiceConfigUtil code - do not use cached DOM object when creating models.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488694 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 12:19:02 +00:00
Adrian Crum 86aef5bf36 Converted JobPoller.java over to the new service config design.
https://issues.apache.org/jira/browse/OFBIZ-5204


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488671 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 11:32:30 +00:00
Hans Bakker 3d05d7acbc payment edit screen actual currency not correct, reordered the fields, removed the actions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488659 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 10:40:07 +00:00
Hans Bakker c262409c97 create payment in home currency when order was in foreign currency
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488656 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 09:57:32 +00:00
Adrian Crum 38a3319174 Bug fix for NotificationGroup.java - if the <notification-group> element name attribute is being used as the key to a Map, then we should make it required.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488646 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 06:41:54 +00:00
Adrian Crum 59633013b4 Clean up and format service-config.xsd so it is easier to read and understand.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488645 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 06:37:11 +00:00
Adrian Crum fac18de056 New models for the serviceengine.xml file. They are not used yet - the ServiceConfigUtil class needs to be updated to use them, as well as other code that uses ServiceConfigUtil. The new models were contributed by Christoph Neuroth and were refactored by me.
https://issues.apache.org/jira/browse/OFBIZ-5204




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488643 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 05:15:57 +00:00
Adrian Crum 6e88a24bcb Fixed some bugs in the form widget column sorting code:
1. URL parameters were being mangled by clunky string manipulation code.
2. The sort column logic was piggy-backed on the pagination event. I created a new choice for the form widget <on-event-update-area> element - "sort-column" - so column sort events can update their own areas.
3. The parameter name for the sort column was hard-coded, so column sorting in multiple lists on the same screen would not work. I added a new <form> attribute - "sort-field-parameter-name" - so each list can be sorted separately.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488315 13f79535-47bb-0310-9956-ffa450edef68
2013-05-31 17:07:00 +00:00
Adrian Crum babfc9bfdd Small improvement to the Ajax JS functions - allow a complete screen refresh if the specified area ID equals "window". This is helpful for form widgets that have certain events that require a screen update instead of a container update.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488240 13f79535-47bb-0310-9956-ffa450edef68
2013-05-31 14:10:17 +00:00
Jacques Le Roux 90e57da9da Fixes a bug reported by Skip on user ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488188 13f79535-47bb-0310-9956-ffa450edef68
2013-05-31 12:11:27 +00:00
Jacques Le Roux b4735dcfc3 A patch from Ankit Jain for "User is redirected to showcart page when any error comes on checkout page." https://issues.apache.org/jira/browse/OFBIZ-5206
On checkout page if any error comes it redirects user back to showcart page with an error message.
Expected : Error should be shown on the same page.

To reproduce the issue,
Goto OrderEntry -> Add any product to cart -> click on Quick finalize order now select shipping address & shipping method but don't select any payment option and now click on "Continue to Final Order Review" link. You will be redirected to showcart page and with a error message. "Please select a method of payment."
And expected behaviour is to show the error message on the same checkout page.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488127 13f79535-47bb-0310-9956-ffa450edef68
2013-05-31 08:27:48 +00:00
Jacques Le Roux 45fee0240d Reverts r1487997 and uses Stephen's patch for Fixes "CheckOutEvents setCheckOutPages" https://issues.apache.org/jira/browse/OFBIZ-4161
There was an extra check in CheckOutEvents.setCheckOutPages that prevented an error message from being produced when no payment method was selected on the "How shall you pay" step of the checkout process. 

jleroux: and you got redirected to the order entry page, with the patch you stay on the payment method page.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488000 13f79535-47bb-0310-9956-ffa450edef68
2013-05-30 20:42:31 +00:00
Jacques Le Roux 995111a5c3 Fixes "CheckOutEvents setCheckOutPages" https://issues.apache.org/jira/browse/OFBIZ-4161
Simply returns an error in request and get to the view, as does shipping

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1487997 13f79535-47bb-0310-9956-ffa450edef68
2013-05-30 20:35:05 +00:00
Adrian Crum 9b0094f191 Small fix for screen widget <container> element - allow expressions in the auto-update-interval attribute.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1487966 13f79535-47bb-0310-9956-ffa450edef68
2013-05-30 18:48:28 +00:00
Adrian Crum bd2edf26f6 Fixed a bug in ajaxUpdateAreaPeriodic JS function - the interval parameter is seconds, not milliseconds.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1487923 13f79535-47bb-0310-9956-ffa450edef68
2013-05-30 16:44:23 +00:00
Jacques Le Roux 890b2e0abb A slightly modified patch from Parimal Gain for "Find Order functions - Not working when junk values entered for product Id" https://issues.apache.org/jira/browse/OFBIZ-5201
Problem specification and step -
1) Go to Order Manager app > Find Orders
2) Enter valid product id for which order exists
3) Relevant orders with entered product value would be shown in search results
4) Enter invalid product id - JUNK value
5) Error behvaior:All orders on the system would be highlighted 
6) Actual behavior: No order should be shown as search results, as no order exists with this JUNK product id on system

Observation -
When looked into code level found that system apply check for two condition -
1) If passes productId starts or ends with % or * then add that in condition list as it is and it returns all order that contains the word for product Ids.
2) If the above condition is failed the check if the product corresponding to product id is present or not.
3) If exists then check for variants (if its virtual)all this.
4) If product not exists then the action is missing i.e. no condition is added and it returns all order available.

Recommendation -
There are two ways to solve the issue -
1) If product corresponding to passes productId is not present then return message to user that order is not present.
2) If the thought process for current behavior is show all record if product not available then user should get a message as well that "Order is not available for your search product but we have all these order in system" to convey the correct message to user. 

jleroux: The 1st solution is used. I simply added in label that no productId entered would return all the orders, also in French



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1487854 13f79535-47bb-0310-9956-ffa450edef68
2013-05-30 13:21:28 +00:00
Adrian Crum 7d7407caba New feature - Column screen widgets. This enables easy layout of multi-column screens/reports. The columns are rendered as <table> elements - so no more broken layouts caused by unpredictable floats, etc.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1487587 13f79535-47bb-0310-9956-ffa450edef68
2013-05-29 18:17:46 +00:00
Jacques Le Roux 33e003d376 Sometimes, when the server is a bit slow, it's enjoyable to know it. This spin waiter will help in those cases
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1487405 13f79535-47bb-0310-9956-ffa450edef68
2013-05-29 08:47:43 +00:00
Hans Bakker 73eb987ddd make payment method field optional on the edit payment screen to show the paymentmethod is empty. when mandatory the field will always show filled even if empty
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1487357 13f79535-47bb-0310-9956-ffa450edef68
2013-05-29 07:21:07 +00:00
Hans Bakker ff2c038a34 improve payment form to select payment method depending on organization party
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1487323 13f79535-47bb-0310-9956-ffa450edef68
2013-05-29 06:41:13 +00:00
Jacques Le Roux 5928ebd2e0 Related to https://issues.apache.org/jira/browse/OFBIZ-4332 "Pagination in find order screen doesn't work (With patch)" but not the real issue which is only for R11.04 and R10.04
This screen did not take into account the widget.form.defaultViewSize properties, here is the needed change

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1487130 13f79535-47bb-0310-9956-ffa450edef68
2013-05-28 21:31:12 +00:00
Adrian Crum c1cc2308b0 Updated the HTML DOCTYPE declaration - paving the way for HTML5.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1486831 13f79535-47bb-0310-9956-ffa450edef68
2013-05-28 09:21:36 +00:00
Adrian Crum 57205498d6 Fixed some FIXMEs in MacroFormRenderer.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1486828 13f79535-47bb-0310-9956-ffa450edef68
2013-05-28 09:14:42 +00:00
Adrian Crum a67fd498c1 Clean up code formatting in MacroFormRenderer. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1486784 13f79535-47bb-0310-9956-ffa450edef68
2013-05-28 07:11:39 +00:00
Adrian Crum f1a85663d1 Entity engine optimization: Use SELECT * when the fields to select have not been specified.
There was some code to check for this, but it was testing a "fields to select" List that was never empty, so SELECT * was never used.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1486552 13f79535-47bb-0310-9956-ffa450edef68
2013-05-27 09:49:02 +00:00
Hans Bakker 48d62a2bfb remove partystatus from the PartyRoleAndPartyDetail view, causes demo data to not show up and multiple status records will show duplicates
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1486016 13f79535-47bb-0310-9956-ffa450edef68
2013-05-24 11:31:06 +00:00
Hans Bakker 6a070b08fb remove not existing fields in demo data
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1485975 13f79535-47bb-0310-9956-ffa450edef68
2013-05-24 08:50:51 +00:00
Jacques Le Roux 334c716283 Add a mean to collect and show the Requests Events durations using Metrics https://issues.apache.org/jira/browse/OFBIZ-5198
This has involuntarily slipped in, thanks to Adrian who reviewed

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1485620 13f79535-47bb-0310-9956-ffa450edef68
2013-05-23 09:05:38 +00:00
Jacques Le Roux eb9f05e7aa Add a mean to collect and show the Requests Events durations using Metrics https://issues.apache.org/jira/browse/OFBIZ-5198
Fulfill the goal with some more:
* makes the Metrics main parameters (estimationSize, estimationTime and smoothing) dynamically changeable (added in serverstats.properties)
* there is no threshold handling for event metrics


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1485601 13f79535-47bb-0310-9956-ffa450edef68
2013-05-23 07:55:14 +00:00
Jacques Le Roux 65c327a5f9 A sligthly modified patch from Jonatan Soto for "ConcurrentModificationException when cancelling an order" https://issues.apache.org/jira/browse/OFBIZ-5194
After the order gets cancelled, there is a loop in OrderView.groovy@122 that removes promotional order line items retrieved from the OrderReadHelper class when cancelled. This is what makes the ConcurrentModificationException to be thrown.

For further details, check out the following thread at the dev mailing list: http://ofbiz.markmail.org/message/vmm65cmbf5hkmqm6?page=2

jleroux: I simply put a comment and removed the useless temporary orderItemListFiltered variable

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1485432 13f79535-47bb-0310-9956-ffa450edef68
2013-05-22 21:29:02 +00:00
Adrian Crum fa77ee6655 Fixed a bug in the entity engine pk cache where view entities went stale - https://issues.apache.org/jira/browse/OFBIZ-5192.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1484279 13f79535-47bb-0310-9956-ffa450edef68
2013-05-19 12:29:44 +00:00
Adrian Crum 00e0e6555d Fixed a problem in Web Tools that was caused by recent entity model changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1484268 13f79535-47bb-0310-9956-ffa450edef68
2013-05-19 10:58:14 +00:00
Adrian Crum e0ccd44b0f Small improvement to the Performance Metrics feature - sort by name the list of metrics.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1484150 13f79535-47bb-0310-9956-ffa450edef68
2013-05-18 17:31:45 +00:00
Adrian Crum e5099432a0 Fixed a bug in the performance metrics feature where the wrong request Map was being updated in some cases.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1484145 13f79535-47bb-0310-9956-ffa450edef68
2013-05-18 16:46:01 +00:00
Adrian Crum 9bd42ec3a2 Reverted revision 1483822.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1484134 13f79535-47bb-0310-9956-ffa450edef68
2013-05-18 16:12:50 +00:00
Jacques Le Roux 929a06dfd5 Improves the Metrics stats by adding a new column used only by requests. It's quite useful to measure the real (not smoothed) durations of events in notably *chained* requests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1483822 13f79535-47bb-0310-9956-ffa450edef68
2013-05-17 14:21:02 +00:00
Jacques Le Roux 8ca89fc25d Reverts r1482796 and comments about no current implementation rather than removing attributes
Thanks to Jacopo's comment in dev ML

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482911 13f79535-47bb-0310-9956-ffa450edef68
2013-05-15 15:38:43 +00:00
Jacques Le Roux 3abb2933d6 When I moved XA Pool to the Attic I forgot to remove these XA Pool specific attributes. They were now misleading.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482796 13f79535-47bb-0310-9956-ffa450edef68
2013-05-15 12:50:54 +00:00
Jacopo Cappellato 352bed051d Fixed typos
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482689 13f79535-47bb-0310-9956-ffa450edef68
2013-05-15 06:27:41 +00:00
Hans Bakker 893b2db5f9 spelling error in accounting request corrected
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482665 13f79535-47bb-0310-9956-ffa450edef68
2013-05-15 03:08:30 +00:00
Adam Heath 7b9961afcd FEATURE: In NoTransaction.call, completely unwrap all nested exceptions, and re-wrap the innermost one. This is just like InTransaction.call.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482509 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 18:09:38 +00:00
Adam Heath 952e43cdb5 FEATURE: When calling services from an incoming http requests, allow for a different request and session attribute name to be specified.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482508 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 18:09:31 +00:00
Adam Heath 8133384848 FEATURE: Add TimestampToString converter; this parallels the existing StringToTimestamp implementation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482507 13f79535-47bb-0310-9956-ffa450edef68
2013-05-14 18:09:22 +00:00