Bilgin Ismet Ibryam
340eef18b0
Made form paginate attribute use FlexibleStringExpander.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892371 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 20:25:20 +00:00
Bilgin Ismet Ibryam
485963e2cb
When a form has paginate="false" render all the rows by setting a big viewSize internally.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892264 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 14:48:33 +00:00
Bilgin Ismet Ibryam
dd822b9022
Fixed rendering of required-field-style.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890852 13f79535-47bb-0310-9956-ffa450edef68
2009-12-15 16:04:08 +00:00
Hans Bakker
f9e1b11bde
Merge birt branch 831204:886087 and 831209:885099. A contribution by Antwebsystems employee Chattree
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890175 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 04:41:28 +00:00
Scott Gray
27cf8edea6
Fixed problem reported by Jacopo where the tree widget expand/collapse buttons weren't being displayed in Safari. Safari seems to not want to display link background images unless the link has some content, fixed by adding a non-breaking space if the link is empty.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890120 13f79535-47bb-0310-9956-ffa450edef68
2009-12-13 21:13:49 +00:00
Bilgin Ismet Ibryam
25bf7c9ba7
Removed an extra quote from tree renderer.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889190 13f79535-47bb-0310-9956-ffa450edef68
2009-12-10 11:14:12 +00:00
Bilgin Ismet Ibryam
0a55b369ae
Removed an extra <li> element and added a missing <a> element to htmlFormMacroLibrary.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@888412 13f79535-47bb-0310-9956-ffa450edef68
2009-12-08 14:43:36 +00:00
Bruno Busco
d0d9384a6e
Added a new feature that allows to save the screenlet collapsed/expanded status as a userPreference. (OFBIZ-3271)
...
By default screenlets status are saved. A new "save-collapsed" screenlet attribute (default=true) can be used to disable this feature for selected screenlets.
An userPreference with key = screenlet.id+"_collapsed" is used to save the status.
Screenlets that share the same ID, share the same saved status also (i.e. all searchOptions screenlets used in the FindScreenDecorator use the same status). In order to have them separated a different ID should be specified.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@888030 13f79535-47bb-0310-9956-ffa450edef68
2009-12-07 17:24:21 +00:00
Jacopo Cappellato
f30c00588d
Added styles for fop.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@886817 13f79535-47bb-0310-9956-ffa450edef68
2009-12-03 15:29:57 +00:00
Bilgin Ismet Ibryam
a0f22959d6
Applied patch from https://issues.apache.org/jira/browse/OFBIZ-3254 - Setting viewSize and viewIndex in screen context for List Forms do not work.
...
Thanks to Mridul Pathak for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885724 13f79535-47bb-0310-9956-ffa450edef68
2009-12-01 10:32:39 +00:00
Bilgin Ismet Ibryam
891df7e307
Increment paginator number only for list and multi forms.
...
This will partially fix the bug reported in
https://issues.apache.org/jira/browse/OFBIZ-1935
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885709 13f79535-47bb-0310-9956-ffa450edef68
2009-12-01 10:00:43 +00:00
Jacopo Cappellato
17008112a3
Fixes for widget macro rendering code for xsl-fo
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885347 13f79535-47bb-0310-9956-ffa450edef68
2009-11-30 08:30:49 +00:00
Bruno Busco
f71befa798
Added new ScreenCondition "if-empty-section".
...
This can be used in a Decorator to check if a decorator-section has been defined and added content to in the decorated screens.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885346 13f79535-47bb-0310-9956-ffa450edef68
2009-11-30 08:29:28 +00:00
Jacopo Cappellato
5b104d9938
Updated signature for renderSubmitField macro for text, xml, fo, csv
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885252 13f79535-47bb-0310-9956-ffa450edef68
2009-11-29 18:15:18 +00:00
Jacques Le Roux
e07ab48fb4
Some cleaning related to is(Not)Empty
...
* remove duplicate ()
* remove casts no longer needed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885103 13f79535-47bb-0310-9956-ffa450edef68
2009-11-28 15:46:52 +00:00
Jacques Le Roux
c72b29cb1f
Use UtilValidate.isNotEmpty methods instead of (obj != null) || (obj.length > 0) and (obj != null) || (obj.size > 0)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883549 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 23:41:34 +00:00
Jacques Le Roux
4e0d303e06
Use UtilValidate.isEmpty methods instead of (obj == null) || (obj.length == 0)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883507 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 21:42:18 +00:00
Jacques Le Roux
8ae9319710
Use UtilValidate.isEmpty methods instead of (obj == null) || (obj.size == 0)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883492 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 20:34:27 +00:00
Bilgin Ismet Ibryam
803f423dc6
- Fixed wrong style used.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883444 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 18:16:46 +00:00
Scott Gray
b94f973c30
Allow a target and additional parameters to be specified when defining a portal page menu item, for example:
...
<menu-item name="main" parent-portal-page-value="${parameters.parentPortalPageId}"/>
can now be customized to point to a specific target rather than the default "showPortalPage":
<menu-item name="main" parent-portal-page-value="${parameters.parentPortalPageId}">
<link target="MyCustomRequest">
<parameter param-name="myCustomParam" from-field="parameters.myCustomParam"/>
</link>
</menu-item>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883239 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 04:06:27 +00:00
Scott Gray
0d359fca2c
Allow a WidgetWorker.Parameter instance to be created without an Element
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883235 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 03:34:30 +00:00
Adam Heath
07d88a3152
Use getOrCreateUtilCache here too.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883226 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 03:03:59 +00:00
Adam Heath
820d11eb97
Deprecate UtilCache constructors, and add a create helper function.
...
This is the first step to making utilCacheTable concurrent, and
non-blocking. To do so, the constructor has to have no side-effects.
This means it can't modify utilCacheTable itself; this will be moved to
the helper function created above.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883217 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 02:56:28 +00:00
Jacopo Cappellato
c3ee42f73a
New improved version of an enhancement to the service framework after I reverted my first one because it was causing some issues with service validations.
...
Added two new IN parameter, internally (and automatically) set for service definitions:
login.username
login.password
They are already used by the authorization service ("userLogin") to authorize the user to the service call and to retrieve the userLogin object (if the user is authorized).
They can be passed to the service in the input context in place of the userLogin object: this is useful when the service is invoked from a remote system (thru SOAP etc...).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883056 13f79535-47bb-0310-9956-ffa450edef68
2009-11-22 10:23:09 +00:00
Bilgin Ismet Ibryam
338f778a57
Fixed form header links.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@882959 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 18:29:45 +00:00
Bilgin Ismet Ibryam
6e05f75909
Made forms inside list forms with unique IDs
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@882794 13f79535-47bb-0310-9956-ffa450edef68
2009-11-20 23:52:31 +00:00
Jacopo Cappellato
6a845bf5a4
Added empty menu widget macro renderers for csv, xml, xsl-fo, text: they are require to properly render screens containing menu.
...
However they are empty and so the menu will not be rendered with this output (which should be fine).
OFBIZ-3207
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@882601 13f79535-47bb-0310-9956-ffa450edef68
2009-11-20 15:26:45 +00:00
Bilgin Ismet Ibryam
a68a8a722f
Added FTL macro for the tree widget.
...
https://issues.apache.org/jira/browse/OFBIZ-2550
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@880683 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 09:16:24 +00:00
Jacopo Cappellato
40dc7cd9ab
Replaced hardcoded value for view size in pagination macro with the viewSize variable.
...
Thanks to Divesh Dutta for the patch, OFBIZ-3194
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835925 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 17:12:52 +00:00
Scott Gray
aa499be644
Span elements weren't being created for the ajax in place editor, fixes OFBIZ-2494 reported by Jacques Le Roux
...
Also removed inPlaceEditorId from the code since it is always equal to idName anyway
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835585 13f79535-47bb-0310-9956-ffa450edef68
2009-11-12 22:06:34 +00:00
Bilgin Ismet Ibryam
108bcc056e
Fixed rendering of image elements inside link elements.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835081 13f79535-47bb-0310-9956-ffa450edef68
2009-11-11 21:38:16 +00:00
Anil Patel
ca9ba906dd
use has_content to check if text parameter has any value
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@834748 13f79535-47bb-0310-9956-ffa450edef68
2009-11-11 03:13:35 +00:00
Jacques Le Roux
dc05c50d69
A patch from Bruno Busco "The icon used for accessing the lookups should be defined by the theme" ( https://issues.apache.org/jira/browse/OFBIZ-3176 ) - OFBIZ-3176
...
In this patch the lookup field renderer has the link image not as a static img field but specified by the theme through a style class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833937 13f79535-47bb-0310-9956-ffa450edef68
2009-11-08 22:35:51 +00:00
Jacques Le Roux
c1ccfd9975
A patch from Bruno Busco "Collapsible Field Groups with clickable title" ( https://issues.apache.org/jira/browse/OFBIZ-3176 ) - OFBIZ-3176
...
in the attached patch there is a new rendering for the Group Field Title bar.
I removed the table and used simple divs.
Moreover the field group title is now all clickable in order to collapse expand the group.
The necessary changes to all themes are also included in the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833910 13f79535-47bb-0310-9956-ffa450edef68
2009-11-08 18:36:30 +00:00
Jacques Le Roux
a77eddd077
A (slightly modified) patch from Marc Morin "Resolve java warnings exposed in Eclipse : framework - widget" ( https://issues.apache.org/jira/browse/OFBIZ-3123 ) - OFBIZ-3123
...
I have only replaced a while loop by an enhanced for loop
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833770 13f79535-47bb-0310-9956-ffa450edef68
2009-11-07 21:35:50 +00:00
Jacques Le Roux
e4df776a22
A patch from Bruno Busco "Adding pagination icons to Bluelight theme" ( https://issues.apache.org/jira/browse/OFBIZ-3168 ) - OFBIZ-3168
...
A change that allows a theme to replace the "Prev" "Next" labels with icons. Now only on Blue Light theme/
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833378 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 12:43:22 +00:00
Jacopo Cappellato
0a94eb4edc
Added missing macro renderer parameters. Thanks to Mridul Pathak for the (slightly modified) patch. OFBIZ-3147
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833094 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 17:32:49 +00:00
Jacopo Cappellato
6afe2f634d
Removed xml encoder for xsl-fo that was causing the wrong rendering of special characters (like Chinese fonts).
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833080 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 16:54:52 +00:00
Jacopo Cappellato
051ac16a59
Fixed widget rendering code that was just working if the hyperlink fields were rendered in html.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833078 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 16:49:56 +00:00
Jacopo Cappellato
b46bc41636
Added missing input parameters for widget renderer macros.
...
Fixed the xsl-fo code to display the text of an hyperlink field.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833077 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 16:44:46 +00:00
Bilgin Ismet Ibryam
2f84835b65
Enabled on-field-event-update-area on lookup elements which was already available in HtmlFormRenderer.
...
This can be seen in Add example feature application form.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@832551 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 20:52:01 +00:00
Hans Bakker
645e18a03b
remove @override to keep compatible with java 1.5
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@832317 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 07:09:06 +00:00
Hans Bakker
7248f6db66
Jira issue: https://issues.apache.org/jira/browse/OFBIZ-3128
...
1. New SFA Account/contact/lead find/list screens replacing ftl/partysearch with form/performfind.
2. SFA now compatible with the party manager with the 'all' option still have the previous 'my' option
3. added new widget property: 'text find' to set the default here and not in the xsl
4. added 'container' as a field to the form in order to insert forms dynamically with an ajax request
5. fix bug for using radio field.
6. Implemented comments on this jira issue including using the find decorator
Contribution by Chattree, an employee of Antwebsystems Co.Ltd.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@832294 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 03:59:01 +00:00
Bilgin Ismet Ibryam
fea3c7fca3
A patch from Bruno Busco "Adding a page size selector in the pagination bar" - https://issues.apache.org/jira/browse/OFBIZ-3083
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@831676 13f79535-47bb-0310-9956-ffa450edef68
2009-11-01 13:51:42 +00:00
Bilgin Ismet Ibryam
529b5dda47
Added parameter element declaration to tree links.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@831607 13f79535-47bb-0310-9956-ffa450edef68
2009-10-31 22:20:53 +00:00
Bilgin Ismet Ibryam
a5654d9e1a
Added a missing curly brace.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@831590 13f79535-47bb-0310-9956-ffa450edef68
2009-10-31 20:33:12 +00:00
Bilgin Ismet Ibryam
a94070f2c6
Replaced & with & from my previous commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@831180 13f79535-47bb-0310-9956-ffa450edef68
2009-10-30 01:25:56 +00:00
Bilgin Ismet Ibryam
2e511b353d
Add request parameters to the links created by tree widgets.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@831166 13f79535-47bb-0310-9956-ffa450edef68
2009-10-30 00:10:59 +00:00
Jacques Le Roux
45b97b7861
Remove a C/P duplicated snippet
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@829525 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 10:27:59 +00:00
Adrian Crum
6281f15b38
Improved screenlet-body handling, patch from Bruno Busco - https://issues.apache.org/jira/browse/OFBIZ-3012 .
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@826469 13f79535-47bb-0310-9956-ffa450edef68
2009-10-18 17:09:37 +00:00