Commit Graph
8242 Commits
Author SHA1 Message Date
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
Jacques Le Roux 41f04cefbb 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@1063228 13f79535-47bb-0310-9956-ffa450edef68
2011-01-25 11:25:23 +00:00
Jacques Le Roux c054c7ed6e Formatting, no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1062866 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 16:38:32 +00:00
Jacques Le Roux f28b0343e1 A patch from Deyan "Allow attributes enable-lock, no-auto-stamp, auto-clear-cache, never-cache and sequence-bank-size in <extend-entity> tag in entitydef.xml fields " (https://issues.apache.org/jira/browse/OFBIZ-3882) - OFBIZ-3882
Allow attributes
enable-lock
no-auto-stamp
auto-clear-cache
never-cache
sequence-bank-size

in <extend-entity> tag in entitydef.xml fiels

Example: <extend-entity entity-name="Person" enable-lock="true" sequence-bank-size="1" />

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1062863 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 16:33:16 +00:00
Jacques Le Roux 7f9e57427d Better French label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1062729 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 11:05:08 +00:00
Jacques Le Roux 746ba1e9b1 A patch from Leon "In layer mode, the attribute "target-parameter" of a lookup field is not used" (https://issues.apache.org/jira/browse/OFBIZ-4136) - OFBIZ-4136
As xsd describes, "target-parameter" of a lookup field can be used to transfer extra parameters to lookup something. But if we choose "layer" mode (the default mode of lookup), this attribute does nothing. It works before jQuery introduced. I guess this feature is forgot by mistake during migration.

JLR: Nice catch! Actually IIRW it's because this has been introduced in trunk after we migrated this part in the jQuery branch and it passed "hidden" when I merged the trunk in branch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1062709 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 09:55:17 +00:00
Jacques Le Roux d42aaef2b8 A patch from René Scheibe "Groovy shell." (https://issues.apache.org/jira/browse/OFBIZ-3954) - OFBIZ-3954
A Groovysh container to connect to. Just do a 'telnet localhost 9991' and you have a fully fledged groovysh.
This is a Groovy equivalent to the already existing BeanShell container.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1062476 13f79535-47bb-0310-9956-ffa450edef68
2011-01-23 17:58:43 +00:00
Jacques Le Roux 1dab0c10f2 Update copyright from 2010 to 2011, BTW this closes "update files from 2009 to 2010" (https://issues.apache.org/jira/browse/OFBIZ-3783) - OFBIZ-3783
I have changed ModelInfo.getCopyright() in order to automatize (I believe the copyright is always valid so we don't care about the date really used, if you disagree please let me know, I have a doubt about this...)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1061886 13f79535-47bb-0310-9956-ffa450edef68
2011-01-21 16:33:22 +00:00
Jacques Le Roux 5457a40512 Merge CommonInventory and FacilityInventory labels and use only CommonInventory
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1061848 13f79535-47bb-0310-9956-ffa450edef68
2011-01-21 15:29:40 +00:00
Jacques Le Roux c32e55a7be A patch from Abdullah Shaikh "Added drop down options replacing text box to configure sagepay." (https://issues.apache.org/jira/browse/OFBIZ-3260) - OFBIZ-3260
To configure SagePay payment gateway transaction types settings.

JLR: this patch contains a bit of labels redundancy, but I prefer to keep them as is. At least it's verbs in Common and can be reused... (why have a Payment label in each app...)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1061728 13f79535-47bb-0310-9956-ffa450edef68
2011-01-21 10:50:43 +00:00
Jacques Le Roux 51a2ceb54f A patch from Chatree Srichart "Fix using TagLib in Freemarker." (https://issues.apache.org/jira/browse/OFBIZ-2703) - OFBIZ-2703
Fix using TagLib in freemarker follow this.
1. In ControlServlet.java, create ServletContextHashModel instance and set to request's attritube
2. In ScreenRenderer.java, set ServletContextHashModel instance from request's attribute to context name Application and set HttpRequestHashModel instance from requestAttributes in context to context name Request

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1061310 13f79535-47bb-0310-9956-ffa450edef68
2011-01-20 14:23:29 +00:00
Jacques Le Roux 2238844c6b A patch from Chatree Srichart "BIRT set output file name." (https://issues.apache.org/jira/browse/OFBIZ-4129) - OFBIZ-4129
I got a request to export a BIRT report as PDF file with custom file name. I attach a patch file for this feature.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1061295 13f79535-47bb-0310-9956-ffa450edef68
2011-01-20 13:35:00 +00:00
Erwan de Ferrieres ec5adee63b Displaying help was in error in the big topics, buffer.flip() was misplaced
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1061189 13f79535-47bb-0310-9956-ffa450edef68
2011-01-20 10:10:52 +00:00
Erwan de Ferrieres 1dedf4711c Upgrading to tomcat 6.0.30 - Changelog is here: http://tomcat.apache.org/tomcat-6.0-doc/changelog.html
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1061169 13f79535-47bb-0310-9956-ffa450edef68
2011-01-20 09:14:24 +00:00
Adrian Crum 74cb3f0103 Made the Find Screen "Search Results" text match the "Search Options" text. Also includes a layout demo and the CSS changes needed for the Flat Grey visual theme.
This is kind of kludgy. We need a screenlet-title style.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1061056 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 23:09:37 +00:00
Adrian Crum c9c512948a One more fixup for the Layout Demo page move.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1060923 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 19:33:55 +00:00
Adrian Crum f4e001a3fe Fix screenlet title in Layout Demo screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1060703 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 07:56:27 +00:00
Adrian Crum 60b30b5af1 Move "Search Options" text to screenlet title bar in the FindDecorator screen. It's now visible when the screenlet is collapsed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1060701 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 07:39:16 +00:00
Adrian Crum 10f0b07fe5 Fixed bug in collapsible screenlet - expand/collapse link wasn't working with JavaScript turned off.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1060699 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 07:23:33 +00:00
Jacques Le Roux 59a6ad1b7d Revert r1060229 for now (see https://issues.apache.org/jira/browse/OFBIZ-4119)
Thanks Adrian for the reminder


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1060417 13f79535-47bb-0310-9956-ffa450edef68
2011-01-18 15:32:17 +00:00
Jacques Le Roux 09029298c4 A patch from Ankit Jain "The id attribute is not set in the <a> tag." (https://issues.apache.org/jira/browse/OFBIZ-4119) - OFBIZ-4119
By adding id attribute in the <a> tag then its helpful for developers to perform action on it using js or css. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1060229 13f79535-47bb-0310-9956-ffa450edef68
2011-01-18 08:00:37 +00:00
Adrian Crum 4c01ad9512 Moved new layout demo page to Webtools component. After thinking about it, Webtools seemed to be a more logical place to put it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1060219 13f79535-47bb-0310-9956-ffa450edef68
2011-01-18 07:25:06 +00:00
Adrian Crum 134846ee66 Added "required" style to layout demo.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059935 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 14:42:45 +00:00
Jacques Le Roux fa9697b615 Themes French labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059844 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 10:22:37 +00:00
Marco Risaliti 80c7d141b8 Remove most of the java compilation warning (generics markup, unused code/import) (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059659 13f79535-47bb-0310-9956-ffa450edef68
2011-01-16 20:51:22 +00:00
Adrian Crum 8dac73e8db Updated Flat Grey visual theme. Design contributed by Ryan Foster - https://issues.apache.org/jira/browse/OFBIZ-4092 with bug fixes and minor design changes by me.
I reorganized the main style sheet and pushed the deprecated styles down to the bottom. I also moved the jQuery styles to a separate file.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059564 13f79535-47bb-0310-9956-ffa450edef68
2011-01-16 14:12:46 +00:00
Bilgin Ismet Ibryam 9904b2b1a9 Allow calling simple method in form actions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059529 13f79535-47bb-0310-9956-ffa450edef68
2011-01-16 10:47:31 +00:00
Adrian Crum b22caf0d18 Small fixup for previous commit - "test page" sounds less technical than "test jig."
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059437 13f79535-47bb-0310-9956-ffa450edef68
2011-01-16 02:51:20 +00:00
Adrian Crum fd2b63c3d8 Fixed a bug in HtmlMenuRenderer.java - menu item widget-style attribute was being ignored.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059433 13f79535-47bb-0310-9956-ffa450edef68
2011-01-16 02:18:43 +00:00
Adrian Crum 805555b0f1 New feature - Page Layout Best Practices demonstration and visual theme test jig.
Based on a recent dev mailing list discussion, I added a page to the Example component that demonstrates some basic layout concepts. The idea is to display the page, then look at the screen widget definition and the HTML markup to see how the page is constructed.

The page can also be used for visual theme development - because most of the common UI elements are all on one page.

This could be improved - it needs a multi-column layout example, a tree widget example, and a form widget field group example.

Internationalization note: This commit contains new UI labels.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059429 13f79535-47bb-0310-9956-ffa450edef68
2011-01-16 01:14:21 +00:00
Adrian Crum 78682e55ee Parameterize form widget odd-row-style, header-row-style, and default-table-style attributes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059425 13f79535-47bb-0310-9956-ffa450edef68
2011-01-16 00:10:25 +00:00