Commit Graph
1959 Commits
Author SHA1 Message Date
Adam Heath a2fd254167 Make FreeMarkerWorker.getWrappedObject auto-cast to whatever type the
caller wants.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044232 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 07:21:09 +00:00
Adam Heath 45a81692b5 Deprecate the local getArg/getWrappedObject wrappers in all transforms.
Several ftl transforms had local methods, to that wrapped the same named
method in FreeMarkerWorker.  Near as I can tell, this was to reduce
local typing, by not having to always type FreeMarkerWorker.  Having
these local methods increases the permgen memory use(by increasing the
size of the bytecode).  Also, it makes it more difficult to
cross-reference; when the getArg method is seen by a developer, is it a
local method, or a static import?  Using the fully qualified variant
makes it easier to understand what is going on.

The replacement is to use the fully qualified versions in
FreeMarkerWorker.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044231 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 07:20:57 +00:00
Adam Heath bde3386152 Bother; this code was never ever run. The findByAnd variant it ended up
using was the Object... version.  In essence, creating a new Object[]
{map, null, String}, and then trying to convert that whole thing to a
map(which would have failed).

broken since: 745407, initial checkin
date: Wed Feb 18 08:04:48 2009 +0000

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1043997 13f79535-47bb-0310-9956-ffa450edef68
2010-12-09 15:14:36 +00:00
Adam Heath 10fa2ac694 In the persistRootCompDoc event, the loop over the results from service
persistContentRevisionAndItem was fetching values from the previous
iteration over the persistContentAndAssoc service.

