Commit Graph
171 Commits
Author SHA1 Message Date
Jacques Le Roux 1310a182cc Document to makes the changes for OFBIZ-6504 more clear
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1693400 13f79535-47bb-0310-9956-ffa450edef68
2015-07-30 09:26:20 +00:00
Jacques Le Roux 9f00d68173 Fixes an issue crossed while checking OFBIZ-6504 - how to Create PDF with password Protected in Ofbiz
There was still an issue in normal (not PDF) mode, I thought I had just to replace \' by void, but I got fooled, because \' already transformed in Unicode characters (\') at this stage. So I replaced "\'" by "'"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1693258 13f79535-47bb-0310-9956-ffa450edef68
2015-07-29 13:33:12 +00:00
Nicolas Malin ae1af54128 revert previous commit, bad repo use my apologies
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1685130 13f79535-47bb-0310-9956-ffa450edef68
2015-06-12 16:46:08 +00:00
Nicolas Malin d3e95bb938 Resynchronise template macro form xml, text, csv and fo from html related to issue OFBIZ-6461.
adding unit test that call webtools/control/WebtoolsLayoutDemo with html, text, csv, xml and fop render and detect on the stream if an FTl stacktrace is present.
The fop test is currently commented because the screenfop failed to generate WebtoolsLayoutDemo page.
To support the unit case, the screen engine has been extend to manage platform-specific : <text> and <csv>

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1685124 13f79535-47bb-0310-9956-ffa450edef68
2015-06-12 16:25:30 +00:00
Christian Carlow e48310e533 Fixing this error caused by id parameter not being assigned to default value for OFBIZ-6403:
FreeMarker template error: When calling macro "makeHyperlinkString", required parameter "id" (parameter #12) was not specified.

https://issues.apache.org/jira/browse/OFBIZ-6403

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1684066 13f79535-47bb-0310-9956-ffa450edef68
2015-06-07 19:41:47 +00:00
Nicolas Malin 70cffbfb2c Form widget hyperlink.id attribute isn't supported by MacroFormRenderer.java (OFBIZ-6403) thanks christian carlow for this issue
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1683642 13f79535-47bb-0310-9956-ffa450edef68
2015-06-04 20:55:59 +00:00
Michael Brohl 1613bbee07 Manually applied and modified the changes of the patch from jira issue OFBIZ-6312: Catalog Manager's EditProduct screen HTML should place a limit on the size of text that can be entered in the Product Description box.
Introduces a new maxlength attribute to the textarea element in forms, applies the maxlength (255 chars) value in several FTL files, when the DB is limiting the length.

Thanks Forrest Rae for reporting the issue and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682132 13f79535-47bb-0310-9956-ffa450edef68
2015-05-27 22:18:29 +00:00
Jacques Le Roux 6c637a7b7d Implements "The lookup and text-area have a read-only attribute but not the text input field" at https://issues.apache.org/jira/browse/OFBIZ-6395
Adds a read-only attribute to the text input field. Using the display type is not enough, because it's uneasy to assign values through Javascript as using the lookup description-field-name shows OOTB. And the disabled option is not good when you want to still show the submitted values on return.

Also 
* improves widget-form.xsd documentation about read-only attribute for lookup
* completes the foFormMacroLibrary.ftl where placeholder tabindex  were missing (if this even ever makes sense)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1680921 13f79535-47bb-0310-9956-ffa450edef68
2015-05-21 16:29:49 +00:00
Jacques Le Roux 5f0ea0a387 Completes r1671519 for https://issues.apache.org/jira/browse/OFBIZ-6232 "Adds HTML tabindex into widget form fields"
There was still an issue when rendering renderLookupField from FTL templates

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1671847 13f79535-47bb-0310-9956-ffa450edef68
2015-04-07 13:49:53 +00:00
Jacques Le Roux eb67d60fc3 Completes r1671519 for https://issues.apache.org/jira/browse/OFBIZ-6232 "Adds HTML tabindex into widget form fields"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1671756 13f79535-47bb-0310-9956-ffa450edef68
2015-04-07 08:20:39 +00:00
Jacques Le Roux f903bdc355 Fixes a bug related to renderDateTimeField reported by Adrian's aon dev ML (when used from FTL templates)
Fixes also a bug related to renderLookupField when used from FTL templates with lookupField macro

I also spotted a number of other misc. trivial tabindex missing in other *FormMacroLibrary.ftl which should have not (or minor) effects on rendering. I will fix them later today...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1671519 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 12:11:18 +00:00
Jacques Le Roux 8e0222e137 Adds HTML tabindex into widget form fields. It allows to set the tab order of elements (when the "tab" button is used for navigating). For instance by column when columns are used with the position attribute.
Normally it's implemented for all concerned fields.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1671500 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 09:34:54 +00:00
Jacques Le Roux 9422ab9c95 A slightly modified patch from Christian Carlow for "date-find in form widget does not persist value" https://issues.apache.org/jira/browse/OFBIZ-5074
Reported by Taher:
Any search form that calls "performFind" and has a "date-find" tag will not persist but it will give correct search results. 
For example, If I go to Order -> Requests and search using any of the date fields, the result will be correct but the field will be blank upon returning results. This behavior affects only dates.
I suspect the main offender here is a bug in performFind service or one of the services it calls (prepareFind or executeFind). I believe that the "queryStringMap" does not contain the date-find fields in its returned value. I did not look heavily into the code but I think "fld" types are not persisted in-between requests.

Christian:
This issue is still relevant and needed. The <date-find> values are not persisted after submission due to MacroFormRenderer.java not evaluating value and value2 correctly. In face, value2 isn't event passed to the definition in framework/widget/templates/htmlFormMacroLibrary.ftl. This is a starting point for this functionality. I said starting point because I'm not sure if it handles default values and other field settings that may need to be applied after my patch.

jleroux: It indeed needs to be improved, at least to keep the related date operator... I don't close yet, but would be better to open a new Jira issue...
I simply formatted the patch (tabs instead of 4 spaces) and used UtilGenerics.checkMap() instead of (Map<String, Object>) 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1664696 13f79535-47bb-0310-9956-ffa450edef68
2015-03-06 18:53:42 +00:00
Adrian Crum dcecdd25a4 Reorganized the screen widget src folder so classes are more organized.
This commit might break some Groovy scripts. There seemed to be a lot of C&P widget import statements, but there were no widget classes being used in the script, so I removed them. I might have overlooked something though.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652852 13f79535-47bb-0310-9956-ffa450edef68
2015-01-18 21:03:40 +00:00
Jacques Le Roux 82506bb7cc It's not quite clear to me why Date.CultureInfo.formatPatterns.longTime from date.js returns ms (always .000 it seems). I don't know if this would not happen, but anyway I prefer to assign the value to the calendar out of the block which changes the value.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641165 13f79535-47bb-0310-9956-ffa450edef68
2014-11-23 08:49:48 +00:00
Jacques Le Roux c680b1c262 A patch from Gareth Carter for "jQuery datetimepicker popup time value is not set correctly from an existing value" https://issues.apache.org/jira/browse/OFBIZ-5883
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641131 13f79535-47bb-0310-9956-ffa450edef68
2014-11-22 22:48:44 +00:00
Jacques Le Roux d244ee435b A slightly modified patch from Gareth Carter for "<@htmlTemplate.renderDateTimeField does not parse date string based on input format" https://issues.apache.org/jira/browse/OFBIZ-5850
Commit 1626419 changed htmlFormMacroLibrary.ftl renderDateTimeField to use Date.parse instead of Date.parseExact.
https://code.google.com/p/datejs/wiki/APIDocumentation states Date.parse will use current CultureInfo for formats but for parsing ISO yyyy-MM-dd from hidden field, need to use parseExact.
I spotted this when CultureInfo was en-GB and selecting 2014-11-01 on any date field (i18n field displays 11/01/2014 instead of 01/11/2014)
For November all days after the 12th display correctly

jleroux: I simply removed the line added in the block which remove the dot and 000 ms in date/time string. I did not see any reason why this was needed. I modified the comment on this block for faster understanding.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641066 13f79535-47bb-0310-9956-ffa450edef68
2014-11-22 14:15:54 +00:00
Ashish Vijaywargiya 7859237729 Applied bug fix from jira issue - OFBIZ-5773 - <@htmlTemplate.renderDateTimeField> icon buttons disappear on some pages after refresh.
Thanks Akash Jain for the contribution. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626419 13f79535-47bb-0310-9956-ffa450edef68
2014-09-20 11:14:02 +00:00
Ashish Vijaywargiya e4d68ed2f7 Applied the patch OFBIZ-4902_framework.patch from OFBIZ-4902 - Replace in Freemarker templates the deprecated built-ins: default, exists, if_exists.
Thanks http://ofbiz.us team for providing the patch work.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1618325 13f79535-47bb-0310-9956-ffa450edef68
2014-08-16 10:58:51 +00:00
Jacques Le Roux 59119195eb A patch from Leon for "Wrong timeFormat of datetimepicker causes hours represented as 12 not 24" https://issues.apache.org/jira/browse/OFBIZ-5702
Latest datetimepicker add-on uses "timeFormat" option to detect am/pm, lowercase "h" represents 12hr am/pm, uppercase "H" represents 24 hr. (see https://github.com/trentrichardson/jQuery-Timepicker-Addon/issues/547). The datetime input widget that relying on this add-on does not work correctly: it's in 12-hours format not 24 hours.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1616272 13f79535-47bb-0310-9956-ffa450edef68
2014-08-06 16:39:30 +00:00
Jacques Le Roux f23822cdca A patch from Rong Nguyen for "Focus input(dropdown list) when click on label in widget form" https://issues.apache.org/jira/browse/OFBIZ-5594
The current widget form does not focus input(dropdown list) when a label is clicked on.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1583026 13f79535-47bb-0310-9956-ffa450edef68
2014-03-29 16:49:02 +00:00
Jacques Le Roux 4d71caff21 Fixes a bug reported by Rong Nguyen "Error when first login and change password" https://issues.apache.org/jira/browse/OFBIZ-5564
Scenario:
 1. Load-seed
 2. Create-admin-user
 3. Access: /catalog/control/main
 4. Login
 5. Change password for the first use
 
After password change, web browser redirect user to /catalog/control/main with an error

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1575508 13f79535-47bb-0310-9956-ffa450edef68
2014-03-08 10:55:39 +00:00
Jacques Le Roux 3334d1b3ca A patch from Leon for "Form pagination fails if total length of search condition is more than about 2~3k bytes" https://issues.apache.org/jira/browse/OFBIZ-5478
Since it uses "GET" method to submit the pagination request, it's restricted by the URL max length limitation.
The patch attached changes the submit way from GET to "POST" if total length of URL > 2k.


jleroux: I also sort of (found after it was due to it) reverted r1204170, I don't see the reason for this now, and it was uselessly duplicating the current entry in the page size dropdown


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1559338 13f79535-47bb-0310-9956-ffa450edef68
2014-01-18 10:19:44 +00:00
Jacques Le Roux f477c73ae7 A patch from Gareth Carter for "htmlFormMacroLibrary.ftl renderNextPrev does not calculate number of pages correctly" https://issues.apache.org/jira/browse/OFBIZ-5422
There are 2 issues with the existing code.
1 - floor is applied to viewSize only not the computed value
2 - if the listSize divides with viewSize evenly, you'll get one extra
eg
24/2=12 - no of pages = 13
24/5=4.8 - no of pages = 5

Change to correctly calculate the number of pages using ceiling rather than floor

To repoduce this I went into find party screen, search for all and manually set the view size (I had to click next and change the VIEW_SIZE parameter in the url).

In my description I mention 24/2=12 and 24/5=4.8,
24 is number of parties I had
2/5 is the view size

It does not matter what the item size is (as long as its more than 0), you just have to make sure listSize divides by viewSize evenly. In my case 24/2 divided evenly and which should have have given 12 pages but gave 13.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1550201 13f79535-47bb-0310-9956-ffa450edef68
2013-12-11 17:48:37 +00:00
Adrian Crum 27f77678ef New feature - add placeholder to form widget. Patch contributed by Sumit Pandit.
https://issues.apache.org/jira/browse/OFBIZ-5341


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1530656 13f79535-47bb-0310-9956-ffa450edef68
2013-10-09 14:54:40 +00:00
Jacques Le Roux 89c5b3e373 A patch from Leon for "slight patch to "other-field-size" of drop-down form element"" https://issues.apache.org/jira/browse/OFBIZ-5285
"other-field-size" of drop-down form element is a very nice feature, but it's crippled in current version.
attached a patch to make it works and added an example section for that into FormWidgetExample.

jleroux: Interesting, I did not know this feature existed, it was committed long ago by David (before ASF era) 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1511279 13f79535-47bb-0310-9956-ffa450edef68
2013-08-07 12:24:10 +00:00
Adrian Crum 129144e2bc Form widget sort field improvement - add the ability to specify help text on column headers.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1494057 13f79535-47bb-0310-9956-ffa450edef68
2013-06-18 07:58:25 +00:00
Ashish Vijaywargiya 54935d7db8 No functional changes, Formatted the file as per best practice that we follow in FTL files. Thanks Deepak!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1442197 13f79535-47bb-0310-9956-ffa450edef68
2013-02-04 17:40:56 +00:00
Sascha Rodekamp 6ffa178bca js issue causes error when invalid dates are entered (https://issues.apache.org/jira/browse/OFBIZ-4982). A patch from Christoph Neuroth: Reproduce: Enter "123" in a DateField. This will trigger a JS exception and the invalid value will be sent to the server on form submission, probably causing server-side exceptions in badly written backend code, resulting in really bad error messages for the user.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1370123 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 05:51:10 +00:00
Jacques Le Roux 9b00fd0dce renderLookupField macro comments improvement
Simple formatting (tabs to 2 spaces)
Fixes a bug which prevented to show an i18n "clear" text when layered lookups were used in read only mode from FTL templates
Fixes a bug which prevented to clear the description (at right of button) when layered lookups were used in read only mode 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369561 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 11:48:44 +00:00
Jacques Le Roux 9fd4ddb462 Closes "correct "javascript:void();" to "javascript:void(0);" to make it syntax valid" reported by Leon https://issues.apache.org/jira/browse/OFBIZ-4970
Firefox will throw syntax error if you call javascript void function without parameter.

jleroux: I did not reproduce with FF14 on XP (modern browsers correct by themselves) but I agree it's a better syntax. So I changed all where it was needed.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369555 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 11:27:20 +00:00
Sascha Rodekamp c46513daa0 Lookup filed with target-parameter attribute set cannot be displayed (https://issues.apache.org/jira/browse/OFBIZ-4950) A patch from Leon: if <lookup> field has attribute "target-parameter" set, then there's javascript error in front end and lookup icon disappears.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1357098 13f79535-47bb-0310-9956-ffa450edef68
2012-07-04 06:24:57 +00:00
Sascha Rodekamp d9de95aec9 Render checkbox field as same behavior as radiobox (https://issues.apache.org/jira/browse/OFBIZ-4948): A patch from Leon: when rendering a radio field in form widget, the generated html codes looks like: <span><input type="radio" ...>blahblah</span>. The radio box and its description are wrapped by <span> and it's easy to change css style for both of them (radio and description), not only for radio type input. But the check box is rendered in another way without <span> around.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355291 13f79535-47bb-0310-9956-ffa450edef68
2012-06-29 09:31:22 +00:00
Sascha Rodekamp 38abbfc4c2 Refactoring fieldlookup.js - step one: restructuring the lookup object, encapsulate some methods in objects
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1352804 13f79535-47bb-0310-9956-ffa450edef68
2012-06-22 08:48:58 +00:00
Hans Bakker 8ce6e56675 comment from jacopo, to revert changes from the freemarker down grade
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309778 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 11:30:30 +00:00
Jacques Le Roux c6288f1d46 A patch from Wai "widget <image> tag to use css for resizing" https://issues.apache.org/jira/browse/OFBIZ-4678
Summary: The purpose of this patch is to address the following:
1. Provide a standardized set of image width and height specs for page layout in ofbiz. This gives ofbiz a uniform look throughout as it applies to image display.
2. Preserve the aspect ratio of the image when using these standardized image sizes.
3. One place to make styling modifications (eg. css file).
4. Decouple styling from code (eg. java,ftl,xml,html,jsp,etc).

Regarding including the real image size, the width/height attributes in <img> specifies the boundary of the image when shown on the page. If you need to specify the real size of the image, the server code would have to perform the determination. Afterwards, you can include the actual dimensions of the image in the title attribute of <img>

Details:
Manually specifying the image width and height does help with preserving the layout of a page regardless of the image size to be shown. The challenge with this method is that the image shown on the page in question may be distorted if the aspect ratio of the image differed from that of the width and height attributes of <img>. This basically forces the person uploading the image to be more vigilant about image aspect ratios.
The purpose is to harmonize on the display size of images with a standardized set of width/height constraints in which an image must fit and preserve the aspect ratio of images.

Currently the source files (eg. ftl, xml) either manually specifies the width or height of a displayed image (ie widget <image> and html <img> tag). The problem with specifying only one constraint is that an image can affect the layout of the page if the user uploads an image where the aspect ratio could be large.

Some ftl and xml files specify both the width and the height. The problem with this is that if the aspect ratio of the image in question does not match that of the width and height of the <img> tag, the image would be displayed distorted.

The solution was to create a standardized set of CSS styles that both configure the displayed image size and preserve the image aspect ratio (eg. thumbnail size, medium size and large size). Of course, the developers can further define or modify the styles to suit their need.

By using CSS, one can change the size of displayed images without having to tamper with the ftl and/or xml files. This helps to reduce potential bugs that come with modifying the ftl and xml files. The existing way of doing things is to go through each ftl or xml file in question and manually modify the width and/or height of the <image> and/or <img> tag.

The question about the "border" around images. If you do not wish to have a border around the image, just remove it from the CSS style. It's that easy No need to change anything else. Ie. configuration to the image is done on the CSS style and not on the <image>, <img> tag.

NB: The current patch does not apply to all displayed images. I have only made appropriate modifications to widget <image> and html <img> tags that have either specified the width and/or height. There are numerous <image> and <img> tags spread all over the project that do not specify dimensions. I would have to modify them as I encountered them when I could see where and how they are displayed on the screen. Note that these images would not be affect by this patch.

jleroux: despite my efforts I was not able to check all screens. But I think it's ok

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1296782 13f79535-47bb-0310-9956-ffa450edef68
2012-03-04 11:54:13 +00:00
Erwan de Ferrieres a8ce326075 OFBIZ-4667 At the time of page load unnecessary ajax request executed to get the lookup description. - A patch from Amardeep Singh Jhajj
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1244953 13f79535-47bb-0310-9956-ffa450edef68
2012-02-16 12:13:49 +00:00
Jacques Le Roux 0b790e1661 A patch from Manuela Gruendlinger "renderDateTimeField does not allow to clear input field" https://issues.apache.org/jira/browse/OFBIZ-4595
Input fields rendered with renderDateTimeField cannot be cleared, the old value is always restored.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1209250 13f79535-47bb-0310-9956-ffa450edef68
2011-12-01 21:26:32 +00:00
Adrian Crum d603c617b8 Fixed bug in htmlFormMacroLibrary.ftl - list navigation page size drop-down was ignoring the current setting.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1204170 13f79535-47bb-0310-9956-ffa450edef68
2011-11-20 13:44:33 +00:00
Sascha Rodekamp 91ffcbdae6 Update jQuery:
jQuery library to version 1.7
jQuery UI to version 1.8.16
jQuery Validation to version 1.9
jQuery Flot to version 0.7
jQuery datetimepicker to version 0.9.7
and jsTree

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1199218 13f79535-47bb-0310-9956-ffa450edef68
2011-11-08 12:35:33 +00:00
Jacques Le Roux 087262557c * Uses rather minified css for elrte Editor
In last commits (1178141, 1178111) I put wrong paths for:
* elrteEditor for css pathes is now elrte-1.3
* missed js in elrte-1.3/js/i18n for i18n files



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1178166 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 09:48:05 +00:00
Jacques Le Roux 1a2cc4faf9 In order to try to resolve "i18n for elrte editor" https://issues.apache.org/jira/browse/OFBIZ-4051, 1st update elrte Editor from 1.1 to to 1.3 version
Also removes now useless older jQuery versions I kept so far for a problem nobody cares about anyway

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1178141 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 08:06:49 +00:00
Erwan de Ferrieres 573f6f401a A patch from Youssef Khaye: Date time field with input method set to time-drop-down is not working correctly OFBIZ-4448
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1175474 13f79535-47bb-0310-9956-ffa450edef68
2011-09-25 18:15:11 +00:00
Hans Bakker 9b17664d42 add the viewsize and viewindex parameters to the buttons on a list form to remember the paage and pagesize automatically
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1160539 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 04:26:06 +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
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
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