Commit Graph
24 Commits
Author SHA1 Message Date
Adrian Crum 6e85ea167b Added "NewList" and "NewMap" options to the <set> element type attribute. Now screen widgets and mini-language support the creation of empty Lists and Maps.
Usage:

<set field="theList" type="NewList"/>
<set field="theMap" type="NewMap"/>



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765284 13f79535-47bb-0310-9956-ffa450edef68
2009-04-15 17:44:47 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
David E. Jones d1d6b46ab8 Added auto option for link-type that will figure out if a hidden-form is needed or not; the hidden-form option will only work for intra-app links that refer to a request that calls an event; changed the ProductForms hyperlink defs to not specify a link-type any more and just use the auto; note that for targets with parameters inline in the URL and not in the parameter sub-element the parameters will still be in the form action and not in hidden fields, so those need to be changed for this to be effective
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755377 13f79535-47bb-0310-9956-ffa450edef68
2009-03-17 20:05:34 +00:00
David E. Jones 34f9e0a0f6 Added link-type=hidden-form attribute and parameter sub-element to the menu and screen widget link elements; some refactoring and cleanup to avoid too much code redundancy in this (though there is certainly still quite a bit here); changes the MyPortalMenus.xml#CommSubTabBar to use this since it is an example reported by Bilgin; WARNING: I don't have a good test case for this so testing from Bilgin or I guess Hans would be very appreciated
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755022 13f79535-47bb-0310-9956-ffa450edef68
2009-03-16 22:12:30 +00:00
David E. Jones ebc039406c Chanded a few more attribute names for consistency, based on feedback from Marco
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@737194 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 21:30:17 +00:00
David E. Jones a1e6d5a63c Changed field-map attribute env-name to from-field to be more consistent; already supported as used through EntityFinderUtil.makeFieldMap; thanks to Marco for the heads up on this
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@736832 13f79535-47bb-0310-9956-ffa450edef68
2009-01-22 22:34:01 +00:00
David E. Jones c4602119e7 Changed screen, form, menu and tree widget actions and conditions to be consistent with simple-method cleanups, includes XSD and java changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@733436 13f79535-47bb-0310-9956-ffa450edef68
2009-01-11 09:19:34 +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
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
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
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
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
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 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
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
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 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 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
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 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 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