Commit Graph
2007 Commits
Author SHA1 Message Date
Adrian Crum f7ab19876b Removed availableLocales and availableTimeZones from screen rendering context - they are not needed anymore. Also deleted an unused ftl file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686622 13f79535-47bb-0310-9956-ffa450edef68
2008-08-17 16:37:42 +00:00
Jacques Le Roux e7905f2c8c Fix the anti-pattern
if (* != null && *.size() > 0) { 
where * is a variable name (String or Collection). Rewritten to
    if (UtilValidate.isNotEmpty(*)) {

Done with Eclipse regex replace feature with
search = if \((\w+) *!= *null *&& *(\w+)\.size\(\) *> *0\) *\{
replace = if (UtilValidate.isNotEmpty($1)) {

And of course some hand-work for imports and cleaning. I compiled and tested with ant run-tests

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686591 13f79535-47bb-0310-9956-ffa450edef68
2008-08-17 07:47:18 +00:00
Scott Gray c98e7dc59f Removed unnecessary "error" response elements from the controller files, if no event is defined then "success" will always be the response name.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686577 13f79535-47bb-0310-9956-ffa450edef68
2008-08-17 00:00:49 +00:00
Adrian Crum adc1d1d145 Collapsible masthead, based upon a patch provided by Bruno Busco - https://issues.apache.org/jira/browse/OFBIZ-1919.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686515 13f79535-47bb-0310-9956-ffa450edef68
2008-08-16 15:52:47 +00:00
Si Chen c22c243cb9 reverted last commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686356 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 20:20:34 +00:00
Si Chen a00fc0f160 more comments on OFBIZ-1915
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686311 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 18:32:58 +00:00
Si Chen e5451f7f18 OFBIZ-1915 from Jeremy Wickersheimer for request-redirect-filter-param
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686301 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 18:15:39 +00:00
Adam Heath a9084a6f0d Add license header.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686256 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 15:41:20 +00:00
Adam Heath fe7cddc3a2 More use of ServiceRegistry.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686251 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 15:29:29 +00:00
Andrew Zeneski dae87c2e67 appears the the <include> sub-element cannot contain a list, instead each one needs to be named. Changed so that the properties are included again.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686027 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 20:41:34 +00:00
Adrian Crum 89245c4d92 Better handling of the masthead logo image link.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685969 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 17:33:29 +00:00
Adam Heath 963b50cc44 Bah, bad doogie, bad. Always at least *compile* your changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685964 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 17:16:42 +00:00
Adam Heath 851c88ea77 User agent and referer were star-crossed lovers. Now they have gone
out on their own.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685962 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 17:12:01 +00:00
Adam Heath e410552cc9 No longer *copy* the extra support files into the classes dir;
instead, just add them straight to the final jar.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685934 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 15:08:14 +00:00
Adam Heath 8328cfc565 Don't make base/start subdirs in build/classes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685783 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 06:16:19 +00:00
Adam Heath 1dfdb73a7a Add the standard license header.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685782 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 06:15:53 +00:00
Adam Heath 8caa026db8 Use a factory pattern to load available MethodOperation
implementations.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685778 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 05:55:17 +00:00
Jacques Le Roux 0df3e54285 One i18n and some French l10n
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685753 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 02:57:39 +00:00
Hans Bakker 1dc53d1a0e added security, also added the possibility for custumers to see their entered requests under the new security rules, added demo data to test all this
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685746 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 01:56:28 +00:00
Adrian Crum 67eecf7569 Small change to user preferences. The getUserPreferenceGroup service will simply retrieve default values instead of copying them to the user's preferences. This should help reduce the amount of data generated.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685588 13f79535-47bb-0310-9956-ffa450edef68
2008-08-13 15:44:16 +00:00
Jacques Le Roux cf7ce5e414 French translation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685474 13f79535-47bb-0310-9956-ffa450edef68
2008-08-13 07:57:06 +00:00
Adam Heath fdd61ca101 Start using annotations; this will make more sense in the next few
days.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685447 13f79535-47bb-0310-9956-ffa450edef68
2008-08-13 05:23:26 +00:00
Hans Bakker f97d937600 improved error message on suggestion of other committers
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685395 13f79535-47bb-0310-9956-ffa450edef68
2008-08-13 00:13:08 +00:00
Jacques Le Roux 03b1e78897 In some cases it case matrix cases were not enough high, in French for instance
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685128 13f79535-47bb-0310-9956-ffa450edef68
2008-08-12 12:27:11 +00:00
Jacques Le Roux df7903c723 Better French translation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685125 13f79535-47bb-0310-9956-ffa450edef68
2008-08-12 12:01:20 +00:00
Adrian Crum bd18bcae69 More CSS, HTML cleanups.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684565 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 18:06:00 +00:00
Adrian Crum cd3a137731 Removed deprecated CSS style sepBar, removed unnecessary align="left" HTML element attributes.
I did a global search and replace for the align="left" aatribute - I didn't check each replacement because there were hundreds of them. This shouldn't break any layout. If you spot something wrong, post a message on the dev mailing list and I will fix it.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684548 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 16:28:14 +00:00
Adam Heath 2617681b51 Remove svn:executable on a bunch of stuff.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684389 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 00:53:43 +00:00
Adam Heath 7f61d043c1 Few more generics things.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684378 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 23:54:33 +00:00
Adam Heath 90426d4b6d Split framework/base into framework/start; now all components have
exactly the same type of layout.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684377 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 23:38:36 +00:00
Jacques Le Roux 7a56d41286 Fix "Common labels are not included in the applications/content/webapp/content/website/WebSiteForms.xml" (https://issues.apache.org/jira/browse/OFBIZ-1903) - OFBIZ-1903
CommonCannotBeFound has never existed and is used in some places (mostly in Content comp.). I preferred to use "Could not be found"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684359 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 21:57:17 +00:00
Jacques Le Roux 0c91b9164f A patch from Markus Studer "German translations for ordermgr module" (https://issues.apache.org/jira/browse/OFBIZ-1908) - OFBIZ-1908
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684354 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 21:39:47 +00:00
Scott Gray ab7f3fb5e3 Fixed a problem with list widgets not being able to make use of *EntityLabels.xml localization, I'm not sure if I've taken the best possible approach but the problem is solved without causing any harm as far as I can see. Reported by Bruno Busco on the dev list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684244 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 12:45:52 +00:00
Adrian Crum ab5fac7dba Small fix for HtmlScreenRenderer.java - don't render an img element if there is no image to display.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684051 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 18:49:33 +00:00
Hans Bakker 0e16880a69 added buffer conversion which is required by the persistContentAndAssoc service to store email attachments
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@683752 13f79535-47bb-0310-9956-ffa450edef68
2008-08-07 23:42:38 +00:00
Adam Heath c9d5ac3ea9 Fix typo in Debug.verbose message.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@683441 13f79535-47bb-0310-9956-ffa450edef68
2008-08-06 23:11:34 +00:00
Adrian Crum aff5df07e3 Minilang set-calendar improvement - supply default local and time zone when they aren't available.
There was a problem with the set-calendar operation when it was called from the job scheduler - a NPE was thrown. This commit fixes that.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@683414 13f79535-47bb-0310-9956-ffa450edef68
2008-08-06 21:13:09 +00:00
Jacopo Cappellato 853ed7f633 Formatting and code cleanups after last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682657 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05 09:54:05 +00:00
Jacques Le Roux bfc0ea779c A patch from Marco Ruocco solving an issue on Windows : File.separator in Windows system is "\", that is, also, the first character of an escape sequence. So the replaceAll method expects another char after that.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682652 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05 09:36:52 +00:00
Adam Heath bb6796365f Fix generication of Iterate.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682395 13f79535-47bb-0310-9956-ffa450edef68
2008-08-04 14:16:15 +00:00
Jacopo Cappellato 8b9fc02614 Fixed wrong file name; I actually tried to use svn rename to change the file name but I had issues because the svn command seems to ignore upper/lower case characters.
Thanks to BJ for the bug report in the ml.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682350 13f79535-47bb-0310-9956-ffa450edef68
2008-08-04 11:56:37 +00:00
Adam Heath 99bf46f085 Switch most new File(string_with_path_separator) calls to
FileUtil.getFile.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682266 13f79535-47bb-0310-9956-ffa450edef68
2008-08-04 06:08:42 +00:00
Adam Heath 7ee96bdc1f Utility methods that convert string file paths to File objects.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682261 13f79535-47bb-0310-9956-ffa450edef68
2008-08-04 05:47:26 +00:00
Adam Heath cc3c62ffce Generification, enhanced-for, FastMap/FastList changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682246 13f79535-47bb-0310-9956-ffa450edef68
2008-08-04 03:00:54 +00:00
Adam Heath 60b7afc406 Add a variant of isValidDatabaseId that takes a StringBuilder.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682244 13f79535-47bb-0310-9956-ffa450edef68
2008-08-04 02:34:55 +00:00
Adam Heath 4f50ff1a92 Fix broken conversion to enhanced for loop; previous code started
checking at index 1, not index 0.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682228 13f79535-47bb-0310-9956-ffa450edef68
2008-08-03 22:29:53 +00:00
Adam Heath 06029fe7e1 One last update.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682104 13f79535-47bb-0310-9956-ffa450edef68
2008-08-03 05:19:45 +00:00
Adam Heath 2527b104a9 More FlexibleMapAccessor fallout.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682103 13f79535-47bb-0310-9956-ffa450edef68
2008-08-03 05:17:15 +00:00
Adam Heath eb18028c42 More generics work; a bit of fallout from the recent
FlexibleMapAccessor generification.  Plus a few additional changes.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682102 13f79535-47bb-0310-9956-ffa450edef68
2008-08-03 05:10:30 +00:00
Adam Heath a4dcc6e653 getResourceBundleMap returns ResourceBundleMapWrapper instead of
Map<String, Object>; this way, callers don't have to explicitly
cast to the former when they need to.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682101 13f79535-47bb-0310-9956-ffa450edef68
2008-08-03 04:28:17 +00:00