Commit Graph
10472 Commits
Author SHA1 Message Date
Marco Risaliti a919ba2003 Remove some unnecessary suppress warning serial in UtilProperties (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068576 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 20:56:34 +00:00
Marco Risaliti cc33513cce Remove some unused import in ModelMenuItem (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068573 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 20:48:46 +00:00
Marco Risaliti d67e3a92fa Remove an unused import in ModelFormAction (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068571 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 20:47:50 +00:00
Marco Risaliti 5c8186724e Remove some unused import in PortalPageWorker (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068570 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 20:46:06 +00:00
Marco Risaliti f7e858af65 Remove an unused import in FreeMarkerViewHandler (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068567 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 20:42:28 +00:00
Marco Risaliti ac07860c5a Remove some unused import in ControlServlet (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068565 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 20:39:40 +00:00
Marco Risaliti 62cfec0ea0 Remove an unused variable in EntityXmlAssertTest (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068563 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 20:37:17 +00:00
Marco Risaliti ce360524fe Remove an unused variable/import in ModelPermission (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068557 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 20:31:43 +00:00
Marco Risaliti 5682344416 Remove an unused variable related to soap tests (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068556 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 20:29:31 +00:00
Marco Risaliti 733d4d5207 Remove an unused private method of EntityDataServices instead of suppress it as unused (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068513 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 18:36:34 +00:00
Marco Risaliti e986ee1d2e Remove an unused private method of EntityConfigUtil instead of suppress it as unused (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068508 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 18:31:48 +00:00
Marco Risaliti 60d44422ef Remove an unused private variable of method containsAll in GenericMapCollection instead of suppress it as unused (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068507 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 18:29:35 +00:00
Marco Risaliti b18225f7b1 Remove an unused private method of JNDIConfigUtil instead of suppress it as unused (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068505 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 18:25:52 +00:00
Jacques Le Roux dc0ff25b68 Replaces obsolete comment by a better information on what is really possible to do with getDependentDropdownValues.js
Also removed tabs in SetupScreens.xml and formatted correctly



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068490 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 17:41:04 +00:00
Jacques Le Roux 3031e044bf That is the real solution for the zoom here
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068412 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 14:26:07 +00:00
Jacques Le Roux e28ad40e74 No needs to set zoom when it's already handled
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068394 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 13:56:05 +00:00
Jacques Le Roux a9a3d4bdeb Fix "Ajax requests prevent externalLoginKey parameters from working correctly" (https://issues.apache.org/jira/browse/OFBIZ-3862) - OFBIZ-3862
Scott reported: To clarify, the problem only occurs if the Ajax call results in a screen being rendered since it is the ScreenRenderer that causes a new key to be generated.

Bilgin suggested: I think a solution would be to skip generating of new external login key for Ajax requests.
Ajax requests can be identified by presence of 'X-Requested-With': 'XMLHttpRequest', http header. It is set by most of the Javascript libraries we use: prototype, jquery.

I coded it

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068283 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 07:47:25 +00:00
Marco Risaliti 8c821fb62a Remove compilation warnings of an unused private method in EntityDataServices (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068134 13f79535-47bb-0310-9956-ffa450edef68
2011-02-07 21:06:18 +00:00
Marco Risaliti e66e04690e Remove compilation warnings of an unused private method in EntityConfigUtil (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068132 13f79535-47bb-0310-9956-ffa450edef68
2011-02-07 21:03:38 +00:00
Marco Risaliti c9099db25b Remove compilation warnings of an unused variable in GenericMapCollection (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068128 13f79535-47bb-0310-9956-ffa450edef68
2011-02-07 20:56:02 +00:00
Marco Risaliti d9a9fd2179 Remove unnecessary warning suppress into HardRefCacheLine (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068127 13f79535-47bb-0310-9956-ffa450edef68
2011-02-07 20:53:06 +00:00
Marco Risaliti e386c63015 Remove compilation warnings of an unused variable in ComparableRangeTests (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068125 13f79535-47bb-0310-9956-ffa450edef68
2011-02-07 20:50:33 +00:00
Marco Risaliti 4ea2300f38 Remove compilation warnings of an unused private method in JNDIConfigUtil (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068120 13f79535-47bb-0310-9956-ffa450edef68
2011-02-07 20:46:53 +00:00
Marco Risaliti 6919939ab4 Remove compilation warnings of an unused import in CatalinaContainer (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068118 13f79535-47bb-0310-9956-ffa450edef68
2011-02-07 20:42:27 +00:00
Erwan de Ferrieres e35aa879f8 Adding the fancybox jQuery plugin and using it for displaying the themes screenshots. Plugin is under the MIT license, the js code used is the one displayed for the example.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068107 13f79535-47bb-0310-9956-ffa450edef68
2011-02-07 20:33:09 +00:00
Jacques Le Roux bc37761114 Found that the default zoom level was at max zoom in, changed to 15 (0=World, 19=max zoom in)
Found also that the address example has a very small height map, but did not have enough time to fix it

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1067942 13f79535-47bb-0310-9956-ffa450edef68
2011-02-07 13:17:03 +00:00
Jacques Le Roux 47f64baf41 A patch from Youssef Khaye's idea "ajaxUpdateAreas not working" (https://issues.apache.org/jira/browse/OFBIZ-4164) - OFBIZ-4164
When using multiple on-event-update-area for a form submit, it yields in an ajaxSubmitFormUpdateAreas and that does not work currently.

Setting the jQueyr.ajax async option to false resolved the issue.





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1067429 13f79535-47bb-0310-9956-ffa450edef68
2011-02-05 12:13:15 +00:00
Marco Risaliti 591af0f270 Internationalization of return messages of java services of entityext/webtools component (OFBIZ-4091)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1066909 13f79535-47bb-0310-9956-ffa450edef68
2011-02-03 18:59:46 +00:00
Marco Risaliti ee20124370 Internationalization of return messages of java services of service component (OFBIZ-4091)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1066563 13f79535-47bb-0310-9956-ffa450edef68
2011-02-02 18:17:46 +00:00
David E. Jones 30c0a8cb24 Bug fix to support multiple delegators; these places has a hard-coded dispatcher name that may have been created with a delegator different from the one that is now active and attempted to be used with the same old dispatcher, resulting in undesired database switching; changed to the convention of using the delegator name for the dispatcher name, which is the normal default and should be used everywhere a special dispatcher name specific to a context, like a webapp, is not used
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1066356 13f79535-47bb-0310-9956-ffa450edef68
2011-02-02 07:31:21 +00:00
David E. Jones 6e7bbc9976 Added a use-transaction attribute to the screen definition, defaults to true (which is what the screen widget did before), and allows avoiding the overhead of a transaction in a screen by setting it to false
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1066355 13f79535-47bb-0310-9956-ffa450edef68
2011-02-02 07:28:57 +00:00
David E. Jones 3502196c12 To avoid unnecessary synchronization for the fairly large number of calls that result in returning false instead of beginning a transaction moved the setTransactionTimeout and begin calls into a separate synchronized method and removed synchronized from the begin method
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1066327 13f79535-47bb-0310-9956-ffa450edef68
2011-02-02 05:07:54 +00:00
Marco Risaliti 6ad7c480be Internationalization of return messages of java services of bi component (OFBIZ-4091)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1066159 13f79535-47bb-0310-9956-ffa450edef68
2011-02-01 19:28:09 +00:00
Marco Risaliti d7794c475a Internationalization of return messages of java services of common component (OFBIZ-4091)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1066157 13f79535-47bb-0310-9956-ffa450edef68
2011-02-01 19:27:13 +00:00
Jacques Le Roux 03fa444b2c A patch from Sascha "The lookup popup window does not close when finished" (https://issues.apache.org/jira/browse/OFBIZ-4137) - OFBIZ-4137
For instance, when you select a product in the product popup lookup on the add product page of the order magager order creation wizard, the popup stays open.

Really a small fix, there was a useless variable in the set value function which caused the problem.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1065994 13f79535-47bb-0310-9956-ffa450edef68
2011-02-01 11:15:10 +00:00
Marco Risaliti c305cb0bee Internationalization of return messages of CommonServices.java (OFBIZ-4091)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1065776 13f79535-47bb-0310-9956-ffa450edef68
2011-01-31 20:52:14 +00:00
Jacques Le Roux 7795052f60 Add "it's recommended to use HTML source" to Layout Page demo in Itialian, though should be double checked
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1065247 13f79535-47bb-0310-9956-ffa450edef68
2011-01-30 10:51:03 +00:00
Jacques Le Roux 6eba867860 Add "it's recommended to use HTML source" to Layout Page demo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1065246 13f79535-47bb-0310-9956-ffa450edef68
2011-01-30 10:48:50 +00:00
Jacques Le Roux c2ea70f355 A slightly modified patch from Pierre Smits "Enhancement to create new tenants easier" (https://issues.apache.org/jira/browse/OFBIZ-3971) - OFBIZ-3971
This patch enables users to create new tenants via the ANT process.
Users can enter:
    * Tenant ID
    * Tenant Name
    * Data to load on creation of the tenant db (e.g.seed, seed-ext, demo)
    * Database Platform (Derby, MySQL, Oracle, PostgreSQL) remark: You can NOT mix platforms)
    * IP address of the database (you can add a port if needed)
    * User-ID for the database
    * Password for the database

Based on the data provided the process will:
    * Create a new row in the Tenant table
    * Create a new row in the TenantDataSource table
    * Create new tables in the new tenant database and fill with initial data (seed, seed-ext, demo)
    * Create a new admin id for the tenant (based on Tenant ID followed by '-admin')
    * Set the initial password for the tenant admin id (initial 'ofbiz', must be changed on first login)

This patch has been tested against: Derby, MySQL, PostgreSQL. This has not been tested against other db platforms.

Prior to running the ANT task the user
    * has to modify 'general.properties' in framework/common/config to reflect multi tenancy (multitenant=Y)
    * has to have appropriate db driver(s) in place
    * has to create the databases first in function of the entityengine.xml datasource-names (not for Derby, applicable for MySQL and PostgreSQL.)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1065144 13f79535-47bb-0310-9956-ffa450edef68
2011-01-29 23:35:01 +00:00
Jacques Le Roux c650b9bed3 A patch from Leon "Infinite lookup ajax calls if key enter on the page with layer lookup forms" (https://issues.apache.org/jira/browse/OFBIZ-4156) - OFBIZ-4156
If the rendered page has one lookup field which is configured as layer mode, at first open the lookup dialog and click the empty space of the page to hide it, then, key the "enter", then in the console log you will find there's lookup request logged. Try to key "enter" serveral times, you will get more lookup requests in the backend. In particular case, even if you key one "enter" in, it will send hundrends lookup calls. See attached "infinite-lookups.log" for the log details.

Cause:
In modifySubmitButton of fieldlookup.js, it bind the keypress event to whole "document" to call "lookupFormAjaxRequest" when "enter" keyin. And in "lookupFormAjaxRequest" function, it call "modifySubmitButton" again after data load.

Resolution:
Move the keypress event bind operation to dialog open process and unbind it when dialog is closed.

Besides to fix what have mentioned, also make some trivial improvements to modifySubmitButton method:
1. in jquery, "contains" is not a valid method of String prototype, use "indexOf(blah) != -1" instead
2. bypass the "javascript:..." link in lookup result table. Although it's not a good solution, it makes more sence than "to skip the first Entry of the row".

JLR: I kept Leon's last point solution as anyway it's not a big deal to reassign for few rows (ie it's by page). This avoid issue if the 1st cell in the row is not the id/link
 I just ketp javascript:set_ in the indexOf( instead of simply javascript:


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1065056 13f79535-47bb-0310-9956-ffa450edef68
2011-01-29 16:11:48 +00:00
Jacques Le Roux 0c67bb4f20 Add a line for Layout Demo in Webtools Main page in Misc. Setup Tools section
French Webtools Layout Demo labels

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1065033 13f79535-47bb-0310-9956-ffa450edef68
2011-01-29 15:12:52 +00:00
Bruno Busco 692f251bee Added other button styles in the Layout demo.
Added Italian localization.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1065018 13f79535-47bb-0310-9956-ffa450edef68
2011-01-29 14:22:28 +00:00
Ashish Vijaywargiya ebacecaf52 Bug fix. Returning communicationEventId from the service implementation which was defined OUT in service definition. Thanks Divesh!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1064953 13f79535-47bb-0310-9956-ffa450edef68
2011-01-29 05:29:55 +00:00
Adrian Crum 2e1ad5b135 Fixed Freemarker-generated list navigation introduced in rev 930660. That code never worked. Also fixed some Webtools FindGeneric screen issues.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1064944 13f79535-47bb-0310-9956-ffa450edef68
2011-01-29 02:35:22 +00:00
Erwan de Ferrieres 4a8cf3cde3 When using on-event-update-area, parameters should not be duplicated in the map if already existing
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1064180 13f79535-47bb-0310-9956-ffa450edef68
2011-01-27 16:20:31 +00:00
Jacques Le Roux c26dbdd713 A line move asked by Leon about OFBIZ-4136 (In layer mode, the attribute "target-parameter" of a lookup field is not used)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1063630 13f79535-47bb-0310-9956-ffa450edef68
2011-01-26 08:42:53 +00:00
Jacques Le Roux df70b24122 A patch from Luís Alfredo Harriss Maranesi "Portuguese translation for Webtools" (https://issues.apache.org/jira/browse/OFBIZ-4148) - OFBIZ-4148
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1063365 13f79535-47bb-0310-9956-ffa450edef68
2011-01-25 17:20:05 +00:00
Jacques Le Roux f2d7b941f7 As discussed on dev ML, by default comment out Beanshell and Groovy containers for security reasons
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1063235 13f79535-47bb-0310-9956-ffa450edef68
2011-01-25 11:35:04 +00:00
Jacques Le Roux 357eda99e0 Revert file commited by error at r1063228
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1063234 13f79535-47bb-0310-9956-ffa450edef68
2011-01-25 11:33:23 +00:00
Erwan de Ferrieres 486c997b13 French typo in WebtoolsCompleteXMLDocument
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1063231 13f79535-47bb-0310-9956-ffa450edef68
2011-01-25 11:28:09 +00:00