Commit Graph
495 Commits
Author SHA1 Message Date
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 acac8a92ca Fixed a problem with a Content Manager ajax form - reported in https://issues.apache.org/jira/browse/OFBIZ-1949.
Ajax developers note: "ajaxed" screen portions MUST include the same permissions checking as the entire screen, otherwise a security hole is opened up.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@692863 13f79535-47bb-0310-9956-ffa450edef68
2008-09-07 14:34:10 +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
Jacques Le Roux 50192bae02 A 1st level i18n
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687119 13f79535-47bb-0310-9956-ffa450edef68
2008-08-19 18:37:21 +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
Bilgin Ismet Ibryam 40d4c4745b Fixed few requests which allow access to main page without authorization check.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686630 13f79535-47bb-0310-9956-ffa450edef68
2008-08-17 18:51:26 +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
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
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
Jacopo Cappellato fd190b8a14 If the screen is used to create a new data resource, the list of content records associated to it is not rendered.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685899 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 14:02:45 +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
Jacopo Cappellato 9238449d56 Added list of Content records that are associated to the data resource id in the edit screen, so that it is possible to quickly browse from and to Content/DataResource.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685113 13f79535-47bb-0310-9956-ffa450edef68
2008-08-12 10:48:59 +00:00
Ashish Vijaywargiya 701843b588 I think we should put something else in "Menu Container"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684780 13f79535-47bb-0310-9956-ffa450edef68
2008-08-11 15:31:34 +00:00
David E. Jones 9d17aab36e Some description cleanups and organization for content type data
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684699 13f79535-47bb-0310-9956-ffa450edef68
2008-08-11 10:26:32 +00:00
Jacques Le Roux 97f6bec232 Typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684570 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 18:46:53 +00:00
Jacques Le Roux 354b685db9 I commit these changes (I did some weeks ago) in the meantime because I know there is a lot more to do.
Hopefully, I will do it this or next month... I saw that Jacopo is working on it too (on data)
Just a comment on Toirtoise : I really like its new feature wich allows to sort/group waiting commits :D Subclipse is really far away...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684569 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 18:45:30 +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
Jacopo Cappellato bdbb1fbce3 Moved seed data of the Content component in order to improve readability; no functional changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684492 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 12:37:39 +00:00
Jacopo Cappellato d12410bcbf Misc small fixes while testing the CMS stuff.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684018 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 17:13:44 +00:00
Scott Gray 8fe0d46247 Removed blank labels as pointed out on the user list by BJ Freeman
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@683154 13f79535-47bb-0310-9956-ffa450edef68
2008-08-06 08:12:18 +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
Adam Heath b6a1ae5e5e Another minor optimization; no longer need to specify classpathref in
all the build.xml files.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@681935 13f79535-47bb-0310-9956-ffa450edef68
2008-08-02 03:41:46 +00:00
Adrian Crum 8a60600899 Some minor UI cleanups/fixups in Content Manager Forum screens.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@681432 13f79535-47bb-0310-9956-ffa450edef68
2008-07-31 18:32:33 +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
Jacques Le Roux 546a4bf857 A fixing patch from Bruno Busco "Using FindScreenDecorator in Content Application" (https://issues.apache.org/jira/browse/OFBIZ-1881) - OFBIZ-1881
Sorry to have missed this


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@680312 13f79535-47bb-0310-9956-ffa450edef68
2008-07-28 10:25:29 +00:00
Jacques Le Roux f80d2146be An enhancing patch (AjaxPagination.patch) from Bruno Busco "Using screenlets in Content Application" (https://issues.apache.org/jira/browse/OFBIZ-1881) - OFBIZ-1881
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@680092 13f79535-47bb-0310-9956-ffa450edef68
2008-07-27 12:22:45 +00:00
Jacques Le Roux 59003a0f99 A removing patch from Bruno Busco "Using screenlets in Content Application" (https://issues.apache.org/jira/browse/OFBIZ-1881) - OFBIZ-1881
Remove unused file



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@680089 13f79535-47bb-0310-9956-ffa450edef68
2008-07-27 10:49:17 +00:00
Jacques Le Roux f09724ea75 An enhancing patch from Bruno Busco "Using screenlets in Content Application" (https://issues.apache.org/jira/browse/OFBIZ-1881) - OFBIZ-1881
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@680088 13f79535-47bb-0310-9956-ffa450edef68
2008-07-27 10:41:47 +00:00
Jacques Le Roux 23b934b778 An enhancing patch from Bruno Busco "Using screenlets in Catalog Manager Application" (https://issues.apache.org/jira/browse/OFBIZ-1880) - OFBIZ-1880
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@680086 13f79535-47bb-0310-9956-ffa450edef68
2008-07-27 10:23:34 +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 b545f4bd0c small fixes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@678853 13f79535-47bb-0310-9956-ffa450edef68
2008-07-22 18:36:40 +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
Scott Gray 94d7bf4dba Removed a whole pile of filter-list-by-date elements and used the filter-by-date attribute of entity-and instead
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@678222 13f79535-47bb-0310-9956-ffa450edef68
2008-07-19 21:33:38 +00:00
Jacques Le Roux 641ff10050 Update Copyright to 2008
A real replace in files feature was one of the reasons I use Eclipse 3.4 for near a year now (I even helped to test, a real must have :o)
Not sure previous commit was sent partially or not at all (I needed to update)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@677685 13f79535-47bb-0310-9956-ffa450edef68
2008-07-17 18:56:25 +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
Jacopo Cappellato a91db16bb5 Applied patch contributed by Bilgin Ibryam in OFBIZ-1877: definitio of a common menu that can be extended by the application (the menu already contains the main and login/logout items).
A few applications have been updated to use it as well.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@676959 13f79535-47bb-0310-9956-ffa450edef68
2008-07-15 16:42:20 +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
David E. Jones 01ec60e1cd Removed entitygroup.xml files now that they are not needed, and I'm sure they won't be missed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@672822 13f79535-47bb-0310-9956-ffa450edef68
2008-06-30 17:09:02 +00:00
Adam Heath 18391f98a9 The build.xml files are now much smaller and simpler; they reuse a
few global definitions.  1585 lines removed.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@672657 13f79535-47bb-0310-9956-ffa450edef68
2008-06-29 18:39:36 +00:00