broken since: http://svn.ofbiz.org/svn/ofbiz/trunk@6770, initial checkin
date: Fri Feb 17 22:14:40 2006 +0000

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1043996 13f79535-47bb-0310-9956-ffa450edef68
2010-12-09 15:14:25 +00:00
Hans Bakker 6cab58f905 change all @yahoo.com to @example.com Suggestion from Scott
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040914 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 09:38:00 +00:00
Adam Heath d241a1049a Fix several xml files that had DOS line endings; converted them to UNIX,
so that on fresh checkouts they will be auto-converted to native.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040833 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 00:15:17 +00:00
Adam Heath b1fbc9800d Remove uses of delegator.findByPrimaryKey(Cache)?, and replace with findOne.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040801 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 22:03:58 +00:00
Adam Heath 3f8ba48174 Make use of several copy() helper methods in UtilIO; these methods all use an internal buffer, instead of the old code that copied 1 byte or 1 character at a time.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040799 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 22:03:46 +00:00
Jacques Le Roux d2d3552892 Generalizes by using countries.ftl
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040440 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 09:01:51 +00:00
Jacques Le Roux bbc854feb9 According to Dukian at OFBIZ-4031 those lines should be removed. I just kept 2 duplicates in Chinese, and one in German
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040078 13f79535-47bb-0310-9956-ffa450edef68
2010-11-29 11:46:56 +00:00
Jacques Le Roux d555ce6c36 Fix duplicates in labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039858 13f79535-47bb-0310-9956-ffa450edef68
2010-11-28 09:56:44 +00:00
Jacques Le Roux 66c5dd10a0 A patch from Dukian "Add Traditional Chinese translation for applications, ecommerce, and ofbizsetup" (https://issues.apache.org/jira/browse/OFBIZ-4031) - OFBIZ-4031
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039574 13f79535-47bb-0310-9956-ffa450edef68
2010-11-26 21:56:14 +00:00
Hans Bakker 78b5293c60 change style of new blog article button
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039243 13f79535-47bb-0310-9956-ffa450edef68
2010-11-26 03:16:45 +00:00
Bruno Busco eae5209812 Added missing uiLabels property-map loading in screens used in the Ajax form update.
This caused some labels to not being localized when using the form pagination.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1037079 13f79535-47bb-0310-9956-ffa450edef68
2010-11-19 23:22:48 +00:00
Bruno Busco ac92eeffd0 Enabled column sorting in Survey list, WebSite list and DataResource list forms
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1037078 13f79535-47bb-0310-9956-ffa450edef68
2010-11-19 23:19:10 +00:00
Bruno Busco 6896249104 Enabled column sorting in ListContent form
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1036985 13f79535-47bb-0310-9956-ffa450edef68
2010-11-19 19:14:13 +00:00
Hans Bakker 46d74a9789 replacing an empty blog summary with text did not work and moving labels from ecommerce to content because used in both components
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1036332 13f79535-47bb-0310-9956-ffa450edef68
2010-11-18 07:28:45 +00:00
Hans Bakker 73344a5802 blog summary could not be updated, in the same process move the editarticle form from ecommerce to content because also used there.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1036329 13f79535-47bb-0310-9956-ffa450edef68
2010-11-18 06:29:25 +00:00
Bruno Busco d7ac05f2d4 Better Italian labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1032661 13f79535-47bb-0310-9956-ffa450edef68
2010-11-08 18:25:44 +00:00
Hans Bakker f04c360b32 article not showing in summary, corrected misplaced pagetitle
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1027370 13f79535-47bb-0310-9956-ffa450edef68
2010-10-26 05:57:28 +00:00
Hans Bakker 71304ff538 make more use of the cache in order to speed up the ecommerce frontend
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1027347 13f79535-47bb-0310-9956-ffa450edef68
2010-10-26 03:04:48 +00:00
Bruno Busco 599547f6b5 The retrievePortletAttributes.groovy is not needed any more since it is now embedded in the include-portal-page widget.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1023427 13f79535-47bb-0310-9956-ffa450edef68
2010-10-17 07:22:16 +00:00
Hans Bakker 37cac8d112 update blog info did not work
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1022517 13f79535-47bb-0310-9956-ffa450edef68
2010-10-14 13:19:45 +00:00
Hans Bakker 2650fb9cd0 missed some updates in the last blog commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1022050 13f79535-47bb-0310-9956-ffa450edef68
2010-10-13 09:41:39 +00:00
Hans Bakker 3f5020065a some more error correction for the update blog in ecommerce
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1022048 13f79535-47bb-0310-9956-ffa450edef68
2010-10-13 09:34:48 +00:00
Hans Bakker 2feb0cd91d allow safe html in blog services
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1021729 13f79535-47bb-0310-9956-ffa450edef68
2010-10-12 10:23:11 +00:00
Hans Bakker ca1c8d4e40 enable blog demo data again
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1004149 13f79535-47bb-0310-9956-ffa450edef68
2010-10-04 08:57:05 +00:00
Hans Bakker 5e2b246042 corrected error in blogseed data as reported by Scott
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1002900 13f79535-47bb-0310-9956-ffa450edef68
2010-09-30 00:04:03 +00:00
Jacques Le Roux 82c88d191a Temporary workaround to allow ant run-install to run correctly
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1002825 13f79535-47bb-0310-9956-ffa450edef68
2010-09-29 19:42:22 +00:00
Jacques Le Roux 7ab7d8e9b1 Temporary workaround to allow ant run-install-seed to run correctly
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1002822 13f79535-47bb-0310-9956-ffa450edef68
2010-09-29 19:33:55 +00:00
Hans Bakker 6ba5f17fae change one file from blog function from demo to seed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1001748 13f79535-47bb-0310-9956-ffa450edef68
2010-09-27 14:04:45 +00:00
Hans Bakker 9588d6f6b9 correct blog demo data
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1001368 13f79535-47bb-0310-9956-ffa450edef68
2010-09-26 06:41:58 +00:00
Jacques Le Roux e842192d80 Better French labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1000521 13f79535-47bb-0310-9956-ffa450edef68
2010-09-23 16:16:19 +00:00
Bruno Busco a9a0a85260 Fields in Portlet attribute editing forms should be accessed directly and not from the "attributeMap".
This change should be extended to all other Portlet attribute edit forms

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@998605 13f79535-47bb-0310-9956-ffa450edef68
2010-09-19 07:19:03 +00:00
Scott Gray 74097de4be Fix for OFBIZ-3832, adding a forum entry causes an illegal argument exception. The problem was that one of the parameters passed to a Math.min(int, int) call was actually a String and the call-class-method doesn't attempt to convert arguments, it possibly should but I didn't change that here.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996069 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 05:24:12 +00:00
Scott Gray 7521b01612 Content search execution code was incorrectly located within an if block, preventing the search from executing if no features were selected. Resolves OFBIZ-3927
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996057 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 03:34:09 +00:00
Scott Gray a8753bd854 Corrected usage of Lucene API to be compatible with our current version (2.4.1), partially resolves OFBIZ-3927
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996056 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 03:34:02 +00:00
Scott Gray b06da51278 Remove the target mime check for text/plain when writing text, previously any target type other than text/html or text/plain would always receive an empty string as output
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996054 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 03:33:48 +00:00
Scott Gray e125415317 Generics markup
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996053 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 03:33:40 +00:00
Scott Gray d15f054082 Correct direction when searching for content to index, the direction is non-intuitive but I've left it as is for now
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996052 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 03:33:31 +00:00
Scott Gray d0cbebbd41 Add SUB_CONTENT to the list of contentAssocTypeIds to look for when indexing content
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996051 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 03:33:16 +00:00
Scott Gray d72ba2672d Remove commented debug statements
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995720 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10 09:34:37 +00:00
Scott Gray b0e084508a Simplify method by passing a default value to UtilProperties.getPropertyValue(...)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995719 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10 09:34:29 +00:00
Scott Gray 30aff06401 Formatting fixes, no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995716 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10 09:26:51 +00:00
Scott Gray aea24f851c Correct a couple of copy/paste errors.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995715 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10 09:26:43 +00:00
Scott Gray 8c91d61ece Generics markup, no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995704 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10 08:53:18 +00:00
Erwan de Ferrieres 0b8998e9e1 Missing French uiLabel for FormFieldTitle_decoratorContentId
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@993401 13f79535-47bb-0310-9956-ffa450edef68
2010-09-07 15:51:54 +00:00
Erwan de Ferrieres cd78a16fba OFBIZ-3647 Create dataResource from content -- A patch from Nicolas Malin -- https://issues.apache.org/jira/browse/OFBIZ-3647
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@993395 13f79535-47bb-0310-9956-ffa450edef68
2010-09-07 15:30:21 +00:00
Ashish Vijaywargiya 4607fdd36e Applied patch from jira issue - OFBIZ-3923 - Bug in updating local file content.
attachUploadToDataResource (member service of updateContentAndUploadedFile service group) service calls saveLocalFileDateResource simple method to save the local file and attach it to data resource. The case where updating a local file content but not uploading a new file is being handled but doesn't work since on finding DataResource object "isUpdate" flag is not set to "Y".

Here is the patch for the fix. Also fixed typo in simple method name, saveLocalFileDateResource => saveLocalFileDataResource.

Thanks Mridul for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@993344 13f79535-47bb-0310-9956-ffa450edef68
2010-09-07 13:19:02 +00:00
Jacques Le Roux 2cc0283da6 <?xml version="1.0" encoding="iso-8859-1"?> allows to read accentuated characters in Docbook
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@990539 13f79535-47bb-0310-9956-ffa450edef68
2010-08-29 10:53:28 +00:00