Commit Graph
1568 Commits
Author SHA1 Message Date
Erwan de Ferrieres 968819599e Forgot modification in HtmlFormRenderer.java at rev 1145293 when using a time-dropdown
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1148033 13f79535-47bb-0310-9956-ffa450edef68
2011-07-18 20:07:25 +00:00
Jacques Le Roux eec5799ce9 A patch from BJ Freeman "update tree widget xsd" https://issues.apache.org/jira/browse/OFBIZ-4329
The example were out of date and there are plenty of examples in code.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1147410 13f79535-47bb-0310-9956-ffa450edef68
2011-07-16 11:54:58 +00:00
Erwan de Ferrieres a5a3c1983f Using the type time for a field, when input-method=time-dropdown doesn't remove the date fields. Now, only hours and minutes are visible.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1145293 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 18:58:26 +00:00
Adam Heath de833d793f FIX: Fix rendering of forms that have no fields defined.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139855 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:07:38 +00:00
Scott Gray 603e1504fe OFBIZ-4306 fix bug reported by Gaudin Pierre. The datejs library's Date.parse(string) method doesn't work very well, seems to just guess at what format to use. Switch to using the parseExact(date, format) method instead.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139521 13f79535-47bb-0310-9956-ffa450edef68
2011-06-25 11:13:33 +00:00
Jacques Le Roux 4853449c25 A patch from Nicolas Malin <<Display dateTime field with input method time-dropdown not use context value to display hour and minutes>> https://issues.apache.org/jira/browse/OFBIZ-4319
If you define a dateTime field like that :

<field name="estimatedStartDate"><date-time input-method="time-dropdown" step="10"/></field>
and pass in context : estimatedStartDate = "2011-06-016 20:30:00"
when you edit the form, estimatedStartDate takes the good value 2011-06-016 on date, but takes nowTimestamps.hour for dropdown hour instead of 20 and nowTimestamps.minutes for dropdown minutes instead of 30

To test the patch :

    go to ofbiz example component with given date : "https://localhost:8443/example/control/FormWidgetExamples?field4=2001-01-01 02:21:000"
    the field 4 must have hour to 02 and minutes to 21

The patch also corrects multiple definition : sr.append("\" value=\"");
and removes unneeded escape at end line : if (UtilValidate.isEmpty(requiredStyle)) requiredStyle = "required";



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139385 13f79535-47bb-0310-9956-ffa450edef68
2011-06-24 17:33:25 +00:00
Adrian Crum af5b6cfd1c Small fixup for my previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1138575 13f79535-47bb-0310-9956-ffa450edef68
2011-06-22 18:40:50 +00:00
Adrian Crum 3fc434f86c More work on the renderLookupField Freemarker macro: Improved documentation, provide default values for optional parameters, jQuery bug fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1138485 13f79535-47bb-0310-9956-ffa450edef68
2011-06-22 14:39:06 +00:00
Adrian Crum 7ec4134b8a Documentation for the renderLookupField Freemarker macro.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1137603 13f79535-47bb-0310-9956-ffa450edef68
2011-06-20 12:00:39 +00:00
Jacques Le Roux dd7e1be1c1 A patch from Leon <<"setUserPreference" goes to main page instead last view if current form includes any lookup field>> https://issues.apache.org/jira/browse/OFBIZ-4313
When I open a form which include lookup field and then click the expand/collapse button around the upper right corner in the the header, the page will go to "main" after user preference is settled.

The cause is the requests initiated by lookup field does not remember the last view name. It simply use "main" instead.

