Adrian Crum
c2156ce895
Bug fix for collapsible screenlet in JavaScript mode. It now updates pagination links so the collapsible state change is carried across pagination screen refreshes.
...
IE has a problem with the page select dropdown after a screenlet collapsible state change. I'm still working on that.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@668342 13f79535-47bb-0310-9956-ffa450edef68
2008-06-16 23:11:14 +00:00
Adrian Crum
e2e5268f42
Improved Lookup decorator, submitted by Bruno Busco - https://issues.apache.org/jira/browse/OFBIZ-1841 , with modifications by me.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@667965 13f79535-47bb-0310-9956-ffa450edef68
2008-06-15 15:20:10 +00:00
Jacopo Cappellato
b2ac94a266
Added support for the skip-end attribute to form widgets of type "multi": now it is easier to add "global" form parameters to multi forms by concatenating a single form to a multi form with skip-end set to true.
...
Modified the way submitted multi form rows are counted: now the hidden _rowCount field in the form is no more needed because rows are counted in the ServiceMultiEventHandler (using the util methods that I have implemented in the UtilHttp class).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@667930 13f79535-47bb-0310-9956-ffa450edef68
2008-06-15 06:27:15 +00:00
Adrian Crum
d37351838c
Screenlet initially-collapsed bug fix provided by Bruno Busco - https://issues.apache.org/jira/browse/OFBIZ-1840 .
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@667837 13f79535-47bb-0310-9956-ffa450edef68
2008-06-14 16:34:25 +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
887e99df1d
Fix for form widget renderer - it wasn't rendering the field-group id.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@664355 13f79535-47bb-0310-9956-ffa450edef68
2008-06-07 15:33:24 +00:00
Scott Gray
16742b636a
Corrected the field lookup's img tag width and height
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@664255 13f79535-47bb-0310-9956-ffa450edef68
2008-06-07 03:23:49 +00:00
Adrian Crum
800b1c0e56
Fixed bug I introduced in a previous commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@663743 13f79535-47bb-0310-9956-ffa450edef68
2008-06-05 21:22:02 +00:00
Adrian Crum
399d67552b
Small fix for HtmlMenuRenderer.java - tooltip and style attributes were being ignored.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@663376 13f79535-47bb-0310-9956-ffa450edef68
2008-06-04 21:30:13 +00:00
Adrian Crum
bbd26287a1
Fixed thread-safe issues in the tree widget. Eliminated compiler warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662847 13f79535-47bb-0310-9956-ffa450edef68
2008-06-03 17:32:07 +00:00
Adrian Crum
7da9f667dc
Eliminated compiler warnings from most of the screen widget library. No functional changes.
...
I skipped the tree widget because it is not thread safe and it needs some work.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662590 13f79535-47bb-0310-9956-ffa450edef68
2008-06-02 22:23:55 +00:00
Jacopo Cappellato
2128610fa6
Based on a recent discussion in the dev list, and especially on the comments from David Jones and the work done by Adrian Crum, I'm committing a patch to refactor all the widget rendering methods and some of the content and Freemarker rendering classes to use Appendable instead of Writer. OFBIZ-1816
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662328 13f79535-47bb-0310-9956-ffa450edef68
2008-06-02 05:27:12 +00:00
Adrian Crum
c37f4f58f7
Screenlet widget bug fix.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662258 13f79535-47bb-0310-9956-ffa450edef68
2008-06-01 18:05:58 +00:00
Adrian Crum
c058f0872d
Screen Widget refactor - changed StringBuffer arguments to Writer arguments to help make the screen widget API more consistent. Also added some parameterized data types to cut down on the unchecked warnings.
...
There are no functional changes to the screen widgets.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662123 13f79535-47bb-0310-9956-ffa450edef68
2008-06-01 01:50:41 +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
Scott Gray
a94020d6df
Add support for groovy scripts to form widget actions
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661274 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 09:54:52 +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
Adrian Crum
1e1f0cf697
Oops, missed one file in last commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661096 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 21:29:05 +00:00
David E. Jones
3543d6abe3
Changed the way EntityCondition sub-classes work so they use the javolution Reusable class for recycling objects; now all conditions should be created using the factory methods on the EntityCondition object instead of the direct constructors; there is a small variety of classes available there now for ease of use; also changed a bunch of old code to not use the deprecated constructors; note that still need to do a pass similar to this on EntityExpr
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660780 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 01:58:46 +00:00
Jacopo Cappellato
b58053df4b
For backward compatibility we load the html platform-dependent template if the one for xsl-fo is not found.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660108 13f79535-47bb-0310-9956-ffa450edef68
2008-05-26 06:37:58 +00:00
Hans Bakker
5c1efd4679
allow the menu usage also in a column: see the sfa component
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659942 13f79535-47bb-0310-9956-ffa450edef68
2008-05-25 09:13:52 +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
e0ff3ccfed
Some Ajax fixups.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@658467 13f79535-47bb-0310-9956-ffa450edef68
2008-05-20 22:35:52 +00:00
Adrian Crum
a740aa2ad5
Small fixups for last commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@658351 13f79535-47bb-0310-9956-ffa450edef68
2008-05-20 17:12:35 +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
a3536990f1
Locale and Time Zone refactor and bug fixes.
...
1. Modified the Start class to initialize the JVM default locale and time zone - configurable through start.properties. Removed calls to UtilDateTime.getDefaultTimeZone() - no longer needed.
2. Changed all calls to ObjectType.simpleTypeConvert(...) that didn't supply the necessary Locale and TimeZone objects. This fixes a lot of localization issues, https://issues.apache.org/jira/browse/OFBIZ-1696 being one of them.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@658045 13f79535-47bb-0310-9956-ffa450edef68
2008-05-19 23:50:14 +00:00
David E. Jones
d60415c2cb
Added groovy support, implemented by Joe Eckard in jira #OFBIZ-1779; includes an example EditProductFeatures.groovy file showing somatures.groovy file showing some nice groovy syntax features, especially for Maps and Lists, though it isn't on by default yet in this commit, ie bsh still used
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@657645 13f79535-47bb-0310-9956-ffa450edef68
2008-05-18 21:57:07 +00:00
Adrian Crum
4195b35a78
Added JavaScript detection to the framework. See https://issues.apache.org/jira/browse/OFBIZ-1648 .
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655712 13f79535-47bb-0310-9956-ffa450edef68
2008-05-13 02:25:55 +00:00
Adrian Crum
14dcf6a65a
Small fixup for last commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655616 13f79535-47bb-0310-9956-ffa450edef68
2008-05-12 19:39:48 +00:00
Adrian Crum
3cbe1f844e
Might as well make the default view size configurable.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655606 13f79535-47bb-0310-9956-ffa450edef68
2008-05-12 19:13:00 +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
Scott Gray
153653615b
Removed the rest of the calls to deprecated GenericDelegator methods, except for the findListIteratorByCondition which takes a DynamicViewEntity as a parameter not sure what to do about that one.
...
There's still all the bsh files to check though.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655235 13f79535-47bb-0310-9956-ffa450edef68
2008-05-11 03:29:04 +00:00
Scott Gray
0792342f2a
Removed more calls to deprecated GenericDelegator methods
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655016 13f79535-47bb-0310-9956-ffa450edef68
2008-05-10 06:24:19 +00:00
Adrian Crum
9f8aa0c750
Fixed a bug in the Form Widget where alt-target elements in extended forms were being added to the parent form's alt-targets. Also overriding an alt-target in an extended form works now.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@654586 13f79535-47bb-0310-9956-ffa450edef68
2008-05-08 17:42:22 +00:00
Adrian Crum
538d6c3d6e
Fixed bug in screen widgets where inter-app links didn't work.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653896 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 20:02:21 +00:00
David E. Jones
329631a4b5
A whole bunch of cleanups to use newer and more consolidated delegator find methods; still lots of deprecation warnings, bots of deprecation warnings but this is a first pass, and things still run as before
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653029 13f79535-47bb-0310-9956-ffa450edef68
2008-05-03 09:40:51 +00:00
Adrian Crum
1ef057402c
Fixup for previous commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@652712 13f79535-47bb-0310-9956-ffa450edef68
2008-05-01 23:39:51 +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
Adrian Crum
ed368cea2c
Fixed the menu widget - the "extends" feature didn't work.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@652702 13f79535-47bb-0310-9956-ffa450edef68
2008-05-01 22:47:54 +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
b9601d8226
Implemented support for skip-start attribute in form of type "multi".
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@649399 13f79535-47bb-0310-9956-ffa450edef68
2008-04-18 08:01:57 +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
David E. Jones
3141bca290
Finished form to link/target request artifact info stuff
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@644179 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 06:06:48 +00:00
David E. Jones
cee5387a8d
Removed xml header from fo wrapper, it is now added by the view handler if not there already; fixes problem with widget.verbose=true; fixes problem with widget.verbose=true; various cleanups too
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@644081 13f79535-47bb-0310-9956-ffa450edef68
2008-04-02 21:53:06 +00:00
David E. Jones
75b1f73652
Setting this to true by default, which is already mentioned in the technical production setup guide
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@643976 13f79535-47bb-0310-9956-ffa450edef68
2008-04-02 17:16:58 +00:00
Jacopo Cappellato
a0afe9fcfc
Added support for localized entity content to display-entity form fields.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@643853 13f79535-47bb-0310-9956-ffa450edef68
2008-04-02 11:29:36 +00:00