Commit Graph
49 Commits
Author SHA1 Message Date
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
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
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
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
Anil Patel 58d361213f Initial implementation of Ajax InPlaceEditor for form widget Display field. Mridul, Thanks for your effort.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@675688 13f79535-47bb-0310-9956-ffa450edef68
2008-07-10 19:17:36 +00:00
Scott Gray 093b675bd7 0.4 is not an integer
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@673040 13f79535-47bb-0310-9956-ffa450edef68
2008-07-01 09:45:52 +00:00
Anil Patel 265e7b46a1 Adding Autocompleter options to form widget dropdown. More improvements to come.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@671723 13f79535-47bb-0310-9956-ffa450edef68
2008-06-26 04:23:57 +00:00
Jacopo Cappellato 4cac01d534 Added ability to define the default operator for from/thru fields in date-find and range-find fields (similar to the one existing for the text find field).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@670502 13f79535-47bb-0310-9956-ffa450edef68
2008-06-23 09:51:45 +00:00
Adrian Crum 58845f4c48 Screen widget improvements:
1. Better screenlet collapsible implementation.
2. New widget: horizontal-separator.

The id attribute is no longer required for collapsible screenlets. Just use collapsible="true".

The horizontal-separator widget can be used to divide complicated screens - as an alternative to using screenlets.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@667723 13f79535-47bb-0310-9956-ffa450edef68
2008-06-14 03:01:33 +00:00
Adrian Crum 834219e652 Small enhancement to the screenlet widget - you can specify if its initial state is collapsed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661798 13f79535-47bb-0310-9956-ffa450edef68
2008-05-30 18:01:42 +00:00
Adrian Crum 2d89f0f365 Form widget Ajax refinements.
Changed attribute-based ajax calls to on-event-update-area elements. Fixed bug in autocomplete. Cleaned up some of the rendering code.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661450 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 19:48:24 +00:00
Adrian Crum 90932e0a09 As discussed on the dev mailing list, add a new form widget field sub-element called on-field-event-update-area - intended initially for Ajax support. Each field widget renderer will perform Ajax calls appropriate for the control.
I'm in the process of finishing the widget code that implements this, but I wanted to get this out there right away due to the parallel Ajax efforts.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661345 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 15:06:42 +00:00
David E. Jones 120c80da1a Added type attribute to drop-down element for auto-complete variation; will use a server-side event that gets the form name/location and the field name from the session and then look at the form definition to see the option tags under the drop-down element to see what to query on along with the partial text entered for the results to send back to the client
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661182 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 02:23:55 +00:00
Jacopo Cappellato 15d63246d6 Added support for xsl-fo and xml templates to the platform-specific screen widget element. Now it is possible to define the same screen that can be rendered with different renderers. An example of this is the SimpleDecorator that is now used to render simple PDF report (xsl-fo), xml export and printer friendly html output. You can test it in the Edit Example screen (and some other screens as well): the PDF and Printer Friendly links in that page both share the same screen definition. Misc fixes to the widget FO and XML renderers, for issues found while testing.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659935 13f79535-47bb-0310-9956-ffa450edef68
2008-05-25 08:00:10 +00:00
Anil Patel 9ded85445a Fist pass of implementation of Ajax.Autocompleter enhancement for form widget text box. I'll be working on improving this over next few days.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659454 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 06:54:15 +00:00
Adrian Crum 6aea39757d Improved screen widget Ajax support.
The original Ajax work was a great start, but there were limitations. These changes open things up a bit: 1) Ajax rendering falls back to plain HTML when the user has JavaScript disabled. 2) You can have more than one area updated during an event.

IE7 updates only <div> elements, so be aware of that when using the Ajax feature.

See the Example component for a demonstration.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@658281 13f79535-47bb-0310-9956-ffa450edef68
2008-05-20 15:33:22 +00:00
Adrian Crum 4fddac4c67 Implemented page size defaults for the form widget lists. Some code was already there, but it wasn't being used.
The form widget defaults to 10 items per page. That setting can be changed with the <form> element view-size attribute.