Patch to make lookup requests remember the LAST_VIEW_NAME correctly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1137433 13f79535-47bb-0310-9956-ffa450edef68
2011-06-19 20:59:35 +00:00
Sascha Rodekamp 207e6630f2 wrong link href of leaf node in a tree element (https://issues.apache.org/jira/browse/OFBIZ-4315).
A slightly modified patch from Leon which corrects the href tag of empty leaf nodes.

OrigMsg:
like department and employee tree in main page of human resource management application, if you click the expand/collpase link of a leaf node, the wrong request error occurs. Since there's a empty link href value set for leaf node, browser will treat it as the request "https://.../humanres/control".


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1135929 13f79535-47bb-0310-9956-ffa450edef68
2011-06-15 06:21:19 +00:00
Jacques Le Roux c60e0e0388 Were missing in r1098100
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1132496 13f79535-47bb-0310-9956-ffa450edef68
2011-06-05 21:36:00 +00:00
Erwan de Ferrieres 30ac5d9102 Adding help text when displaying a field, code directly copied from MacroFormRenderer.renderFieldTitle
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1129877 13f79535-47bb-0310-9956-ffa450edef68
2011-05-31 19:37:39 +00:00
Jacques Le Roux 2b17d17651 A patch from Leon "The absence of default delay value for ajaxAutoCompleter introduces html syntax error in client end" https://issues.apache.org/jira/browse/OFBIZ-4305
When I 1st wrote this I used delay instead of defaultDelay. I then changed the name but forgot to change in widget.properties file. I wanted to keep it commented out to have default value commented out (Convention over configuration) but it would be more complicated and anyway would not follow how it's done in widget.properties

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1129036 13f79535-47bb-0310-9956-ffa450edef68
2011-05-30 08:02:48 +00:00
Marco Risaliti 56f315b3e5 Removed some javadoc warning (wrong param/return) into widget component no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1126754 13f79535-47bb-0310-9956-ffa450edef68
2011-05-23 21:17:30 +00:00
Jacques Le Roux f85384c1fe Related to r1099244 "Default delay for ajaxAutoCompleter". I forgot some pieces of the puzzle. When I manually quickly tested it worked but of course I did not test all cases. This should be OK now
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1099270 13f79535-47bb-0310-9956-ffa450edef68
2011-05-03 21:32:03 +00:00
Jacques Le Roux a26341cf1b Default delay for ajaxAutoCompleter
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1099244 13f79535-47bb-0310-9956-ffa450edef68
2011-05-03 21:03:11 +00:00
Ashish Vijaywargiya 17f4cac6a0 Applied patch from jira issue OFBIZ-4267. Disabled attribute for lookup field should be readonly.
Lookup tag has a attribute "disabled" that is used to set disabled="disabled" property for lookup input element and it create also a clear button just after lookup field to clear the field value.
But if we set disabled="disabled" for any input field then that field does not passes as parameter and we can't accesses it from parameters or request parameters , so it should be "readonly". 
If we set readonly-"readonly" then user can't change the field value directly, and this field passes as parameters.
Only difference between readonly and disabled is that in case of disabled field does not passes as parameter buy in case of readonly field passes as a parameter.
Thanks Deepak for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1098082 13f79535-47bb-0310-9956-ffa450edef68
2011-04-30 09:05:20 +00:00
Erwan de Ferrieres bfc158dc67 A patch from Pierre Gaudin - error in pagination target with on-event-update-area parameters - OFBIZ-4249
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1096871 13f79535-47bb-0310-9956-ffa450edef68
2011-04-26 19:43:01 +00:00
Jacques Le Roux 13e570bcbf A patch from Nicolas Malin "Enhanced way of displaying "missing/incorrect fields"" https://issues.apache.org/jira/browse/OFBIZ-2132
Initial demand by Michael Pätzold
At the moment we concentrate on increasing the usability of the backend application. One thing we recognized is the way form errors are reported to the users. Now it's done by showing a list of entity fields, that are required. A more common approach would be to highlight the form controls, that were not/wrongly filled. Was/Is there any task related to that or something similar?

Nicolas's solution
With integration of JQuery and validate function integrate by Sascha, I extend the Form renderer to apply required class and alert the form when she submitted to pass by JQuery validate function.

JLR: I have added a required field to InternalName field in Edit Product Form. There are maybe other cases like that which should be improved...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1096293 13f79535-47bb-0310-9956-ffa450edef68
2011-04-24 09:48:59 +00:00
Jacques Le Roux 5bb2f3a420 A patch from Nicolas Malin "getImageLocation generates NullPointer" https://issues.apache.org/jira/browse/OFBIZ-4262
When you use auto-field-entity on a form , you get a nullPointer :

java.lang.NullPointerException
org.ofbiz.widget.form.ModelFormField$DisplayField.getImageLocation(ModelFormField.java:2122)
org.ofbiz.widget.form.MacroFormRenderer.renderDisplayField(MacroFormRenderer.java:193)
org.ofbiz.widget.form.ModelFormField$DisplayField.renderFieldString(ModelFormField.java:2104)
org.ofbiz.widget.form.ModelFormField.renderFieldString(ModelFormField.java:600)
org.ofbiz.widget.form.ModelForm.renderItemRow(ModelForm.java:1707)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1096140 13f79535-47bb-0310-9956-ffa450edef68
2011-04-23 13:07:21 +00:00
Jacques Le Roux 3210eea160 Nicolas forgot this in his patch and it did not showed unless you made a clean up before building. Complete r1095984, related to https://issues.apache.org/jira/browse/OFBIZ-4259
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1096083 13f79535-47bb-0310-9956-ffa450edef68
2011-04-22 23:19:38 +00:00
Jacques Le Roux 48c6114143 A patch from Nicolas Malin "Add famfamfam icons has generic and add possibility to surchage" https://issues.apache.org/jira/browse/OFBIZ-4259
Adds the possibility to use famfamfam icons contained in framework/images/webapp/images/famfamfam/icons.
If you want use a specific icon, it's possible to define an attribute VT_ICONS_LOC that contains the location to themes icons directory to use
It improves form rendering to pass a flexible string on image-location attribute and screen and form renderer to display an image with a text.

JLR: I just added à &nbsp; before menus texts

After Erwan's remark I wondered If I should remove the CSS on buttons. But I finally found that it was complementary. Because when no image is used on a specific button you still have the default CSS style applied (typical for Add buttons as Erwan outlined). And when no default CSS style is applied you can have an image like now shown OTTB on print button when editing an Example. So I see these 2 features as complementary for now. Maybe one day, one will replace the other, but at this stage both are welcome IMO.

BTW the famfamfam (strange name ;o) icons lib is well done and really full of possibilities...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1095984 13f79535-47bb-0310-9956-ffa450edef68
2011-04-22 18:51:10 +00:00
Sascha Rodekamp 4598d690fa Improvement: Enables the jQuery validation plugin for all macro generted forms if min one field has the widget-style required.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1094138 13f79535-47bb-0310-9956-ffa450edef68
2011-04-17 12:52:54 +00:00
Bruno Busco c4b31b4375 Removed the <BR /> tag at the end of the renderNextPrev macro.
This allows the Navigation bar to be rendered closed to the form itself.
It seems very hard to reduce the BR height using the CSS only.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1091487 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 15:59:22 +00:00
Sascha Rodekamp fb880c80a1 Update - i18n from DateTime display fields (https://issues.apache.org/jira/browse/OFBIZ-4014). Ofbiz can now show and interprete i18n dates and times. The Patch uses the datejs library to i18n the displayd date and time fields from the datepicker this works vice versa.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1090231 13f79535-47bb-0310-9956-ffa450edef68
2011-04-08 13:05:42 +00:00
Hans Bakker 65ccc5ae87 improve error message to indicate where the error happened
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1086096 13f79535-47bb-0310-9956-ffa450edef68
2011-03-28 02:11:53 +00:00
Jacques Le Roux b06b847f00 A patch from Deepak Dixit "Lookup target-parameter in form widget is not working." https://issues.apache.org/jira/browse/OFBIZ-4225 - OFBIZ-4225
An improved patch for target-parameter functionality, now paramI indexing start with I=0 instead of 1.

JLR: I have updated the XSD to tell it must begin at 0

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1085671 13f79535-47bb-0310-9956-ffa450edef68
2011-03-26 09:17:17 +00:00
David E. Jones 86b9945c01 Screen parameters map no longer includes this catalina-specific variable with the full classpath that makes log messages that print parameters REALLY ugly
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1085332 13f79535-47bb-0310-9956-ffa450edef68
2011-03-25 11:38:53 +00:00
Jacques Le Roux bc7fc69cb3 A patch from Deepak Dixit "Lookup target-parameter in form widget is not working." https://issues.apache.org/jira/browse/OFBIZ-4225 - OFBIZ-4225
There is a target-parameter for lookup, Currently it's not working.
We can test it over at https://localhost:8443/ordermgr/control/request page. 


I have added a small change in the XSD to tell it should begin at one(1)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1084574 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 13:14:34 +00:00
Erwan de Ferrieres 428f2edc9a Sorting portalPageColumns by columnSeqId when retrieving
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1082868 13f79535-47bb-0310-9956-ffa450edef68
2011-03-18 10:40:34 +00:00
Jacques Le Roux 2c79db1b4e Fixes "Form widget extension of the sort-order block" (https://issues.apache.org/jira/browse/OFBIZ-3542) - OFBIZ-3542
The sort-order block was not extended when you extend a form. So you had to duplicate it in case it was the same.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1082134 13f79535-47bb-0310-9956-ffa450edef68
2011-03-16 12:00:49 +00:00
Ashish Vijaywargiya 76b41ad601 Bug fix. hyperlink field type on form field was not able to put "," (separator ) on csv files. Thanks Amit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1081496 13f79535-47bb-0310-9956-ffa450edef68
2011-03-14 18:07:37 +00:00
Erwan de Ferrieres 1a6323cb3a Corrected a bug due to millis with the input mask, optimizing the jQuery writing for the mask
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1081444 13f79535-47bb-0310-9956-ffa450edef68
2011-03-14 16:23:34 +00:00
Erwan de Ferrieres 299a5eccca Adding input mask for the text fields. You have to create them yourself with mask in the text element
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1081436 13f79535-47bb-0310-9956-ffa450edef68
2011-03-14 16:12:01 +00:00
Erwan de Ferrieres d7ad06b90c Adding a masked input capability to the date fields, use mask=Y and the field type will be taken for it. jQuery pPlugin is from http://digitalbush.com/projects/masked-input-plugin/ and under a MIT license
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1081333 13f79535-47bb-0310-9956-ffa450edef68
2011-03-14 11:15:24 +00:00
Erwan de Ferrieres 56dd7e265b paginateAnchor should be tested for emptyness and not for null
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1080563 13f79535-47bb-0310-9956-ffa450edef68
2011-03-11 13:14:42 +00:00
Marco Risaliti 9d1dab732a Remove some warning in MacroScreenRenderer (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078284 13f79535-47bb-0310-9956-ffa450edef68
2011-03-05 13:05:44 +00:00
Marco Risaliti 4a8d24f4c0 Remove a warning in MacroFormRenderer (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078188 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 22:39:02 +00:00
Marco Risaliti 94b117656f Remove some warning in ModelFormAction (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078184 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 22:34:17 +00:00
Marco Risaliti 782b811142 Remove some warning in MacroFormRenderer (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078183 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 22:32:36 +00:00
Marco Risaliti 005526a201 Remove some warning in ModelTreeRenderer (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078182 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 22:28:42 +00:00
Marco Risaliti faf51e642c Remove some warning in ModelTreeAction (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078181 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 22:26:04 +00:00
Marco Risaliti 8980dda47b Remove some warning in HtmlWidget (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078178 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 22:22:44 +00:00
Marco Risaliti 5178dea183 Remove some warning in ModelScreenWidget (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078177 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 22:21:55 +00:00
Marco Risaliti 0a452ebdb4 Remove some warning in IterateSectionWidget (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078176 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 22:19:09 +00:00
Marco Risaliti 45cfb4727d Remove some warning in ModelForm (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078175 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 22:17:54 +00:00
Scott Gray 98ead46edc Fix bug in the screen widget's content renderer, if a dynamic contentId is supplied then the content's dataResourceId ends up getting stored in the Content widget object and is then used by later calls to the same widget regardless of contentId for certain operations (such as determining the mime type, which can affect rendering).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1076906 13f79535-47bb-0310-9956-ffa450edef68
2011-03-04 00:46:09 +00:00
Marco Risaliti c82cc82340 Remove unused variable in HtmlFormRenderer (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075553 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:42:58 +00:00
Marco Risaliti 30c0ef5ed3 Remove unused variable in XmlFormRenderer (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075546 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:41:07 +00:00