Commit Graph
8242 Commits
Author SHA1 Message Date
Scott Gray 2ecc4b2494 Removed unnecessary SuppressWarnings annotations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044932 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 21:31:51 +00:00
Scott Gray 47f43a302a Remove unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044931 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 21:31:27 +00:00
Scott Gray dbaed85112 Remove unreachable catch block
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044918 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 20:43:13 +00:00
Scott Gray 75b0b1c1e3 Remove unnecessary semicolons
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044917 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 20:43:03 +00:00
Scott Gray bdd23c22d5 Add missing override annotations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044913 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 20:41:27 +00:00
Jacques Le Roux 97ac568b9a A patch from Dukian (actually done by hand was easier, got an UTF8 issue)
There are many different i18n file naming approaches for language.country couple. For Traditional Chinese ... OFBiz uses java way: zh_TW, datepicker uses zh-TW, and el-rte needs this patch. It uses actually zh_tw, see the full version line 1108:

Dukian will file this issue to el-rte project too.

At r1044611 I 1st committed in jQyery branch, an habit to loose..

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044615 13f79535-47bb-0310-9956-ffa450edef68
2010-12-11 09:46:07 +00:00
Jacques Le Roux 1539f888c0 Fix a small bug introduced with r1044132 for OFBIZ-4051 i18n for elrte editor. It was crashing renderTextareaField when called from forms
Also while at it renames visualEdtiorEnalble to visualEditorEnable

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044510 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 21:00:06 +00:00
Jacques Le Roux 24fe5ff37e Merges the jQuery branch back to the trunk
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044503 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 20:40:08 +00:00
Adam Heath a2fd254167 Make FreeMarkerWorker.getWrappedObject auto-cast to whatever type the
caller wants.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044232 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 07:21:09 +00:00
Adam Heath d61ce6486f Move variable declarations until they are actually used, instead of
assigning null, then force-reassigning the real value later.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044230 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 07:20:49 +00:00
Adam Heath 90c849bb36 Remove unnecessary cast when fetching the compiled template from the
UtilCache cache.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044229 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 07:20:42 +00:00
Adam Heath 762a3b6630 Fix some spacing issues, no code changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044228 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 07:20:35 +00:00
Adam Heath 2f6217251a Set svn:eol-style properly on all java files. This needs to be done on other text files as well, but that would cause undo conflicts in the jquery branch(due to .js being heavily modified there). Also, some files were committed to the repository with DOS line endings; those are fixed as well.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044202 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 02:40:02 +00:00
Hans Bakker 05770c2fcd OFBIZ-4046: Adding chapter on Datafiles to docbooks. Contribution by BJ Freeman
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1043266 13f79535-47bb-0310-9956-ffa450edef68
2010-12-08 01:14:57 +00:00
Andrew Zeneski 0c211fb4e9 implemented option to specific a specific entity should NOT be checked; no columns are to be updated and ignore any warning about fields, relations, keys, etc. This is useful when an entity is defined based on a database view; the view may not (or probably will not) appear in the table meta data and any attempt to auto-create the entity will (or should) fail.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042792 13f79535-47bb-0310-9956-ffa450edef68
2010-12-06 21:07:48 +00:00
Jacques Le Roux 9679d72618 A patch from Anne Jessel "Is Empty for text-find widget broken" (https://issues.apache.org/jira/browse/OFBIZ-4025) - OFBIZ-4025
To reproduce:
    * go to Facility, Inventory Items tab (or any form that uses text-find widget)
    * choose "Is Empty" from drop-down next to Product Id
    * click Find button

Expected behaviour: no matching items listed, as all items have a Product Id.
Observed behaviour: all items match.

Problem is caused by find code assuming that there is no entity condition to be created if the text field is empty, but of course Is Empty is
different to the other operators in that the text field is expected to be empty.

The attached patch adds a special check for the Is Empty operator.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042396 13f79535-47bb-0310-9956-ffa450edef68
2010-12-05 18:43:44 +00:00
Jacques Le Roux 8cf126e7f5 A patch from Anne Jessel "Collapse all broken if hyperlink in pane" (https://issues.apache.org/jira/browse/OFBIZ-4022) - OFBIZ-4022
To reproduce the bug:
    * edit the EditProduct form in applications/product/widget/catalog/ProductForms.xml
    * add a new field with a hyperlink sub-element.
    * refer to this new field in the first, non-collapsible field-group in the sort-order
    * go to this page in the UI (edit a product in the catalog)
    * the Expand All and Collapse All buttons do not work properly

The problem is caused by the javascript finding the added hyperlink field in the first field-group, and incorrectly assuming it is
the expand/collapse link for the field-group. This causes the javascript to crash when it gets a null reference to an enclosing li element.

It is not specific to the EditProduct form, but applies to any group of collapsible panes where one contains a hyperlink.

The attached patch simply checks that the li element actually exists.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042348 13f79535-47bb-0310-9956-ffa450edef68
2010-12-05 13:37:07 +00:00
Scott Gray f4159d4294 In GenericDAO.selectListIteratorByCondition(...) the order of the select fields wasn't being maintained. This causes problems later on if the EntityListIterator needs to perform a count query where the select field ordering is important for distinct queries (particularly for the likes of postgres which doesn't support SELECT COUNT(DISTINCT *) which can result if the first field is an aggregate).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042280 13f79535-47bb-0310-9956-ffa450edef68
2010-12-05 04:26:43 +00:00
Bruno Busco 25965626af Reverted revision 1042196 as suggested by Adam.
This change introduces framework dependencies from applications.
More work is needed to the patch in https://issues.apache.org/jira/browse/OFBIZ-4037 before committing again.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042250 13f79535-47bb-0310-9956-ffa450edef68
2010-12-04 22:29:33 +00:00
Bruno Busco 587e93ba82 https://issues.apache.org/jira/browse/OFBIZ-4037
Moved the feature that allows a new user to register for an account from MyPortal to the framework so that it is available in any application.
It has also been slightly reworked (code cleaning and internationalization).
Two flags in general.properties allows to configure if the register function must be enabled or not and if the captcha function should be used.
The captcha function needs to be improved because at the moment the code is contained in an hidden field so that it is very easy for a computer to bypass it.
A possible fix for this could be to put the MD5 coding of the captcha code in the hidden field.
Then the event that checks the code should compare the MD5 codes.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042196 13f79535-47bb-0310-9956-ffa450edef68
2010-12-04 14:58:18 +00:00
Bruno Busco e20f900808 Changed several ecommerce ftl files rendering screenlets so that the HTML is the same as the one that is rendered by the screenlet widget.
Added screenlet styles to the ecommain.css
Added several missin screenlet-body tags.
This allows better and more omogeneus rendering when mixing together FTL and screenlet widgets.
To be continued...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042133 13f79535-47bb-0310-9956-ffa450edef68
2010-12-04 10:34:47 +00:00
Jacques Le Roux 183850ba5c Fix a typo (bad formatting) reported by Adam on dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1041135 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 19:12:52 +00:00
Hans Bakker 6cab58f905 change all @yahoo.com to @example.com Suggestion from Scott
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040914 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 09:38:00 +00:00
Hans Bakker 4a9ea51f54 allow single pieces and boxes with a numkber of pieces share the same inventory location but can however be sold at optionally different prices. More explanation will be given in the new feature list of december 2010. Contribution of tukkata.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040908 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 09:26:47 +00:00
Jacques Le Roux 9b75d04f7e A patch from Felice Romano "NPE when calling org.ofbiz.entity.model.ModelEntity.getTableName(null)" (https://issues.apache.org/jira/browse/OFBIZ-4040) - OFBIZ-4040
When "table name" is required to a "model entity" object, it throws a NPE if "datasource info" object is null. 

JLR: I'm not quite sure in which occasions this fix is needed OOTB, but anyway it's safer indeed.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040890 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 08:29:21 +00:00
Adam Heath d241a1049a Fix several xml files that had DOS line endings; converted them to UNIX,
so that on fresh checkouts they will be auto-converted to native.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040833 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 00:15:17 +00:00
Adam Heath 192418385b Several utility methods for copying streams and
readers/writers/appendable.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040798 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 22:03:40 +00:00
David E. Jones f2dff15007 Undo part of the changes from Hans in rev 1037624 which caused the system to reset the delegator to the base delegator and ignore the user's specified tenant
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040651 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 17:35:05 +00:00
Jacques Le Roux f517be11ef revert r1037521 "Preselect default country into drop down" (https://issues.apache.org/jira/browse/OFBIZ-4013) - OFBIZ-4013
This is not how it should be done. For instance when you update a postal address from a party profile you always get selected the default country. OFBiz records correctly the change underneath but it's confusing as you don't see the right information on screen

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040426 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 07:45:53 +00:00
Ashish Vijaywargiya 468b6ec109 Bug fix.
Removed hard coded viewSize value from FindGeneric.groovy file. If viewSize is not available in parameters then read defaultViewSize from widget.properties and set it as a viewSize. Hard coded view size create inconsistency in pagination. i.e If result contains 15 items then view size displayed in dropdown is 20 and only (1 - 10 of 15 ) items displayed as a search result.

Thanks Deepak & Rishi for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040091 13f79535-47bb-0310-9956-ffa450edef68
2010-11-29 12:46:58 +00:00
Jacques Le Roux 600bac5ad9 A patch from Sascha Rodekamp "Redirect from Http to Https causes double service call" (https://issues.apache.org/jira/browse/OFBIZ-3988) - OFBIZ-3988
The problem is, when you call a request over http, but the controller wants an https request, the RequestHandler make an redirect to https (which is indeed pretty cool). But this redirect causes that Events/ Services will be called twice. This can be avoided when we return from the Service/ Event directly after doing the redirect.
Example: http://localhost:8080/ecommerce/control/setdistributor?distributor=4711

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040044 13f79535-47bb-0310-9956-ffa450edef68
2010-11-29 09:33:39 +00:00
Jacques Le Roux d555ce6c36 Fix duplicates in labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039858 13f79535-47bb-0310-9956-ffa450edef68
2010-11-28 09:56:44 +00:00
Scott Gray a0771ae85d Remove method that was a duplicate of the superclass method
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039772 13f79535-47bb-0310-9956-ffa450edef68
2010-11-27 22:14:35 +00:00
Scott Gray 4ec14a82cb Remove redundant null check
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039771 13f79535-47bb-0310-9956-ffa450edef68
2010-11-27 22:14:25 +00:00
Scott Gray 5d3699e21b Formatting cleanup, no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039770 13f79535-47bb-0310-9956-ffa450edef68
2010-11-27 22:14:16 +00:00
Scott Gray 3f34e1fdef Deprecated the ContainerField's id field and getter/setter, this sort of thing is already handled by ModelFormField
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039769 13f79535-47bb-0310-9956-ffa450edef68
2010-11-27 22:14:07 +00:00
Scott Gray 8391f99d84 [OFBIZ-4036] Form widget display field descriptions were still being encoded when encode-output was set to false. Bug reported by Bruno Busco.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039767 13f79535-47bb-0310-9956-ffa450edef68
2010-11-27 21:51:01 +00:00
Jacques Le Roux 66c5dd10a0 A patch from Dukian "Add Traditional Chinese translation for applications, ecommerce, and ofbizsetup" (https://issues.apache.org/jira/browse/OFBIZ-4031) - OFBIZ-4031
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039574 13f79535-47bb-0310-9956-ffa450edef68
2010-11-26 21:56:14 +00:00
Hans Bakker 19b0d3bcf8 soap session not closed after transfer, corrected
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039262 13f79535-47bb-0310-9956-ffa450edef68
2010-11-26 07:53:51 +00:00
David E. Jones 872a21e20a Improved error message when map-name for field isn't a Map
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1038893 13f79535-47bb-0310-9956-ffa450edef68
2010-11-25 02:04:30 +00:00
Hans Bakker 350dc3c0ed add root condition for initial path and add multi tenant condition in the login screen of myportal
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1038543 13f79535-47bb-0310-9956-ffa450edef68
2010-11-24 09:55:16 +00:00
David E. Jones 524525fa00 Fixed bug with new group-columns attribute when set to false the hidden fields were not rendering
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1038487 13f79535-47bb-0310-9956-ffa450edef68
2010-11-24 05:51:12 +00:00
Jacques Le Roux b8689d9e7a A patch from Sascha Rodekamp "Security Update for forgotten passwords " (https://issues.apache.org/jira/browse/OFBIZ-3842) - OFBIZ-3842
Improve the a random Password generation when the "require new password" function is called. In the current Trunk it's a kind of hard coded password that will be send to the user. After generating a new pass the "requireNewPassword" flag will be set to true (configurable).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1038209 13f79535-47bb-0310-9956-ffa450edef68
2010-11-23 17:13:53 +00:00
Ashish Vijaywargiya 68c43b3d69 Bug fix. Code should not read all the message from the Inbox. Code will only fetch the newly received message. Currently it is generating log message for all the Inbox message that is of no use and unnecessarily keeps system busy.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1037883 13f79535-47bb-0310-9956-ffa450edef68
2010-11-22 20:56:07 +00:00
Hans Bakker ef76d5387d small adjustment fo multitenant, redirecting url in jsp did not work properly
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1037624 13f79535-47bb-0310-9956-ffa450edef68
2010-11-22 07:55:56 +00:00
Jacques Le Roux 03515798f6 A patch from Eric de Maulde "Service Engine can't display sendMail service" (https://issues.apache.org/jira/browse/OFBIZ-4019) - OFBIZ-4019
There's an error into file AvailableServices.groovy to open sendMail service


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1037560 13f79535-47bb-0310-9956-ffa450edef68
2010-11-21 21:12:43 +00:00
Jacques Le Roux ac2e687b61 A modified patch from Anne Jessel "title-property should be titleProperty" (https://issues.apache.org/jira/browse/OFBIZ-4018) - OFBIZ-4018
Anne: some screen widgets set the field title-property instead of titleProperty. This causes errors in the logs, and means that the page title is not being set.
While preparing this patch, I discovered the labels referred to by some of these titleProperties were not available in Order component. However the missing ones were in Ecommerce. So I copied the missing ones to OrderUiLabels.xml.

JLR: instead of copying labels in OrderUiLabels.xml, I moved them to CommonUiLabels.xml: less and more consistent changes in the future.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1037559 13f79535-47bb-0310-9956-ffa450edef68
2010-11-21 21:07:19 +00:00
Jacques Le Roux afeee2c250 A patch from Eric de Maulde "Preselect default country into drop down" (https://issues.apache.org/jira/browse/OFBIZ-4013) - OFBIZ-4013
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1037521 13f79535-47bb-0310-9956-ffa450edef68
2010-11-21 18:33:41 +00:00
David E. Jones b720b413a1 Added new group-columns attribute to form element to not group input/other columns if not desired, defaults to true which is the old/original behavior
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1037146 13f79535-47bb-0310-9956-ffa450edef68
2010-11-20 09:32:30 +00:00
Jacques Le Roux c233358a63 A patch from Shi Yusen "Improve the Chinese translation of word 'Review' " (https://issues.apache.org/jira/browse/OFBIZ-4028) - OFBIZ-4028
Improve the Chinese translation of word 'Review' to make it same as the term used by local ecommerce suites.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1036483 13f79535-47bb-0310-9956-ffa450edef68
2010-11-18 15:16:29 +00:00