Commit Graph
4064 Commits
Author SHA1 Message Date
Adam Heath 592cb808d2 Use MapContext, and dynamically create links to the includes files for
each accessor method.  This fixes a memory leak, and allows for the
included file to be cleared from the cache and reread, without having to
clear all files that included it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904252 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 20:11:28 +00:00
Adam Heath 93d0182f49 Make all variables in ControllerConfig private, and add accessor
functions to them.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904250 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 20:10:51 +00:00
Adam Heath 00e090f9cb MapStack now extends MapContext.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904249 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 20:10:00 +00:00
Adam Heath 7873922c09 Add a map stack implementation that is not hard-coded to only take
string keys, and doesn't auto-add itself as 'context'.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904248 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 20:09:34 +00:00
Adam Heath 002e61fb9e Add a new getPropertyNumber variant that takes a url.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904247 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 20:09:00 +00:00
Andrew Zeneski 0f95b50cae fixed problem with the multi-element lookup form not passing a valid javascript object to the lookup function
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904198 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 18:20:05 +00:00
Jacques Le Roux 4e78c6d974 A patch from Sascha Rodekamp "UI upgrade, new lookups" (https://issues.apache.org/jira/browse/OFBIZ-3374) - OFBIZ-3374
It's not perfect, but hopefully this time I will not have to revert it. I think it's time to introduce it, to let everybody have an idea and test.
Anyway, it can't hurt as it's only used in the Form Widget Examples screen for now. To test: https://localhost:8443/example/control/FormWidgetExamples

I find that the positioning mechanism is only working with the bizznesstime theme (at list centering, the only case I tried with all themes). But it should not be a big deal to fix since it works already in one theme.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904047 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 11:57:12 +00:00
Scott Gray 91b171f685 Removed auto-generated TODO comments (missed in my last commit)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903957 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 05:00:06 +00:00
Scott Gray 753286d071 Cleaned import statements
Removed auto-generated TODO comments
Suppressed some serialization warnings

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903955 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 04:55:30 +00:00
Scott Gray 1ad191b93c Moved some workflow related test services out of common and into the workflow component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903938 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 02:01:47 +00:00
Adam Heath 6465fa07a1 Remove one constructor, using a single one for both variants.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903810 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:57:05 +00:00
Adam Heath 6760492ff1 Since the only way to access the parsed services is thru static
helper methods, it means the only callers will be local to the current
thread.  This then leads to not having to synchronize the parsing of the
xml data.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903809 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:56:37 +00:00
Adam Heath 649c3dc24c Remove unused private accessor methods.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903808 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:56:02 +00:00
Adam Heath 7468d7efca Make all methods private, except for the static ones; since it isn't
possible to create an instance outside of this class, and the existing
static methods don't store the instance they create, the methods aren't
can't be used outside of this class.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903807 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:55:19 +00:00
Adam Heath 34f7d2f14c Make these constructors private; nothing is actually instantiating these
classes, except locally for reading purposes.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903805 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:54:45 +00:00
Adam Heath 605c4e4087 Add a bunch more convertors.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903804 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:54:00 +00:00
Adam Heath 7ab0b4dea7 Remove several methods from the runtime-compiled wrapper class; this
removes use of 2.1M of permgem memory.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903803 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:53:14 +00:00
Adam Heath e768559d39 Bother; these uses of FastMap are actually rather stupid. The map is
only populated once at startup, then never modified again.  What I have
discovered is that, while FastMap is supposed to be more stable in
memory allocation and cpu utilization, there was one leg of it's
internal structure that was *extremely* unbalanced.  Ie, consider a
binary tree with 128 nodes, with 7 top level nodes, and then all the
rest of the nodes are on one side of the tree.  Since these maps are
never modified after startup, we might as well just use a HashMap here.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903802 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:52:27 +00:00
Adam Heath 041a20e96b Similiar to the last commit, don't maintain back-links to view entities;
instead, just the names of the entities are stored.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903801 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:51:47 +00:00
Adam Heath 9a206397ca Don't store references to connected ModelEntity; instead, just store the
entity name.  This helps the connected object graph at runtime, as it
used to be view->entity->view->entity, in very long loops.  This is one
part of the fix.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903800 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:51:03 +00:00
Adam Heath b98a11cf66 Fix for a memory leak; sometime during the past, the initial url fetched
from the servlet container started being a jndi:// form; so, when
include processing was introduced, the urls wouldn't match up.  Instead,
implement a temporary hack to convert the servlet path to a file, so
that the urls will be normalized.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903799 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:50:17 +00:00
Adam Heath 52143c14c1 Fix case of DynamicViewEntity vivification into ModelViewEntity not
storing the ModelReader.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903796 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:49:16 +00:00
Adam Heath 83c49e9095 Fix handling of default values in getPropertyNumber.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903766 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 17:55:13 +00:00
Erwan de Ferrieres f4364051e4 Adding website information on BI component so we can change the UI theme
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903673 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 15:22:49 +00:00
Hans Bakker afbdeab656 moved the helpscreens into the framework: a first step. core parts of the content manager to follow. Removed the references to the help screens in confluence
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903589 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 10:09:49 +00:00
Jacques Le Roux e03e7ad6f2 After Adam's remark about formatting (actually mostly about Double instead of double), Sascha provided a new patch which was still not well formatted. So I decided to use the same formatting than in getPropertyValue. Even if it does not follow the "brackets around blocks rule" Sun convention. I have explained this a bit to Sascha at https://issues.apache.org/jira/browse/OFBIZ-3425 "Extend getPropertyNumber, Default Value"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903571 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 08:59:25 +00:00
David E. Jones dd572e0d75 Change based on recent dev list discussion so that break-on-error acts more like an ignore error type of thing; when combined with require-new-transaction=true this will effectively result in no issues from the called service bubbling up to the calling service; with this change manually clearing out the error message and response code is no longer necessary
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903567 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 08:48:55 +00:00
David E. Jones 7dc4d6b942 Improvement for the ignore-error attribute on the form->actions->service element to cause it to call the service in its own transaction, which is the only way that makes sense because otherwise the error will cause the transaction the screen is running in to be rolled back and all subsequent queries will blow up
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903537 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 03:10:37 +00:00
Jacques Le Roux 0eb5a20261 A patch from Sascha Rodekamp "Extend getPropertyNumber, Default Value" (https://issues.apache.org/jira/browse/OFBIZ-3425) - OFBIZ-3425
Adds a method to have a default value to getPropertyNumber methods, can't hurt and maybe useful in some cases.




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903197 13f79535-47bb-0310-9956-ffa450edef68
2010-01-26 12:30:02 +00:00
Adrian Crum 3a6737b186 Restored a temporal expression form that was lost during the recent work.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903124 13f79535-47bb-0310-9956-ffa450edef68
2010-01-26 08:26:13 +00:00
Bruno Busco 2096cb4dda Borders should be added using CSS not HTML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902890 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 17:37:44 +00:00
Bruno Busco 4a87df358c Better Italian labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902887 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 17:36:01 +00:00
Bruno Busco e36939e337 Added "create", "refresh", "collapse-all" and "expand-all" classes to the pertinent button-bar buttontext links.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902885 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 17:28:28 +00:00
Hans Bakker d6e27a9e32 include birt introduction in OFbiz technocal document
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902805 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 13:20:17 +00:00
Hans Bakker bab1c5b36d function leave feedback and screen
- function auto relist item and screen
- Get  feedback data from ebay site and save into ofbiz.
- Add rate pictures into framework/images/webapp/images
- screen for show awaiting feedback and recent feedback from buyer
- help screens are provided

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902716 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 06:26:23 +00:00
Adrian Crum 2bef93bf64 ComparableRange test improvement.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902525 13f79535-47bb-0310-9956-ffa450edef68
2010-01-24 03:18:52 +00:00
Adrian Crum 389e4e4431 Refactored DateRange.java:
1. Extends new class ComparableRange.
2. downcastTimestamp protected method renamed to timestampToDate and made static.
3. Misc code cleanups.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902512 13f79535-47bb-0310-9956-ffa450edef68
2010-01-24 00:04:22 +00:00
Adrian Crum 883fd96835 Small JavaDoc fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902510 13f79535-47bb-0310-9956-ffa450edef68
2010-01-24 00:01:08 +00:00
Adrian Crum 4051b7a1eb Unit test for previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902347 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 06:19:47 +00:00
Adrian Crum a31caf2059 Sanity check on ComparableRange - make sure the constructor arguments are the same class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902345 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 06:00:53 +00:00
Adrian Crum 3e3daa73b2 Small fixup for last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902344 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 05:52:34 +00:00
Adrian Crum 5a80577ec9 Created a Range interface, and an implementation for all Comparable classes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902342 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 05:39:30 +00:00
Adrian Crum a6bf032741 Small improvement to ClobToString converter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902341 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 05:38:09 +00:00
Scott Gray aa3f01ade4 Removed deprecated method UtilXml.readXmlDocument(InputStream), concludes org.ofbiz.base deprecation cleanup
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902230 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:11:38 +00:00
Scott Gray ec93506d54 Removed deprecated class UtilParse.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902229 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:11:32 +00:00
Scott Gray 8e276aba74 Removed deprecated method StringUtil.htmlSpecialChars(String, boolean, boolean, boolean), there was an undeprecated overloaded method (StringUtil.htmlSpecialChars(String)) calling this method so I've moved the implementation to it and marked it as deprecated.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902228 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:11:27 +00:00
Scott Gray 21b953e7d8 Removed deprecated class OutputStreamByteCount.java
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902227 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:11:22 +00:00
Scott Gray ea4c4c892e Removed deprecated method ConnectionFactory.tryGenericConnectionSources(String, Element)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902226 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:11:18 +00:00
Scott Gray 812ec2585e Added missing deprecated annotations.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902225 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:10:20 +00:00
Bruno Busco 9aee1dda33 Changed back forgotPassword screen to use main-decorator instead of login-decorator.
This fixes an error that has been erroneously introduced in trunk rev. 894330
Thank you Mridul Pathak and Scott for reporting this in ML.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902138 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 16:02:33 +00:00