This commit eliminates the need for setting VIEW_SIZE and VIEW_INDEX parameters in the screen definition. I updated an Accounting screen in this commit to demonstrate.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655550 13f79535-47bb-0310-9956-ffa450edef68
2008-05-12 16:29:30 +00:00
Adrian Crum cb6643f1cf widget-menu.xsd change - eliminated default values that use deprecated CSS styles. I posted a message on the dev ml about this - if there is any problem with it, then I'll revert it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@652703 13f79535-47bb-0310-9956-ffa450edef68
2008-05-01 22:51:57 +00:00
Scott Gray 323263e546 Added the ability to hide the search options of the form widget's text-find widget
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@651376 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 20:07:53 +00:00
Jacopo Cappellato 6c3f8d27f8 Added descriptions for the also-hidden attributes, based on feedback from the user list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@645135 13f79535-47bb-0310-9956-ffa450edef68
2008-04-05 16:42:53 +00:00
David E. Jones 0ba6bdd4eb Added background-submit-refresh-target to form field submit, auto-update-target to screen container; also added example that uses thetainer; also updated example to use these new ajax features
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@645115 13f79535-47bb-0310-9956-ffa450edef68
2008-04-05 15:13:09 +00:00
Adrian Crum 82cef0d975 New screenlet widget. For details, refer to the xsd or the Jira issue - https://issues.apache.org/jira/browse/OFBIZ-1626.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@620699 13f79535-47bb-0310-9956-ffa450edef68
2008-02-12 03:57:14 +00:00
Jacopo Cappellato e385c3df95 Implemented support for the autocomplete attribute in form widgets.
The attribute autocomplete="on/off" is supported by most browsers in input fields of type "password" and "text" and also in the "form" element and it controls the autocomplete features of the browser. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@614619 13f79535-47bb-0310-9956-ffa450edef68
2008-01-23 18:53:44 +00:00
Scott Gray 66523651b4 When using auto-fields-service in the form widget, whether a service parameter is optional or not is now carried over to the form field being required or not, obviously required = !optional.
Also when overriding a form field you can now override whether the field is required or not.  This involved updating the form widget schema to remove the default value, so it won't have any effect until I update the website.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@608730 13f79535-47bb-0310-9956-ffa450edef68
2008-01-04 03:40:39 +00:00
Jacopo Cappellato 88631750a8 Added missing 'List' type (taht is supported) to the 'set' operation definition to avoid validation errors.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@604173 13f79535-47bb-0310-9956-ffa450edef68
2007-12-14 11:43:19 +00:00
Hans Bakker 9180f6441b corrected description of previous commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@598505 13f79535-47bb-0310-9956-ffa450edef68
2007-11-27 03:12:34 +00:00
Hans Bakker cd0f0bfada OFBIZ-1430 only show date part of a timestamp in the form display
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@598492 13f79535-47bb-0310-9956-ffa450edef68
2007-11-27 02:18:08 +00:00
Jacopo Cappellato a872513a24 Added support to text-find fields for != operation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@592718 13f79535-47bb-0310-9956-ffa450edef68
2007-11-07 11:37:51 +00:00
Jacques Le Roux ae76370a04 Replace all www.ofbiz.org by ofbiz.apache.org (mostly links to dtds). Note that there are 2 void links :
http://ofbiz.apache.org/service/
http://ofbiz.apache.org/cgi-bin/http_test.pl

Those links were useless before also

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586802 13f79535-47bb-0310-9956-ffa450edef68
2007-10-20 21:17:45 +00:00
Jacopo Cappellato fefd8ae37e Added support for default-value attribute to the set operation in form widget actions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@583366 13f79535-47bb-0310-9956-ffa450edef68
2007-10-10 06:34:13 +00:00
Jacques Le Roux 735deae442 This solve the "Quote WorkEffort bug" issue reported by Bilgin Ibryam (https://issues.apache.org/jira/browse/OFBIZ-1180) - OFBIZ-1180.
It does not solve the issue reported in comment https://issues.apache.org/jira/browse/OFBIZ-1180#action_12524674 "Adding WorkEffort to Communications in party manager is also broken due to extending EditWorkEffort." because then we get java.lang.IllegalArgumentException: Could not find screen with name [EditCommEventWorkEffort] in class resource [component://party/widget/partymgr/CommunicationScreens.xml]. But this is another problem : no EditCommEventWorkEffort screen is declared in CommunicationScreens.xml ! I will create a new issue for that...

I wait a bit before back porting in release4.0, to be sure that my (very simple) solution is ok for everybody.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@582338 13f79535-47bb-0310-9956-ffa450edef68
2007-10-05 16:35:33 +00:00
Andrew Zeneski 1413bff0a3 simple implementation of textfield readonly attribute (for html forms)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@571237 13f79535-47bb-0310-9956-ffa450edef68
2007-08-30 16:41:09 +00:00
Jacques Le Roux e88347441e A patch from Jeremy Wickersheimer "Enhanced pager for Forms" (https://issues.apache.org/jira/browse/OFBIZ-1096)
I just added the CommonOf between lines numbers.
Tested with LookupPartyName on Firefox, IE7, and last Opera : works fine

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@560524 13f79535-47bb-0310-9956-ffa450edef68
2007-07-28 09:21:09 +00:00
Jacopo Cappellato dcaa6b8448 This is the first version of the screen output cache mechanism.
It is still not ready for production because it needs much more tests, but I'm already committing it mainly for three reasons:
1) all the changes are well isolated
2) unless you explicitly set use-cache to true in a screen definition, everything will work as usual
3) I'd love to get some feedback from the community

