Commit Graph
296 Commits
Author SHA1 Message Date
Adrian Crum 03ae66d708 Implemented FlexibleMapAccessor.getInstance() in the remaining classes. Deprecated the FlexibleMapAccessor constructor.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@726260 13f79535-47bb-0310-9956-ffa450edef68
2008-12-13 19:25:33 +00:00
Adrian Crum e4c9442ed6 Oops, I missed a couple of files in my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@726252 13f79535-47bb-0310-9956-ffa450edef68
2008-12-13 18:26:52 +00:00
Adrian Crum 07e8661959 Implemented FlexibleMapAccessor.getInstance() in the screen widgets.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@726246 13f79535-47bb-0310-9956-ffa450edef68
2008-12-13 18:13:05 +00:00
Jacques Le Roux 52595e4f48 A slightly modified patch from Bilgin Ibryam "Allow multi-pagination in a page" (https://issues.apache.org/jira/browse/OFBIZ-1935) - OFBIZ-1935
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@725053 13f79535-47bb-0310-9956-ffa450edef68
2008-12-10 10:39:16 +00:00
Adam Heath 3935ab51c0 Implement multiple resource loading from the classpath; this means
that framework doesn't have to reference transforms that exist in
later components.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@718491 13f79535-47bb-0310-9956-ffa450edef68
2008-11-18 06:09:58 +00:00
Jacques Le Roux bd0213dfa3 A patch from Nicolas Malin " Add filter on list to apply specific style" (https://issues.apache.org/jira/browse/OFBIZ-2032) - OFBIZ-2032
As suggested by Scott, Nicolas has replaced filter by altRowStyle, all is ok


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@711987 13f79535-47bb-0310-9956-ffa450edef68
2008-11-06 22:04:10 +00:00
Jacques Le Roux 12f2d297e4 Fix last commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@709984 13f79535-47bb-0310-9956-ffa450edef68
2008-11-02 23:02:18 +00:00
Jacques Le Roux e57e43fcc4 I forgot initially-collapsed in previous commit.
Put some documentation

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@709871 13f79535-47bb-0310-9956-ffa450edef68
2008-11-02 11:46:09 +00:00
Jacques Le Roux 30c6b789e2 Put requirementMethodEnumId in Inventoy fields group
And I forgot to update XSD in r707768 (OFBIZ-1992)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@709844 13f79535-47bb-0310-9956-ffa450edef68
2008-11-02 05:04:59 +00:00
Adam Heath 483e01ac49 Remove all empty javadocs, that only contain an empty @return.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@709642 13f79535-47bb-0310-9956-ffa450edef68
2008-11-01 04:06:23 +00:00
Bilgin Ismet Ibryam 09e537a333 A patch from Dimitri Unruh "Generate alt-attribute in the image element" - OFBIZ-1954
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@707800 13f79535-47bb-0310-9956-ffa450edef68
2008-10-25 00:42:11 +00:00
Jacques Le Roux a4382879e2 A patch from Bruno Busco "Collapsible field-group" (https://issues.apache.org/jira/browse/OFBIZ-1992) - OFBIZ-1992
I only added i18n (in renderFieldGroupOpen) and l10n (all in CommonUiLabels.xml) and made some changes in grouping


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@707768 13f79535-47bb-0310-9956-ffa450edef68
2008-10-24 22:26:46 +00:00
Jacques Le Roux 2240a68a52 Some formatting for List-Multi form column sorting, no code changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@702861 13f79535-47bb-0310-9956-ffa450edef68
2008-10-08 13:12:16 +00:00
Bilgin Ismet Ibryam 2687706c7c Applied the patch from JIRA Issue # List-Multi form column sorting". Thanks to Bruno Busco for helping and patience.
As this is my first commit to framework, I'd really appreciate if you could review this commit.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@702236 13f79535-47bb-0310-9956-ffa450edef68
2008-10-06 19:29:40 +00:00
Adam Heath e90eec622e Some more minor code things, generics, string + -> StringBuilder,
javolution, Integer object creation, etc.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@697890 13f79535-47bb-0310-9956-ffa450edef68
2008-09-22 16:27:27 +00:00
Jacques Le Roux bad4459c5b Patches from Bruno Busco & Bilgin Ibryam "List and Multi form pagination labels are not localized" (https://issues.apache.org/jira/browse/OFBIZ-1922) - OFBIZ-1922
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@691953 13f79535-47bb-0310-9956-ffa450edef68
2008-09-04 09:41:43 +00:00
Adrian Crum fa0acffa98 Menu widget extend actions bug fix, and some other work.
I changed the LinkedList objects to ArrayList - because ArrayList is more appropriate for the "build once, read many" type use. It also takes less memory.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@690740 13f79535-47bb-0310-9956-ffa450edef68
2008-08-31 17:29:38 +00:00
Scott Gray 6e13666d81 Add groovy support to menu actions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@689776 13f79535-47bb-0310-9956-ffa450edef68
2008-08-28 10:25:14 +00:00
Hans Bakker a16c35484c OFBIZ-1934: Ignore property for condition-expr tag, excellent contribution by Bruno Busco
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@689713 13f79535-47bb-0310-9956-ffa450edef68
2008-08-28 04:17:48 +00:00
Scott Gray d401ccbba3 A better fix for the work I committed in rev. 684244
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@689040 13f79535-47bb-0310-9956-ffa450edef68
2008-08-26 11:58:19 +00:00
Jacques Le Roux d1587f0e0a I crossed an error related to this, yesterday while trying to fix https://localhost:8443/facility/control/ViewFacilityInventoryByProductReport?action=Y&facilityId=WebStoreWarehouse&productTypeId=FINISHED_GOOD&productsSoldThruTimestamp=2008-08-25%2013:45:28.625
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@688700 13f79535-47bb-0310-9956-ffa450edef68
2008-08-25 11:46:11 +00:00
Jacques Le Roux a92fbb545d While at it some formatting
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@688485 13f79535-47bb-0310-9956-ffa450edef68
2008-08-24 10:02:10 +00:00
Jacques Le Roux e99e3f8174 I agree with Bilgin that 100 here is too much. Bilgin suggested 10 but I even prefer 5. I think that as an embedded part it's enough. Feel free to express your opinion and I will be happy to adapt following consensus.
This will avoid Bilgin to create a Jira issue ;o)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@688477 13f79535-47bb-0310-9956-ffa450edef68
2008-08-24 09:28:52 +00:00
Jacques Le Roux 3d050bde89 A couple of i18n and l10n stuff
Following Bilgin's recommendation, I almost successfully tested the iterate-section i18n using [<iterate-section entry-name="ownedFinAccount"...].
Almost, since I was unable to find the right paginate-target value as it's not a screen or a form but a screenlet.
Should we create an entry in the controller in such case?  And if it's the case how, what to do ? In other words how do we call a screenlet ?

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@688167 13f79535-47bb-0310-9956-ffa450edef68
2008-08-22 18:23:42 +00:00
Jacques Le Roux 750584e325 A patch from Bilgin Ibryam on dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687675 13f79535-47bb-0310-9956-ffa450edef68
2008-08-21 09:49:36 +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
Scott Gray 3c0f8adf85 typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686695 13f79535-47bb-0310-9956-ffa450edef68
2008-08-18 08:29:28 +00:00
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
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 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
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
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 abbb639e21 Remove duplicate ListOptions.listAscr initialization.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682099 13f79535-47bb-0310-9956-ffa450edef68
2008-08-03 04:04:58 +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
Jacques Le Roux bb4aa64f7a A fixing patch from Mridul Pathak "Implement Ajax.InPlaceEditor for display field in Form Widget" (https://issues.apache.org/jira/browse/OFBIZ-1859) - OFBIZ-1859
Some work still needed (strange behaviour at least reproductible on Opera 9.02)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@679980 13f79535-47bb-0310-9956-ffa450edef68
2008-07-26 11:55:14 +00:00
Jacques Le Roux 46d33fe5c0 A fixing patch from Mridul Pathak "Implement Ajax.InPlaceEditor for display field in Form Widget" (https://issues.apache.org/jira/browse/OFBIZ-1859) - OFBIZ-1859
Some work still needed it seems


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@679975 13f79535-47bb-0310-9956-ffa450edef68
2008-07-26 09:47:13 +00:00
Jacopo Cappellato 2f0cf9ef44 Layout enhancements for tree widgets.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@679828 13f79535-47bb-0310-9956-ffa450edef68
2008-07-25 15:04:52 +00:00
Jacopo Cappellato e4609c411a Misc cleanups to the widget tree code, still a lot to do to improve the readability of the code but this is hopefully a small step in that direction.
Most of all, I have fixed a small issue that was preventing to work the first click (after visiting the page) for the expansion of a node.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@679798 13f79535-47bb-0310-9956-ffa450edef68
2008-07-25 13:22:46 +00:00
Jacopo Cappellato eff5b1e697 Formatting fixes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@679127 13f79535-47bb-0310-9956-ffa450edef68
2008-07-23 16:48:00 +00:00
Jacopo Cappellato bfcdd9cd47 Misc code cleanups: formatting fixes, renamed some variables, removed useless code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@679126 13f79535-47bb-0310-9956-ffa450edef68
2008-07-23 16:42:32 +00:00
Jacopo Cappellato 8e1390b872 Formatting fixes and misc cleanups (removed unused entries from the context).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@679078 13f79535-47bb-0310-9956-ffa450edef68
2008-07-23 11:48:03 +00:00
Jacopo Cappellato b38c79185b Formatting cleanup
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@679057 13f79535-47bb-0310-9956-ffa450edef68
2008-07-23 10:22:12 +00:00
Jacopo Cappellato a21b39dc1c Small fix to prevent NPE under certain circumstances; still the code should be improved, but for now I am trying to change as less code as possible.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@679056 13f79535-47bb-0310-9956-ffa450edef68
2008-07-23 10:16:02 +00:00
Jacopo Cappellato 26d94fc5b0 Formatting cleanups.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@679018 13f79535-47bb-0310-9956-ffa450edef68
2008-07-23 08:27:17 +00:00
Anil Patel 73f15bf2bd Enhancements contributed by Mridul Pathal for Ajax InPlaceEditor for form widget Display field. Mridul, Thanks for your effort.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@678979 13f79535-47bb-0310-9956-ffa450edef68
2008-07-23 02:20:39 +00:00