Jacopo Cappellato
8564cd8125
Removed unused handler from controller files; replaced handlers that were still using the old ScreenWidgetViewHandler with the current MacroScreenViewHandler; deprecated compress.HTML property with output specific properties like screen.compress; this fixes a rather important issue happening when the compress.HTML setting is set to true: non html output screens like for example tab delimited exports were messed up.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1058056 13f79535-47bb-0310-9956-ffa450edef68
2011-01-12 10:44:35 +00:00
Jacques Le Roux
b63a07c03d
A patch from Sascha Rodekamp "Fix Portal Drag'n'Drop" ( https://issues.apache.org/jira/browse/OFBIZ-4062 ) - OFBIZ-4062
...
During the last works on the my portal module, the Drag'n'Drop functionality was lost. Here is a fix which enables the Drag'n'Drop again.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1056670 13f79535-47bb-0310-9956-ffa450edef68
2011-01-08 09:13:17 +00:00
Adrian Crum
800797bdca
Updated WidgetFactory.java JavaDoc - no functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1056623 13f79535-47bb-0310-9956-ffa450edef68
2011-01-08 05:05:35 +00:00
Erwan de Ferrieres
6721f91797
Online documentation wasn't working as described in ExampleEntityLabels :
...
FieldDescription.[fieldname] - will be used for all fields of that name
FieldDescription.[entityname].[fieldname] - will be used for the specified entity field
The FieldDescription.[fieldname] wasn't supported yet, now it's done. I've also changed the log level to verbose as it may full the log console it there are a lot of fields on a screen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1054573 13f79535-47bb-0310-9956-ffa450edef68
2011-01-03 10:17:39 +00:00
Adrian Crum
c8db9dfe43
Suppress rendering a field group banner when there are no field groups. This eliminates the annoying horizontal line that appears on single forms.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1054193 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 06:32:12 +00:00
Jacopo Cappellato
10863fcdaf
A couple of fixes for csv exports: removed leading blank character in titles and fixed error caused by fields containing ampersands.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1053081 13f79535-47bb-0310-9956-ffa450edef68
2010-12-27 15:07:37 +00:00
Scott Gray
fd0fa0c636
OFBIZ-4071 - menu-item's disable-if-empty attribute was not being handled, fixed by using the existing unused method to check if the item should be disabled and if true then applying the disabled style and not rendering the hyperlink portion of the child link (if present). Based on a slightly modified patch and report from Deepak Dixit, thanks Deepak.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1052195 13f79535-47bb-0310-9956-ffa450edef68
2010-12-23 08:05:33 +00:00
Scott Gray
47f43a302a
Remove unnecessary casts
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044931 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 21:31:27 +00:00
Jacques Le Roux
1539f888c0
Fix a small bug introduced with r1044132 for OFBIZ-4051 i18n for elrte editor. It was crashing renderTextareaField when called from forms
...
Also while at it renames visualEdtiorEnalble to visualEditorEnable
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044510 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 21:00:06 +00:00
Jacques Le Roux
24fe5ff37e
Merges the jQuery branch back to the trunk
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044503 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 20:40:08 +00:00
Adam Heath
a2fd254167
Make FreeMarkerWorker.getWrappedObject auto-cast to whatever type the
...
caller wants.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044232 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 07:21:09 +00:00
Adam Heath
2f6217251a
Set svn:eol-style properly on all java files. This needs to be done on other text files as well, but that would cause undo conflicts in the jquery branch(due to .js being heavily modified there). Also, some files were committed to the repository with DOS line endings; those are fixed as well.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044202 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 02:40:02 +00:00
Scott Gray
a0771ae85d
Remove method that was a duplicate of the superclass method
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039772 13f79535-47bb-0310-9956-ffa450edef68
2010-11-27 22:14:35 +00:00
Scott Gray
4ec14a82cb
Remove redundant null check
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039771 13f79535-47bb-0310-9956-ffa450edef68
2010-11-27 22:14:25 +00:00
Scott Gray
5d3699e21b
Formatting cleanup, no functional changes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039770 13f79535-47bb-0310-9956-ffa450edef68
2010-11-27 22:14:16 +00:00
Scott Gray
3f34e1fdef
Deprecated the ContainerField's id field and getter/setter, this sort of thing is already handled by ModelFormField
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039769 13f79535-47bb-0310-9956-ffa450edef68
2010-11-27 22:14:07 +00:00
Scott Gray
8391f99d84
[OFBIZ-4036] Form widget display field descriptions were still being encoded when encode-output was set to false. Bug reported by Bruno Busco.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039767 13f79535-47bb-0310-9956-ffa450edef68
2010-11-27 21:51:01 +00:00
David E. Jones
872a21e20a
Improved error message when map-name for field isn't a Map
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1038893 13f79535-47bb-0310-9956-ffa450edef68
2010-11-25 02:04:30 +00:00
David E. Jones
524525fa00
Fixed bug with new group-columns attribute when set to false the hidden fields were not rendering
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1038487 13f79535-47bb-0310-9956-ffa450edef68
2010-11-24 05:51:12 +00:00
David E. Jones
b720b413a1
Added new group-columns attribute to form element to not group input/other columns if not desired, defaults to true which is the old/original behavior
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1037146 13f79535-47bb-0310-9956-ffa450edef68
2010-11-20 09:32:30 +00:00
Hans Bakker
f254de6344
allow the usage of double quotes in the dropdown text
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1027400 13f79535-47bb-0310-9956-ffa450edef68
2010-10-26 08:29:09 +00:00
Bruno Busco
79d86ffa14
Improved include-portal-page widget.
...
- Changed edit-mode attribute to conf-mode
- Added a use-private attribute. This is "true" by default but can be set to "fasle" if the include-portal-page must render a specific PortalPage without checking if a derived private PortalPage copy exists (i.e. in PortalPageAdmin screens)
- Fixed Portlet attributes retrieval. After each portlet rendering the attributes are removed from the context so that another instance of the same portlet in the same PortalPage that has no attribute value specified falls back to default values and not to the values of the previous portlet.
- The up/down/left/right portlet icons use the same service used for the Portlet Drag and Drop. (This is not working yet. Needs a next commit)
- Few portlet style and labels updates
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1023197 13f79535-47bb-0310-9956-ffa450edef68
2010-10-16 06:58:25 +00:00
Bruno Busco
4e2f5f67ba
- Moved method getPortalPages from ModelMenuItem to the PortalPageWorker. This is a method that generally retrieves all PortalPages that have a common parent. It will be re-used in a next commit.
...
- Added method to the PortalPageWorker to retrieve a PortalPage considering if a private derived copy exists for the current user (will be used in a next commit)
- Added method to the PortalPageWorker to check if the current user is allowed to configure a PortalPage.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1023194 13f79535-47bb-0310-9956-ffa450edef68
2010-10-16 06:01:16 +00:00
David E. Jones
8c6f5defdf
Added error message for when entity name is wrong instead of an NPE
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1004343 13f79535-47bb-0310-9956-ffa450edef68
2010-10-04 18:05:26 +00:00
David E. Jones
7fd290ef8e
Removed very old functionality for form widget field actions entity-and and entity-condition that put their results automatically in the context with the field name from the form's list-name attribute, causing it to overwrite any existing list that might be in place for that; the effect was that you could not have any entity-and or entity-condition actions other than the one for the list or multi form's main list to iterate over; the proper way to do this for years now has been to specify which list you want, and this functionality was from the original approach where it was assumed for multi and list forms that you would only have one such query in the actions (which was an add-on to the original functionality that I never liked)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1001330 13f79535-47bb-0310-9956-ffa450edef68
2010-09-25 22:44:13 +00:00
David E. Jones
0155bbdb93
Added another BshInterpreter clear to fix the problem where a value set in row-actions was not available to use-when conditions, or any BSH run within that row
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1001326 13f79535-47bb-0310-9956-ffa450edef68
2010-09-25 22:20:29 +00:00
David E. Jones
1461401e71
Fixed NPE when a form field use-when attribute evaluates to null
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1001325 13f79535-47bb-0310-9956-ffa450edef68
2010-09-25 22:18:12 +00:00
David E. Jones
9cb27b35f7
For form widget checkbox fields the id is now generated in the HTML for the first checkbox; this is mostly useful for single checkbox fields such as when using a checkbox instead of a Y/N drop-down
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@999663 13f79535-47bb-0310-9956-ffa450edef68
2010-09-21 21:55:16 +00:00
Hans Bakker
a2d3028094
<subcontent not working, was showing in the new article function of the content blog part
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@998585 13f79535-47bb-0310-9956-ffa450edef68
2010-09-19 02:52:49 +00:00
Bruno Busco
3bbd2d8598
Added the <include-portal-page> widget. OFBIZ-3625 https://issues.apache.org/jira/browse/OFBIZ-3625
...
Using this widget, a PortalPage can now be easily rendered in any screen.
At the bottom of the page an "Edit ON/OFF" button can be used to switch the PortalPage edit mode ON and OFF so that the Portal Page can be edited "in place".
All the portlet editing requests are handled using the "save-last-view" request attribute so that a dedicated screen can be shown to set the Portlet attributes and the column width and, when submitted, the user is taken back to the portal page he was editing.
Those new requests will be used in a later commit to eliminate all the duplicated ****Adm requests that have been introduced when the Webtools portal admin screen has been created.
A simple use of the widget has been added in the Example application.
TODO:
- At the moment the portal page editing is performed on the portal page itself and no portal derivation from the "main" one is performed. This will be done in a later commit.
- The portlet moving controls both manually and by drag and drop have not been implemented yet.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@998570 13f79535-47bb-0310-9956-ffa450edef68
2010-09-19 00:09:39 +00:00
Jacques Le Roux
653f7d372d
To keep things consistent with r966202 and while at it I have also handled the action/event couple in HtmlFormRenderer.java.renderDateTimeField()
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995771 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10 12:30:11 +00:00
Adam Heath
be51724bc6
Expose actions variable to other code.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995207 13f79535-47bb-0310-9956-ffa450edef68
2010-09-08 19:03:48 +00:00
Adam Heath
5ee6d42aef
Move duplicated code that has one screen widget calling another screen,
...
into a global helper method. Eventually, this method will be altered to
be able to 'change' which screen is actually included, based on various
conditions at runtime. This will be used to eventually support partial
ajax page updates.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995206 13f79535-47bb-0310-9956-ffa450edef68
2010-09-08 19:03:42 +00:00
Adam Heath
b5b019e4fe
DecoratorSection was already fetching its name attribute from the
...
element; so call getName() on it, instead of fetching the attribute
locally.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995205 13f79535-47bb-0310-9956-ffa450edef68
2010-09-08 19:03:36 +00:00
Adam Heath
87a61d524f
Remember the node's systemId, startColumn, and startLine, and use them
...
in a default toString() implementation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995204 13f79535-47bb-0310-9956-ffa450edef68
2010-09-08 19:03:31 +00:00
Adam Heath
3b4793f968
Enable tracking of xml node positions when reading documents.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995203 13f79535-47bb-0310-9956-ffa450edef68
2010-09-08 19:03:24 +00:00
Bruno Busco
9f557eae9e
Added the "default-value" attribute to the "display" tag.
...
This allows to specify a string to be shown in a display field when it is empty.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@992441 13f79535-47bb-0310-9956-ffa450edef68
2010-09-03 19:55:08 +00:00
Erwan de Ferrieres
24c97a5b0c
Changing functioning for display-size, now displaying dots inside the text instead at the end, so it is more readable
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@989313 13f79535-47bb-0310-9956-ffa450edef68
2010-08-25 19:25:56 +00:00
Erwan de Ferrieres
063d57711c
new option for fields : display-size. If a field size is longer than the specified value, then length will be cut and ... will be added. The full text will be displayed as a hint. This way, a form will not be deformed by too long fields.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@987127 13f79535-47bb-0310-9956-ffa450edef68
2010-08-19 11:12:55 +00:00
Adam Heath
b273b52dad
Finally created a script to find and fix tons of missing final newlines.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@982870 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 04:46:48 +00:00
Scott Gray
4448c4a866
No functional changes, just removing a whole bunch of unused imports and reorganizing them along the way.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981019 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 08:28:34 +00:00
Scott Gray
787799659a
Fix problem rendering content from the screen widget, thanks Hans for the report
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980687 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 08:57:40 +00:00
Scott Gray
12807597e2
Temporarly revert my recent changes to renderLink(), a list of maps is being written directly to the macro call and I need to figure out how to support that. Problem reported by Jacques in the dev list.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980238 13f79535-47bb-0310-9956-ffa450edef68
2010-07-28 21:34:03 +00:00
Scott Gray
f4b8fe52fc
Converted all render* methods to use executeMacro(Writer, String, Map) instead of executeMacro(Writer, String). Removes over 100 lines of StringWriter usage, makes the code easier to read and also fixes the bug that Jacques committed a workaround for in r978893
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978954 13f79535-47bb-0310-9956-ffa450edef68
2010-07-25 00:36:13 +00:00
Scott Gray
a704a811ee
Changed the parameter map from <String, String> to <String, Object> since some macros use booleans and integers instead of strings. Changed the method to only wrap strings in double quotes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978953 13f79535-47bb-0310-9956-ffa450edef68
2010-07-25 00:36:02 +00:00
Scott Gray
a26146535f
Add a new method for constructing a freemarker macro call string, should simplify the code needed to generate a macro call and centralize the double quote encoding of parameter values. I'll be working to switch all of the render* methods over to using this today.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978944 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 23:15:45 +00:00
Jacques Le Roux
bfc14b25c9
Revert r966203 as asked by Adam on dev ML (I was also not for this change so 2x -1)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978863 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 12:42:40 +00:00
Erwan de Ferrieres
7589e40be7
Correction for r966123, parametersMapAcsr could be null
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966282 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 15:38:33 +00:00
Erwan de Ferrieres
606cf7fc0f
if a time-dropdown has no value then 00:00 is displayed instead of the current time
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966203 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 12:14:08 +00:00
Erwan de Ferrieres
4800e33723
Adding event and action attributes to date-time field
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966202 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 12:10:08 +00:00