To test it: just set the use-cache attribute to true in a screen definition (<screen name='someName' use-cache='true'>), then you'll find a new entry in the WebTools-->cache  screen.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@559384 13f79535-47bb-0310-9956-ffa450edef68
2007-07-25 10:04:28 +00:00
Jacopo Cappellato 2fe07f1528 Implemented support for the 'position' attribute in list based form widgets.
1) added new attribute,  'default-position', to the auto-fields-entity and auto-fields-service element: this is useful to specify a default position for the fields inherited by an entity or service definition
2) change the signature of two methods in the FormStringRendered interface (and classes that implement it), to pass the number of columns spanned (in header and item rows)
3) a lot of code has been refactored/modified in the ModelForm class: new support for position in list, code cleanups with no functional changes, bug fixes (including bugs reported in OFBIZ-1071 and OFBIZ-542), added comments to code, formatting fixes



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@550168 13f79535-47bb-0310-9956-ffa450edef68
2007-06-24 05:09:41 +00:00
David E. Jones 03facb7588 Changed default for paginate on iterate-section to be consistent with pretty much everything else, and to be consistent with the parsing code in IterateSectionWidget.java
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@534635 13f79535-47bb-0310-9956-ffa450edef68
2007-05-02 22:22:19 +00:00
Andrew Zeneski c16b36a0de implemented multi-select
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516319 13f79535-47bb-0310-9956-ffa450edef68
2007-03-09 07:28:10 +00:00
David E. Jones 1a00b7bc7e Made check type field more useful with the options thingy underneath it; this may/will break old usage, if it ever was used...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516317 13f79535-47bb-0310-9956-ffa450edef68
2007-03-09 07:03:06 +00:00
Jacopo Cappellato 311ca7c08c Applied patch from Adrian Crum (OFBIZ-671) to refactor form, menu, tree widget styles management (now mostly all the styles are defined externally using css): this is still a work in progress.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@514099 13f79535-47bb-0310-9956-ffa450edef68
2007-03-03 08:14:07 +00:00
Andrew Zeneski 6f82fa4fa9 added special context-map to allow pre-filling fields in actions to pass to the security serivice; using this will help prevent overriding fields when not intending to
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@508090 13f79535-47bb-0310-9956-ffa450edef68
2007-02-15 19:19:19 +00:00
Andrew Zeneski 8dea3ca24d implemented if-service-permission for Menu Widgets
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@507564 13f79535-47bb-0310-9956-ffa450edef68
2007-02-14 15:08:54 +00:00
Andrew Zeneski a73a449045 implemented if-service-permission tag
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@507546 13f79535-47bb-0310-9956-ffa450edef68
2007-02-14 14:42:32 +00:00
Jacques Le Roux dad67935f7 A (large) patch from Scott Gray "Update ASL header" (https://issues.apache.org/jira/browse/OFBIZ-637).
I put also some svn:ignore for shark build and lib diretories and assetmaint/build 

I did some by hand lately, too much to remember. They were files with old header but without copyright. A 1st attempt I suppose, will have to check this after this commit.

I add some problems to commit this patch in one piece because it's so huge (specially with Eclipse I had to turn to Tortoise) !

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499486 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 17:15:54 +00:00
Jacopo Cappellato d5a96e45f4 Following David Jones's suggestions in OFBIZ-364, I've added a new attribute to the "form" element:
override-list-size
It can be used to pass a custom list size (differnt from the actual list size) that can be useful for pagination purposes under some circumstances.
The attribute can accept the ${} notation.


git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@469408 13f79535-47bb-0310-9956-ffa450edef68
2006-10-31 08:14:14 +00:00
David E. Jones 9a50907566 Added option to condition-expr to ignore-case, makes things lots easier when you need something like that
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@469046 13f79535-47bb-0310-9956-ffa450edef68
2006-10-30 02:45:34 +00:00
Jacopo Cappellato 0d1b150e70 Two changes to the way search fields are rendered in form widgets:
1) in thext fields, the "ignore case" option is true by default and the "begins with" option is the defalt one
2) the available search options for text and date fields are now rendered with drop down boxes instead of radio boxes

OFBIZ-64

git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@427905 13f79535-47bb-0310-9956-ffa450edef68
2006-08-02 05:55:21 +00:00
Jacopo Cappellato 13ab84d538 License change from MIT to ASL2.0 for the files of the widget component.
Thanks to Scott Gray for the patch (Apache OFBIZ-87).

git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@423829 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 08:46:57 +00:00
David E. Jones edeedd289d Some minor XSD changes, mostly moving documentation over from the MiniLang Guide to annotations for the simple-map-processor; a lot to do for the simple-method...
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@421508 13f79535-47bb-0310-9956-ffa450edef68
2006-07-13 06:08:18 +00:00
David E. Jones 94fe6d1cda Initial OFBiz import from revision 7923 of the old svn.ofbiz.org SVN repository.
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@418498 13f79535-47bb-0310-9956-ffa450edef68
2006-07-01 19:05:20 +00:00