Commit Graph
689 Commits
Author SHA1 Message Date
Hans Bakker e46fbe8080 some more updates to mainly the blog functions, but also other problems found on the way, still not finish yet altough the blog post function now works correctly including picture, also did some minilanguage syntax changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@735383 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 03:34:57 +00:00
Hans Bakker b0d8771eda some more faultfixing and improvements in the blog functions, looks like designed properly but not debugged?
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@734960 13f79535-47bb-0310-9956-ffa450edef68
2009-01-16 10:18:04 +00:00
Hans Bakker 264610cbed screen widget not working in content management system cmssite, however fixed now
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@733275 13f79535-47bb-0310-9956-ffa450edef68
2009-01-10 14:11:39 +00:00
Jacques Le Roux faf32a33a4 A temporary patch (workaround) for the minipoll bug reported on user ML. I will open a Jira issue ASAS I will get access to Jira (DSN resolution issue currently it seems)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@732296 13f79535-47bb-0310-9956-ffa450edef68
2009-01-07 10:30:38 +00:00
David E. Jones 874f02e9da Manual merge of typecheckcleanup200810 branch as of rev 731346 in that branch, resolved all conflicts; with this BigDecimal is not the native type for many entity fields and is used for many calculations; some work is still needed in certain areas of the project but this covers the most critical ones; thanks especially to Scott for his work on this
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@731851 13f79535-47bb-0310-9956-ffa450edef68
2009-01-06 07:13:36 +00:00
Hans Bakker f744a968dc improved error reporting, get websiteId from websiteWorker, no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@729829 13f79535-47bb-0310-9956-ffa450edef68
2008-12-29 04:24:22 +00:00
Jacopo Cappellato 5b810b9f29 Minor formatting fixes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@726836 13f79535-47bb-0310-9956-ffa450edef68
2008-12-15 22:07:55 +00:00
David E. Jones 3269e7602c Various cleanups dones while reviewing functionality including formatting, refactoring, better descriptions and consistent defaults. In general no functionality change, though did add a default of N for the require return receive setting on the ProductStore
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@725022 13f79535-47bb-0310-9956-ffa450edef68
2008-12-10 07:31:39 +00:00
Hans Bakker 1815b08e3d send order confirmation from view screen not working: now fixed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@721651 13f79535-47bb-0310-9956-ffa450edef68
2008-11-29 08:35:22 +00:00
Si Chen b2dd6cecdf email mime types should not be case sensitive when processing emails
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@720237 13f79535-47bb-0310-9956-ffa450edef68
2008-11-24 17:52:44 +00:00
Hans Bakker caf7e4a2e1 show and enable to add content to customer requests
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@720114 13f79535-47bb-0310-9956-ffa450edef68
2008-11-24 04:44:00 +00:00
Jacques Le Roux db2fd711a4 Fix "Can't create a customer, nor a prospect and I suppose an employee" (https://issues.apache.org/jira/browse/OFBIZ-2058) - OFBIZ-2058
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@719926 13f79535-47bb-0310-9956-ffa450edef68
2008-11-22 21:50:16 +00:00
Adam Heath 4333ce562f s/new HashMap/UtilMisc.makeMapWritable/g
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@712927 13f79535-47bb-0310-9956-ffa450edef68
2008-11-11 03:28:11 +00:00
Hans Bakker 032f4302b5 small improvement on previous commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@711948 13f79535-47bb-0310-9956-ffa450edef68
2008-11-06 19:14:57 +00:00
Hans Bakker e84caf1180 show the original filename for display
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@711938 13f79535-47bb-0310-9956-ffa450edef68
2008-11-06 18:46:43 +00:00
Jacques Le Roux dc2f394283 While trying to fix https://issues.apache.org/jira/browse/OFBIZ-2010, I found that returnByteBuffer was obviously missing. Then I found also that "Add Party Content" is not only missing that but a lot more. I ran out of time, I attach a patch with current work to OFBIZ-2010.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@706908 13f79535-47bb-0310-9956-ffa450edef68
2008-10-22 09:05:02 +00:00
Hans Bakker 878d05e668 make the recieval of attachments possible with html messages
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@703930 13f79535-47bb-0310-9956-ffa450edef68
2008-10-13 07:13:55 +00:00
Joseph Eckard ff5eef4f9f Simplifying printer lookup & fallback to default printer
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@703854 13f79535-47bb-0310-9956-ffa450edef68
2008-10-12 17:49:20 +00:00
Joseph Eckard 49787b7bda Fixed bug in OutputServices reformat; simplified getting printer names in groovy script
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@703724 13f79535-47bb-0310-9956-ffa450edef68
2008-10-11 20:11:33 +00:00
Joseph Eckard 40f20d57c5 Quick reformat and cleanup; needs another pass
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@703712 13f79535-47bb-0310-9956-ffa450edef68
2008-10-11 19:10:06 +00:00
Joseph Eckard 3979e9b413 Adding support for document and print request attributes to the sendPrintFromScreen service (orientation, collate, finishings, copies, page ranges, etc.)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@703709 13f79535-47bb-0310-9956-ffa450edef68
2008-10-11 18:55:10 +00:00
Ashish Vijaywargiya d84e03e327 Applied patch from JIRA issue no.(https://issues.apache.org/jira/browse/OFBIZ-1989) -: Give NPE in rendering the Survey page.
Thanks Sumit Pandit for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@702740 13f79535-47bb-0310-9956-ffa450edef68
2008-10-08 07:06:54 +00:00
Adrian Crum 14a8694c8b Fixed a bug in the ContentManagementServices.java file - reported in https://issues.apache.org/jira/browse/OFBIZ-1575.
I commented out the problem code in case anyone finds an issue with the change. It shouldn't be a problem though - all other content types do nothing if the content is empty, so we should be able to do the same with binary data.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@698373 13f79535-47bb-0310-9956-ffa450edef68
2008-09-23 22:04:12 +00:00
Adrian Crum e99c4956c1 Fix problem with UI labels in Content Manager - reported on user ml.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@693881 13f79535-47bb-0310-9956-ffa450edef68
2008-09-10 16:18:37 +00:00
Adrian Crum ead3169d5c FlexibleStringExpander refactor.
1. Improved parsing logic - the entire expression is pre-parsed now.
2. Factory method stores parsed expressions in the cache.
3. Single null/empty expression instance - saves on memory.
4. Class names and variable names shortened to reduce object size.
5. Small performance improvements.

The expression cache is set up with no limit. We'll have to see if that needs to be changed. Larger installations might need to limit the expression cache size.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687422 13f79535-47bb-0310-9956-ffa450edef68
2008-08-20 18:50:04 +00:00
Adam Heath 5bc7e67662 Iterate the correct list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686668 13f79535-47bb-0310-9956-ffa450edef68
2008-08-18 02:37:10 +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
Adam Heath 5930d43294 Another anti-pattern discovery.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685951 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 16:24:56 +00:00
Adam Heath 66d7ec8c94 Use IN instead of looping and creating a bunch of sub-expressions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685945 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 15:37:17 +00:00
Jacopo Cappellato 693ed39c85 Improved some comments; slightly enhanced error handling for the "cms" event; some minor fixes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685587 13f79535-47bb-0310-9956-ffa450edef68
2008-08-13 15:33:15 +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 ad92d19911 Rewrite logList/logMap to use StringBuilder internally.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682260 13f79535-47bb-0310-9956-ffa450edef68
2008-08-04 05:32:49 +00:00
Adam Heath f91abc991b s/StringBuffer/StringBuilder/g
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682257 13f79535-47bb-0310-9956-ffa450edef68
2008-08-04 04:50:00 +00:00
Adam Heath 763bdfde18 Avoid creating new base object wrappers; instead use valueOf.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682253 13f79535-47bb-0310-9956-ffa450edef68
2008-08-04 04:28:23 +00:00
Adam Heath 9ab50c57a4 Make all ServiceEngine method declarations have generics markup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682252 13f79535-47bb-0310-9956-ffa450edef68
2008-08-04 04:18:12 +00:00
Adam Heath 4f5ae70382 Switch to FastList/FastMap/FastSet; they have more stable memory
allocation than java.util variants.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682251 13f79535-47bb-0310-9956-ffa450edef68
2008-08-04 04:02:01 +00:00
David E. Jones 83f56ef712 Deprecating the loopSubContentCache transform because it is a huge mess and the loopSubContent uses the cache anyway; also found that the DemoWebSitePublishPointData.xml file had half of the ContentAssocs going one way, and half another; that is now fixed so they always go from parent to child; this required changes to the loopSubContent transform and various other cleanups along the way and a few fixes; some of these sample uses of the content infrastructure have got to be close to the worst code I've so hopefully someone will have some time to continue cleaning this up and keep their head about them while doing so in order to not make it worse
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@681276 13f79535-47bb-0310-9956-ffa450edef68
2008-07-31 05:03:31 +00:00
Adrian Crum 0c28a5a7e9 Fixed bug in EmailServices.java where it assumed optional parameters existed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@679168 13f79535-47bb-0310-9956-ffa450edef68
2008-07-23 19:41:12 +00:00
Hans Bakker 8096e9634c first version of issue OFBIZ-1886: add statusId field to communicationrole, more testing and additions will follow
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@678605 13f79535-47bb-0310-9956-ffa450edef68
2008-07-22 00:52:16 +00:00
Hans Bakker 1c9e035ee1 add new roles for communicationevents and properly assign them for incoming emails aded mca file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@678341 13f79535-47bb-0310-9956-ffa450edef68
2008-07-21 04:15:42 +00:00
David E. Jones 63698de234 Fixed bug where links with jsessionid from a cms page had the link built out of order with the jsessionid in the middle
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@677683 13f79535-47bb-0310-9956-ffa450edef68
2008-07-17 18:52:57 +00:00
David E. Jones 7a7762a6bd A few cleanups on this class, done before realizing it wasn't the one I was looking for anywy, and I'm not sure if it's used at all
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@677647 13f79535-47bb-0310-9956-ffa450edef68
2008-07-17 17:38:15 +00:00
Scott Gray 5e54a8a82f Fixed what looks like a potential NPE source
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@677164 13f79535-47bb-0310-9956-ffa450edef68
2008-07-16 06:12:15 +00:00
Bilgin Ismet Ibryam 9dff7c0683 Fixed a bug reported in Jira Issue OFBIZ-1869 "FOPException"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@675872 13f79535-47bb-0310-9956-ffa450edef68
2008-07-11 08:58:29 +00:00
Adrian Crum 4bd597df22 FreeMarkerWorker.java improvements:
1. Better handling of the FreeMarker Configuration instance. Eliminated the need for synchronizing code.
2. OFBiz transforms are now kept in the Configuration object - no need to load them into the rendering context on every run.
3. Some small code cleanups.

FreeMarkerViewHandler.java improvements:

1. Eliminated redundant Configuration object initialization by cloning the Configuration object kept in FreeMarkerWorker.
2. Now supports the "component://" syntax for page attribute.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@674222 13f79535-47bb-0310-9956-ffa450edef68
2008-07-05 18:43:21 +00:00
Jacopo Cappellato b2ac94a266 Added support for the skip-end attribute to form widgets of type "multi": now it is easier to add "global" form parameters to multi forms by concatenating a single form to a multi form with skip-end set to true.
Modified the way submitted multi form rows are counted: now the hidden _rowCount field in the form is no more needed because rows are counted in the ServiceMultiEventHandler (using the util methods that I have implemented in the UtilHttp class).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@667930 13f79535-47bb-0310-9956-ffa450edef68
2008-06-15 06:27:15 +00:00
Marco Risaliti 890995e01e Removed some unused bsh scripts (Part of issue OFBIZ-1801)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@667658 13f79535-47bb-0310-9956-ffa450edef68
2008-06-13 21:20:21 +00:00
Jacopo Cappellato 2128610fa6 Based on a recent discussion in the dev list, and especially on the comments from David Jones and the work done by Adrian Crum, I'm committing a patch to refactor all the widget rendering methods and some of the content and Freemarker rendering classes to use Appendable instead of Writer. OFBIZ-1816
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662328 13f79535-47bb-0310-9956-ffa450edef68
2008-06-02 05:27:12 +00:00
Adrian Crum a6c9ae6425 Oops, missed some files in last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662127 13f79535-47bb-0310-9956-ffa450edef68
2008-06-01 02:34:49 +00:00
Scott Gray 8830da20fb Fix for OFBIZ-1813 reported by Jacapo Cappellato, NPE when rendering PDF attached to the order confirmation email
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661931 13f79535-47bb-0310-9956-ffa450edef68
2008-05-31 02:18:06 +00:00