Commit Graph
212 Commits
Author SHA1 Message Date
Jacques Le Roux 0e0519e802 All tabs to 4 spaces in *.groovy, *.java, *.xml
Done with Eclipse S/R "\t"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755696 13f79535-47bb-0310-9956-ffa450edef68
2009-03-18 18:43:49 +00:00
David E. Jones 34f9e0a0f6 Added link-type=hidden-form attribute and parameter sub-element to the menu and screen widget link elements; some refactoring and cleanup to avoid too much code redundancy in this (though there is certainly still quite a bit here); changes the MyPortalMenus.xml#CommSubTabBar to use this since it is an example reported by Bilgin; WARNING: I don't have a good test case for this so testing from Bilgin or I guess Hans would be very appreciated
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755022 13f79535-47bb-0310-9956-ffa450edef68
2009-03-16 22:12:30 +00:00
David E. Jones f3a4873431 Changed SurveyWrapper to support rendering from a flexible location, ie component://, and changed DemoSurvey data to use component://; fixes issue with ecommerce now that it is in specialpurpose instead of applications
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@754536 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 21:53:00 +00:00
Jacques Le Roux f796e230d2 catch( => catch(
}else => } else

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@751005 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:55:43 +00:00
Jacques Le Roux dfebb46e4b }else{ => } else {
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@751004 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:51:02 +00:00
Jacques Le Roux c9d918afa2 }catch => } catch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@751003 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:50:08 +00:00
Jacques Le Roux ec8e04ad01 try{ => try {
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@751002 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:49:18 +00:00
Jacques Le Roux 639a784790 while( => while (
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750998 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:38:03 +00:00
Jacques Le Roux fc6db9e886 if( => if (
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750997 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:36:09 +00:00
Jacques Le Roux 13a934f823 In spirit of Adam's r749341 and following http://java.sun.com/docs/codeconv/html/CodeConventions.doc7.html#489
The idea is also that a lot of code is duplicated and then changed (copy/paste). Hence having a rightly formatted code help to keep it rightly formatted
1st (simple) step : ){ => ) { (I checked all occurrences but of course other pairs of eyeballs are welcome)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750993 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:31:13 +00:00
Marco Risaliti 3741b557f7 Fix wrong package name of ConvertTree java class and changes tabs to 4 spaces.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@746337 13f79535-47bb-0310-9956-ffa450edef68
2009-02-20 18:54:49 +00:00
Jacques Le Roux 9494db14ae Fix some bugs and misc. (not sure about functionalities, at least now it does not hang)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@745890 13f79535-47bb-0310-9956-ffa450edef68
2009-02-19 14:59:58 +00:00
Hans Bakker 564527ce31 add a content navigation tree, demo data and including a DOS tree conversion program to be able to mimic an office file server
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@745407 13f79535-47bb-0310-9956-ffa450edef68
2009-02-18 08:04:48 +00:00
David E. Jones f27b4eeaaa No functional changes, just reorganizing code: moved email services from content to the framework/common component except the CommunicationEvent related ones which are now in the party component along with other CommunicationEvent resources; changed framework components so that webapp no longer depends on common and common is higher level than the various tool components which was an odd dependency before; one new thing is in here and that is an entity called EmailTemplateSetting which is meant to be a generic version of the ProductStoreEmailSetting entity so we can have configurable email templates without depending on ProductStore, still need to write the service to send email from this (sendMailFromTemplateSetting)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@744727 13f79535-47bb-0310-9956-ffa450edef68
2009-02-15 19:34:49 +00:00
Jacques Le Roux 56a7b15d30 Revert r743038, Actually r743038 does not fix this error (I mixed up with sendMailDated in log)
So I tried using allow-html="safe" and after allow-html="any" in sendMail service definition but none is working (of course the default allow-html="none" is also not working)

I will trace to see where it should be encoded..


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@743044 13f79535-47bb-0310-9956-ffa450edef68
2009-02-10 18:30:29 +00:00
Jacques Le Roux 7386b8d763 Fix an issue in sendmail when special chars where used but not encoded
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@743038 13f79535-47bb-0310-9956-ffa450edef68
2009-02-10 18:11:01 +00:00
David E. Jones c273a99919 Changed ContentWrapper classes to use the new StringWrapper class; some cleanups required like not trying to Base64 and URLEncoder encode the strings coming out of it, instead change those back to a String so that the general html encoder will get them
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742413 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 11:58:47 +00:00
Hans Bakker 0e58b86c96 more checks on missing data, added error message
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741383 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 03:03:58 +00:00
Jacopo Cappellato e1b1c85e1e Added two new methods to the ViewHandler interface: getter/setter methods for the "name" field, used to store the name of the view handler as set in the controller.xml file.
No functional change, but this mode is required by the upcoming new screen renderer based on Freemarker macros.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@739792 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 17:12:19 +00:00
Hans Bakker 6ccdeb9af0 also add the possibility to store screens in a short/long/local data resource text. (if somebody knows an easier way of getting the first entry out of a map, let me know?)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@737482 13f79535-47bb-0310-9956-ffa450edef68
2009-01-25 03:37:00 +00:00
Jacques Le Roux 572b7683e0 All tabs to 4 spaces in *.groovy, *.java, *.xml : less problems in future with that aspect...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@737003 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 11:08:47 +00:00
Hans Bakker bfa00a72b6 update blogentry now added which replaces persistBlogAll and renaming of some files to be more to the ofbiz standard. blog Still not complete......
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@735627 13f79535-47bb-0310-9956-ffa450edef68
2009-01-19 08:09:48 +00:00
David E. Jones ccd59db32b Fixed bug reported by Pierre Gaudin in Jira #OFBIZ-2127, wrong context var used
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@735393 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 07:27:35 +00:00
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