Erwan de Ferrieres
1701c87c03
As spotted by Adrian on the dev mailing-list, this is a better writing
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@954534 13f79535-47bb-0310-9956-ffa450edef68
2010-06-14 16:07:16 +00:00
Erwan de Ferrieres
16e8f57957
Allows to parameterize a form id
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@954437 13f79535-47bb-0310-9956-ffa450edef68
2010-06-14 13:12:06 +00:00
Jacques Le Roux
4dbc07a799
A patch from Ankit Jain "Missing "not-in" operator in condtion-expr tag." ( https://issues.apache.org/jira/browse/OFBIZ-3819 ) - OFBIZ-3819
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@953671 13f79535-47bb-0310-9956-ffa450edef68
2010-06-11 11:44:34 +00:00
Jacques Le Roux
f2297ffa9e
Improves target-parameter documentation
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@951672 13f79535-47bb-0310-9956-ffa450edef68
2010-06-05 08:21:14 +00:00
Jacques Le Roux
36e3342cd7
Accurate documentation
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950683 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 17:37:36 +00:00
Jacques Le Roux
d75fbce90a
Allows to initially collapse the search screenlet of a layered lookup, default to false.
...
It was harder than I though because of the async nature of Ajax. So I had to use a setTimeout with a 400 ms timeout. Hopefully it will work in any environments. I chose 400 because I found it worked well on my machine, 300 also but to be sure I picked 400, 200 was too low it seems.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950481 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 10:44:16 +00:00
David E. Jones
0befa87923
Added id to field titles to allow more direct styling, hiding/showing, etc
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950019 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 11:12:40 +00:00
David E. Jones
60fb1968f8
Changed the screenlet -> initially-collapsed attribute to support string expansion, includes xsd change; this allows custom logic to determine if the screenlet should appear collapsed or not
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949880 13f79535-47bb-0310-9956-ffa450edef68
2010-05-31 22:40:19 +00:00
Jacques Le Roux
32c8b8fb72
Better documentation on client-autocomplete-field
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949839 13f79535-47bb-0310-9956-ffa450edef68
2010-05-31 19:33:55 +00:00
Jacques Le Roux
1e9824ab0c
* Remove useless white spaces in macro (make harder handling links in javascript)
...
* Implement target-parameter in case of layered lookup (was missing)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949710 13f79535-47bb-0310-9956-ffa450edef68
2010-05-31 10:33:52 +00:00
Jacques Le Roux
1105653227
Add documentation to description-field-name attribute in lookup
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947005 13f79535-47bb-0310-9956-ffa450edef68
2010-05-21 13:44:41 +00:00
Adrian Crum
b832282533
Updated model widgets to eliminate calls to methods deprecated in previous commit. Widget comment state is stored in the renderer, not in the model. All widget comments work properly now.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946431 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 21:57:18 +00:00
Adrian Crum
16929cabeb
Small change to ModelWidget.widgetBoundaryCommentsEnabled method - added ability to pass the rendering context in addition to the request parameters, plus I fixed the logic so it works the way it was originally intended.
...
To summarize:
1. The widget.verbose property in widget.properties is the global default setting.
2. The setting can be changed at the application level by putting the widgetVerbose parameter in the web.xml file.
3. The setting can be changed at the widget level by putting the widgetVerbose variable in the rendering context.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946384 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 20:49:06 +00:00
Adrian Crum
30a5cffa2c
Moved 4 methods from ModelWidget to WidgetWorker and made them static. ModelWidget is supposed to be nothing more than a super class for the model widget classes, but it was starting to look like a "catch-all" or utility class.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946298 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 17:38:08 +00:00
Adrian Crum
f44fb0e298
Reverting 946262 and 946264. The changes compiled okay, but they wouldn't run.
...
I'm going to take a different approach in a future commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946286 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 17:08:39 +00:00
Adrian Crum
0121b2bab3
Deprecated some methods in ModelWidget.java that are not thread-safe. Plus, the implementation of widget comments was flawed. Widget comments can be enabled/disabled on a per-request basis, but the setting was saved on a per-widget basis.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946270 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 16:50:27 +00:00
Adrian Crum
aea89155d3
Changed two more ModelWidget.java methods to static.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946264 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 16:36:58 +00:00
Adrian Crum
1598bfb858
Changed two ModelWidget.java methods to static.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946262 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 16:30:06 +00:00
Erwan de Ferrieres
9e7053e953
XHTML validation errors round 2++ (framework) - OFBIZ-3761 ( https://issues.apache.org/jira/browse/OFBIZ-3761 )
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@945582 13f79535-47bb-0310-9956-ffa450edef68
2010-05-18 10:34:42 +00:00
Adrian Crum
f485030987
Small fixup for my previous commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@945324 13f79535-47bb-0310-9956-ffa450edef68
2010-05-17 19:26:20 +00:00
Adrian Crum
e9c4e5c9c5
Converted screen widget sub-widget creation over to the factory pattern. Users can create their own sub-widgets to augment or replace the existing ones.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@944898 13f79535-47bb-0310-9956-ffa450edef68
2010-05-16 19:31:19 +00:00
Bruno Busco
4e389ec6b1
Bug Fix: The pagination controls at the top of the form are not rendered for "multi" forms but only for "list" forms.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@944669 13f79535-47bb-0310-9956-ffa450edef68
2010-05-15 15:42:08 +00:00
David E. Jones
602873de70
Made widget link parameter treatment more consistent; before if you specified a paramaeter name without a from-field then it wouldn't convert the object according to locale; now it does the same thing no matter where the object comes from (ie explicit from-field or implied by the parameter name); this fixes a timeZone inconsistency that causes links with time/timestamp parameters to not work
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@943843 13f79535-47bb-0310-9956-ffa450edef68
2010-05-13 08:32:09 +00:00
Jacques Le Roux
25f33ca608
Try to keep things clean (well formatted)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@942702 13f79535-47bb-0310-9956-ffa450edef68
2010-05-10 10:12:18 +00:00
Jacques Le Roux
b2b396cee1
Makes things clear: documentation never hurt (when accurate)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@942668 13f79535-47bb-0310-9956-ffa450edef68
2010-05-10 06:42:28 +00:00
Scott Gray
0f30714350
Set svn properties on all freemarker files that were missing them
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@942386 13f79535-47bb-0310-9956-ffa450edef68
2010-05-08 13:51:19 +00:00
Erwan de Ferrieres
4c87323d82
Modification on previous commit (941261) : we need to return an empty string if there is no value found for the key, regardless of whether debuging is on or off
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@941600 13f79535-47bb-0310-9956-ffa450edef68
2010-05-06 07:56:23 +00:00
David E. Jones
a89f19306e
Improved error message when screen marco rendering fails to show the macro icall text to give you a clue about what failed
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@941329 13f79535-47bb-0310-9956-ffa450edef68
2010-05-05 14:53:03 +00:00
Erwan de Ferrieres
c2ecf31559
A slighty modified patch from Chris Snow "Field description tooltips show key if help text is not found" OFBIZ-3749
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@941261 13f79535-47bb-0310-9956-ffa450edef68
2010-05-05 11:53:06 +00:00
Scott Gray
87d4de1711
Missed one of the calls to the now deprecated methods. Removed a couple of unnecessary casts while I was at it.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@941205 13f79535-47bb-0310-9956-ffa450edef68
2010-05-05 08:51:07 +00:00
Scott Gray
2ed23a85e6
ModelMenu objects were being instantiated with (and then keeping references to) Delegator and LocalDispatcher objects. Obviously not ideal for multi-tenanting and the like.
...
To fix:
- Deprecated the ModelMenu constructor and replaced it with one that doesn't take a delegator/dispatcher
- Removed ModelMenu's dispatcher/delegator fields and deprecated the get methods for them
- Took the getDispatcher and getDelegator methods from ModelForm and pushed them down to ModelWidget so that they can be used by ModelMenu as well
- Deprecated the MenuFactory methods that take delegator/dispatcher and replaced them with ones that don't
- Altered any code that was using the newly deprecated methods
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@941181 13f79535-47bb-0310-9956-ffa450edef68
2010-05-05 07:17:12 +00:00
Scott Gray
549302a5de
Remove a couple of unnecessary casts
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@941178 13f79535-47bb-0310-9956-ffa450edef68
2010-05-05 07:16:55 +00:00
Scott Gray
94bc3f63ca
Put the null check a little higher so that it actually does the check before an NPE can occur. Giving up on this transform, I hate the content component.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@941139 13f79535-47bb-0310-9956-ffa450edef68
2010-05-05 02:25:26 +00:00
Scott Gray
8bc1d451e0
Document the list of transform arguments (no idea what they do at the moment
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@941130 13f79535-47bb-0310-9956-ffa450edef68
2010-05-05 01:13:58 +00:00
Scott Gray
5f0606e67f
Rearrange some local variables in the hope of making things more readable
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@941129 13f79535-47bb-0310-9956-ffa450edef68
2010-05-05 01:13:47 +00:00
Scott Gray
7f6d3ade75
Replace the copy/paste class description with a description I found in an old commit log
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@941126 13f79535-47bb-0310-9956-ffa450edef68
2010-05-05 00:46:45 +00:00
Scott Gray
f3855603ac
Remove unused methods ahead of trying to figure out what the hell the transform does.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@941119 13f79535-47bb-0310-9956-ffa450edef68
2010-05-05 00:17:17 +00:00
Erwan de Ferrieres
585db14ada
Update on r938816 to make portals menus work again
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@941007 13f79535-47bb-0310-9956-ffa450edef68
2010-05-04 19:44:05 +00:00
Bilgin Ismet Ibryam
0c28946a40
Moved autocompleter indicator creation to javascript.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@940274 13f79535-47bb-0310-9956-ffa450edef68
2010-05-02 17:44:01 +00:00
Adrian Crum
2f3e21e31b
Fixed a problem with the Ajax auto-completer code. Empty src attribute in an img element causes some browsers to load the page more than once.
...
Many thanks to Scott for pointing me in the right direction.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@940245 13f79535-47bb-0310-9956-ffa450edef68
2010-05-02 15:10:36 +00:00
Adrian Crum
ed0e37d5c3
Turn off noisy logging.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@939896 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 01:32:01 +00:00
Jacques Le Roux
62a4f24086
A last patch from Chris Snow "Provide better user help" ( https://issues.apache.org/jira/browse/OFBIZ-3702 ) - OFBIZ-3702
...
Answers the last point Scott outlined on dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@939479 13f79535-47bb-0310-9956-ffa450edef68
2010-04-29 20:46:44 +00:00
Jacques Le Roux
ad20beb7a9
An improving patch from Chris Snow "Provide better user help" ( https://issues.apache.org/jira/browse/OFBIZ-3702 ) - OFBIZ-3702
...
Answers 3 of 4 points Scott outlined on dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@939216 13f79535-47bb-0310-9956-ffa450edef68
2010-04-29 06:39:25 +00:00
Jacques Le Roux
2f6a7c3d09
A slightly modified patch from Chris Snow "Provide better user help" ( https://issues.apache.org/jira/browse/OFBIZ-3702 ) - OFBIZ-3702
...
Provides help by hovering over the field label. See Example for... an example :o) And also https://issues.apache.org/jira/secure/attachment/12442717/fieldLabelTooltip2.png
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938844 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 10:02:57 +00:00
David E. Jones
168b7fce65
Refactored the various link getParameterList methods to return a Map and expand with the context like most of the other get methods that are used during rendering; that is the biggest change but was part of adding a parameters-map attribute to the form widget hyperlink element to be able to use a script to prepare part or all of the parameters map used in the hidden form instead of having to manually declare all parameters
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938816 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 08:33:37 +00:00
Erwan de Ferrieres
0996aaac34
Modifying the description for accounting-number, adding the mention that it's configurable
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938019 13f79535-47bb-0310-9956-ffa450edef68
2010-04-26 12:34:33 +00:00
Erwan de Ferrieres
e268db4a97
Adding a new display type "accouting-number", which allows to display negatives in parentheses
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@937964 13f79535-47bb-0310-9956-ffa450edef68
2010-04-26 08:51:25 +00:00
Jacques Le Roux
e714f96c66
Closes "Replace popup lookups by layer lookups" ( https://issues.apache.org/jira/browse/OFBIZ-3442 ) - OFBIZ-3442
...
Not all cases have been resolved but this patch takes this into account and should not introduce any not known issues. These issues are identified at "Layer popup umbrella main task" (https://issues.apache.org/jira/browse/OFBIZ-3445 ). They will be resolved later and are actually bugs so will be committed later when fixed. They are
* "Allow to open a layer lookup from a layer lookup" (https://issues.apache.org/jira/browse/OFBIZ-3446 ) and its specific case "Allow to open a layer lookup from a layer lookup recursively" (https://issues.apache.org/jira/browse/OFBIZ-3693 )
* "The minimize/enlarge buttons (+ -) blocks the layer" (https://issues.apache.org/jira/browse/OFBIZ-3692 )
* "When you get disconnected (time out) from a layered lookup, you then get afterward ugly screens" (https://issues.apache.org/jira/browse/OFBIZ-3450 )
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@937852 13f79535-47bb-0310-9956-ffa450edef68
2010-04-25 18:49:01 +00:00
Erwan de Ferrieres
f0eb1cf0b0
Enabling localization for portal page names, adding the CommonPortalEntityLabels file
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@936845 13f79535-47bb-0310-9956-ffa450edef68
2010-04-22 13:50:24 +00:00
Bilgin Ismet Ibryam
4513ee6a09
Enabled lookup descriptions
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@936638 13f79535-47bb-0310-9956-ffa450edef68
2010-04-22 07:46:41 +00:00