Adrian Crum
eb88470d5f
Minor JavaDoc changes in Range.java. No functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935369 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 17:30:10 +00:00
Scott Gray
167b4c0b99
Added a Groovy Builder class for building EntityConditions, plenty of room for handling possible errors, at the moment I'm just assuming the passed in parameters will be what I expect
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935326 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 10:11:45 +00:00
Bruno Busco
0cb13d9b58
A patch from Blas Rodriguez Somoza
...
OFBIZ-3708 - Fields should be defined with span not div. (radio, date, lookup)
https://issues.apache.org/jira/browse/OFBIZ-3708
Field markup should be a valid inline element.
Defining fields with div (block) instead of span (inline) creates several problems:
* Missalignments in screen. (See LOOKUP_CAL screenshots)
* Implies a end-of-line after the div. (See CAL screenshots)
* If used inside inline elements which should be OK, becames XHTML validation errors. (Manufacturing -> MRP -> MRP log)
Because this is a markup problem, it spans to all the themes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935312 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 08:06:28 +00:00
Bruno Busco
38c435ca8d
A slightly changed (tabs replaced with spaces) patch from Blas Rodriguez Somoza
...
OFBIZ-3681 - XHTML validation errors round 2+ (framework excluding widgets)
https://issues.apache.org/jira/browse/OFBIZ-3681
XHTML validation errors
* Unclosed tags
* attributes without values (checked, selected, disabled, etc)
* attribute values without "
* Uppercase tags or attributes.
* Unencoded ampersands in urls.
Other errors:
common/webcommon/includes/listVisualThemes.ftl
Line 19: style tag is not allowed here, style must be in the style attribute of the tag.
webtools/webapp/webtools/stats/StatBinsHistory.ftl
Line 29: duplicated id
webtools/webapp/webtools/tempexpr/tempExprMaint.ftl
Lin 32, 104: form must be outside table.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935311 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 07:52:08 +00:00
Jacques Le Roux
a0b01446aa
A patch from Bob Morley "Resolve java warnings exposed in Eclipse (Party part of OFBIZ-3100)" https://issues.apache.org/jira/browse/OFBIZ-3589 - OFBIZ-3589
...
Party was very clean; only a few minor changes - also added a @SupressWarnings("serial") in framework's MimeMessageWrapper (noticed when fixing iteration from this in Party).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935269 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 22:25:40 +00:00
Bruno Busco
d5c2d0d92f
A slightly changed (tabs replaced with spaces) patch from Blas Rodriguez Somoza
...
OFBIZ-3671 - XHTML validation errors (framework/widget) In xml (xhtml) ID must be unique
https://issues.apache.org/jira/browse/OFBIZ-3671
In XML id is a special attribute which must be unique.
* ModelFormField.java must have the method getCurrentContainerId which is already on ModelForm
* MacroFormRendered and HtmlFormRenderer must be modified to use the getCurrentContainerID instead of getIdName
* htmlFormMacroLibrary. span id must be different from the associated hidden field.
Also:
htmlFormMacroLibrary
Line 73: readonly attribute without value.
Lines 102.103: better formatted, more readable javascript call.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935197 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 16:10:24 +00:00
Scott Gray
d4e34a244a
Fixed a ton of pointless ServiceUtil.returnError(...) calls, I've left the ones that aren't inside services for now since they require a little more thought to fix
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935164 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 10:28:18 +00:00
Scott Gray
f8354e3fa4
Get rid of a bunch of Integer instantiations
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935163 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 10:27:15 +00:00
Scott Gray
d5c795b8f0
Doh, forgot to remove the import
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935143 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 07:48:33 +00:00
Scott Gray
2d64fd155b
Removed unused import, removed implements declaration (the superclass already declares it) and removed some unnecessary casts
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935142 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 07:47:09 +00:00
Scott Gray
28ca28af2c
Removed unused imports and added @Override where needed
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935139 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 07:12:33 +00:00
Scott Gray
e1c4500603
Fix the StringToBigDecimal converter to not use an interim double value unless it absolutely has to
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935137 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 07:09:11 +00:00
Scott Gray
b033379d37
class is a reserved javascript keyword so you have to wrap it in quotes if you want to refer to an elements class attribute (I don't think Firefox complains but Safari does)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935117 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 03:23:25 +00:00
Adrian Crum
b6e2455579
An improved Assert class - replaces the one I took out.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935096 13f79535-47bb-0310-9956-ffa450edef68
2010-04-16 23:29:07 +00:00
Jacques Le Roux
cda9848407
Labels for r935075 ("Change the lookups in example to better demonstrate the differences between popup and layer")
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935084 13f79535-47bb-0310-9956-ffa450edef68
2010-04-16 21:52:30 +00:00
Jacques Le Roux
f390b092a3
Change the lookups in example to better demonstrate the differences between popup and layer
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935075 13f79535-47bb-0310-9956-ffa450edef68
2010-04-16 20:38:53 +00:00
Erwan de Ferrieres
6d4d2a3815
Shortening some French uiLabels
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934739 13f79535-47bb-0310-9956-ffa450edef68
2010-04-16 10:40:41 +00:00
Adrian Crum
0909a29080
One more small performance tweak for TimeDuration.java.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934543 13f79535-47bb-0310-9956-ffa450edef68
2010-04-15 18:50:04 +00:00
Andrew Zeneski
d78152f6c8
implemented <script> tag in minilang that works exactly the same way as the screen widget version
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934510 13f79535-47bb-0310-9956-ffa450edef68
2010-04-15 18:32:35 +00:00
Adrian Crum
b5bd489ca5
Fixed a TimeDuration speed issue that was revealed by Coburtura.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934289 13f79535-47bb-0310-9956-ffa450edef68
2010-04-15 05:10:59 +00:00
Adrian Crum
896222b7fe
Revert unintentional file change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934211 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 21:54:29 +00:00
Adrian Crum
fa825dd956
Reverting my last commits. I just found out Apache Commons Validate does the same thing.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934179 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 20:22:26 +00:00
Adrian Crum
beb4b8bcaa
Small fixup for last commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934169 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 20:09:42 +00:00
Adrian Crum
a05a3dfcab
Added an Assert class. It should make argument checking easier.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934166 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 20:03:46 +00:00
Erwan de Ferrieres
e0033c6c5c
Applying OFBIZ-3694 "Pass Accounting label to Common Label". The AccountingNoRecordFound is now CommonNoRecordFound
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933890 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 09:19:52 +00:00
Adrian Crum
84626504a0
Updated the ICU4J library.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933324 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 17:06:42 +00:00
Erwan de Ferrieres
08359da5c5
removing image path from request parameters after rendering the given hyperlink to avoid associating it to other link not having images in a list
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933244 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 14:08:02 +00:00
Jacques Le Roux
e9733780ce
A patch from Sascha Rodekamp "Opening a lookup from a lookup in IE8 does not work", part of https://issues.apache.org/jira/browse/OFBIZ-3668 - OFBIZ-3668
...
The IE had problems with the variable 'item' ... maybe a reserved word ?!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933226 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 13:27:02 +00:00
Jacques Le Roux
b31485affb
Fixes some duplicates labels
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933206 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 12:06:38 +00:00
Jacques Le Roux
c9ae599f32
A patch from Sascha Rodekamp "Cross button does not work if you don't click on the layer before", part of https://issues.apache.org/jira/browse/OFBIZ-3446 - OFBIZ-3446
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933170 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 10:09:13 +00:00
Jacques Le Roux
cf77b5e6a0
A slightly modified patch from Atul Vani "Calendar rendered position too low when you scroll in a layered lookup" ( https://issues.apache.org/jira/browse/OFBIZ-3667 ) - OFBIZ-3667
...
This patch attempts to fix the problem,calendar is now relatively positioned, and the parent element's height is set appropriately.
I just added some "mod for OFBiz layered lookups" comments around changes as suggested Sascha
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933169 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 10:04:39 +00:00
Jacques Le Roux
68acd1438f
20 is not a valid argument to position. This was not a big deal as it defaulted to empty, which for the moment defaults to normal. At term we will put "topleft" as default here
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933151 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 08:53:52 +00:00
Bilgin Ismet Ibryam
12c181dea7
Added missing macro renderer parameters.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933134 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 08:14:42 +00:00
Bilgin Ismet Ibryam
82a5bf6b02
A patch from OFBIZ-3555 "Show lookup value descriptions". This enhancements allows displaying a description for the IDs in lookup fields. To enable this feature set widget.lookup.showDescription to Y in widget.properties
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933130 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 07:54:10 +00:00
Bilgin Ismet Ibryam
906d1cd234
Fixed wrong argument name passed to renderContainerField macro. Thanks to Blas for reporting.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933099 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 06:13:40 +00:00
Jacques Le Roux
733cf6e562
Fix 2 comments,I commit because while I make some other changes during my tests I have to get this comments right again when reverting.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932964 13f79535-47bb-0310-9956-ffa450edef68
2010-04-11 18:04:22 +00:00
Bruno Busco
ea99105d8c
A slightly changed patch from Blas Rodriguez Somoza
...
OFBIZ-3626 - XHTML validation errors (framework/widget) Bugs in ModelForm (fieldgroups, itemrows with links)
https://issues.apache.org/jira/browse/OFBIZ-3626
Errors in ModelForm in fieldgroups and itemrows.
I only removed some tabs and added curly brackets
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932840 13f79535-47bb-0310-9956-ffa450edef68
2010-04-11 06:29:53 +00:00
Bruno Busco
792f965046
A patch from Blas Rodriguez Somoza
...
OFBIZ-3643 - Error screen in webtools->Import Export -> Induce model from database (Ofbiz Demo)
https://issues.apache.org/jira/browse/OFBIZ-3643
Error screen when "induce model from database" option selected.
org.apache.jasper.JasperException: Unable to compile class for JSP:...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932737 13f79535-47bb-0310-9956-ffa450edef68
2010-04-10 14:53:12 +00:00
Bruno Busco
5d5e489598
A patch from Blas Rodriguez Somoza
...
OFBIZ-3637 - XHTML validation errors (framework excluding widget) round 2
https://issues.apache.org/jira/browse/OFBIZ-3637
XHTML validation errors
* Unclosed tags INPUT, IMG, BR...
* attributes without values (checked, selected, disabled, etc)
* attribute values without "
* required attributes not included (alt in img, type in style, type in script etc)
* Uppercase tags or attributes.
* Unencoded entities (ampersands).
Other changes:
selectall.js
line 333. ajaxAutoCompleter must work with unenconded or encoded ampersands.
EntityRefMain.ftl
line 176. <div> must be </div>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932733 13f79535-47bb-0310-9956-ffa450edef68
2010-04-10 14:35:07 +00:00
Adam Heath
fcd5a641ad
s/test-case/test-group/, taken from OFBIZ-3661, so that all tests will
...
be run.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932233 13f79535-47bb-0310-9956-ffa450edef68
2010-04-09 03:19:27 +00:00
Scott Gray
80804f0931
Removed usage of the deprecated macro renderer constructors
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932174 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:23:33 +00:00
Scott Gray
5796fe94d7
Deprecated the form and screen macro renderer constructors and added new ones that don't take an Appendable as an argument
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932173 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:23:25 +00:00
Scott Gray
a255f30b29
Fixed a bug in the macro form renderer where the writer being passed in to the render* methods was being ignored and the writer supplied in the constructor was being used instead, this causes problems when multiple writers are being used to render a page.
...
Solved by ignoring the writer passed into the constructor (I'll deprecate that constructor and put in a new one shortly) and instead maintaining a separate freemarker environment for each appendable passed into the renderer using a WeakHashMap.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932172 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:14:17 +00:00
Scott Gray
1f29264b91
Fixed a bug in the macro screen renderer where the writer being passed in to the render* methods was being ignored and the writer supplied in the constructor was being used instead, this causes problems when multiple writers are being used to render a page.
...
Solved by ignoring the writer passed into the constructor (I'll deprecate that constructor and put in a new one shortly) and instead maintaining a separate freemarker environment for each appendable passed into the renderer using a WeakHashMap.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932171 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:14:12 +00:00
Scott Gray
06be6c89c0
Removed an unused delegator variable
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932167 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:13:53 +00:00
Scott Gray
ef95f80dbf
Removed some unnecessary casts
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932166 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:13:49 +00:00
Scott Gray
c47c48d412
Removed an unnecessary null check
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932165 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:13:44 +00:00
Scott Gray
44e130fc03
Removed an unused import and a couple of unnecessary casts
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932164 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:13:33 +00:00
Adam Heath
a9a3b1058c
When rolling back a transaction, and there is already an exception
...
available, then don't bother logging a new temporary exception.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932104 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 20:47:42 +00:00
Adam Heath
8bfe0b1b51
Reduce excessive service error exception logging, removes 2 cases of the
...
logged exception.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932103 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 20:47:36 +00:00