Commit Graph
674 Commits
Author SHA1 Message Date
Adrian Crum cfc9f619c3 New feature - performance metrics. Webtools UI.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1361724 13f79535-47bb-0310-9956-ffa450edef68
2012-07-15 16:09:26 +00:00
Adrian Crum 7cfc77c5fd Removed webtools servlet context parameters that were pointing to non-existent files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1361476 13f79535-47bb-0310-9956-ffa450edef68
2012-07-14 06:55:14 +00:00
Jacques Le Roux 870bf35ef6 Rhaaa, I had a svn changelist for OFBIZ-3913 pending and did not notice those changes for
r1356471 Housekeeping of jar files"  https://issues.apache.org/jira/browse/OFBIZ-4833
Moves Minerva and XAPool to Attic

Keeping changelists with no changes in it is a bad things, I should not forget that :/

Fortunately not biggie at all

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1360902 13f79535-47bb-0310-9956-ffa450edef68
2012-07-12 20:04:41 +00:00
Jacques Le Roux feecb15093 "Housekeeping of jar files" https://issues.apache.org/jira/browse/OFBIZ-4833
Moves Minerva and XAPool to Attic

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356471 13f79535-47bb-0310-9956-ffa450edef68
2012-07-02 20:29:54 +00:00
Jacopo Cappellato 6ba24ed4bc As discussed in the dev list a few months ago, this commits removes Seleniumxml from the trunk.
Seleniumxml was a subcomponent of the framework/testtools intended to facilitate the usage of Selenium tests in OFBiz.
However it was never upgraded to the new version of Selenium and it has not been widely adopted by the community; the OFBiz community agreed to remove components/tools like this from the core distribution if they are optional/very specific or not well maintained or if there is (as in the case of Selenium) a valid external alternative to perform the same actions.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1354380 13f79535-47bb-0310-9956-ffa450edef68
2012-06-27 09:19:20 +00:00
Jacopo Cappellato fc099856c1 Small enhancements to the job search form (drop down maintains last selected value for all fields) and to the schedule job form (max retry is set to 0 by default to avoid to run forever on error by default).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1353898 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 09:46:58 +00:00
Jacopo Cappellato 3756ed0294 Cleaned up some code that was adding the delegator/dispatcher/security/auth objects in the user session rather than the request;
1) removed the request-maps for changeDelegator from components' controller.xml files: they were not used
2) removed CoreEvents.changeDelegator(...): not used (apart from the request-maps removed at #1)
3) removed CoreEvents.changeDispatcher(...): not used
4) cleaned up some code (related to multitenant development): now the objects are set in the request rather than the session

PS: as a consequence this will also fix the issue reported in OFBIZ-4289


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1353681 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 17:46:07 +00:00
Jacopo Cappellato 6684c46b74 Improved memory usage information in the webtools->cache screen: the approx size in bytes is now shown for each cache in the list and the total memeory used by caches is also reported at the top of the screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1352578 13f79535-47bb-0310-9956-ffa450edef68
2012-06-21 15:46:49 +00:00
Hans Bakker bd16dfb598 split up securitypermissions as seed data and securitygroups as demo data with a single exception: the creation of a super security group which has general access to the system and which is used with the 'ant create-admin-user-login' command.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1352431 13f79535-47bb-0310-9956-ffa450edef68
2012-06-21 07:21:49 +00:00
Jacopo Cappellato 99d58d0330 Implemented screen that shows details about JobSandbox records, including their input data (RuntimeData.runtimeInfo deserialized) if available.
)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1352171 13f79535-47bb-0310-9956-ffa450edef68
2012-06-20 15:53:39 +00:00
Hans Bakker 14f4e5a292 reverted recent security file changes revisions: 1350847,1350843,1350840,1348534,1347908,1347213,1346264, need more investigation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1351206 13f79535-47bb-0310-9956-ffa450edef68
2012-06-18 04:36:20 +00:00
Hans Bakker fff7f99081 introduced a new data-reader : 'security'
Security is now by default not loaded because not part of seed anymore this will make all component hidden and not accessible .
It is still loaded as part of the reader 'demo'

to load the security files:
./ant load-readers -Ddata-readers=security

Now it is possible to load only a selection of the security files in your hot-deploy component as follows:

<entity-resource type=data reader-name=seed loader=main location=../../framework/security/data/SecurityData.xml/>
<entity-resource type=data reader-name=seed loader=main location=../../framework/webtools/data/WebtoolsSecurityData.xml/>
<entity-resource type=data reader-name=seed loader=main location=../../applications/party/data/PartySecurityData.xml/>

This will enable only standard groups, the party and the webtools application.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1346255 13f79535-47bb-0310-9956-ffa450edef68
2012-06-05 06:37:06 +00:00
Jacques Le Roux 8ac851b7bc Forgot to commit some files at r1345379 (A patch from Tri Duc Vo for "Next Vietnamese Ofbiz translation https://issues.apache.org/jira/browse/OFBIZ-4759)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345533 13f79535-47bb-0310-9956-ffa450edef68
2012-06-02 17:15:37 +00:00
Jacques Le Roux 2dcc132c41 A patch from Ankit Jain "Replaces != nullpattern in ftl file by ?? (which replaces deprecated ?if_exist)" https://issues.apache.org/jira/browse/OFBIZ-4916
jleroux: I simply removed some useless ?? when ?has_content was enough. I also found 3 other cases in returnPolicy.ftl that I fixed the same way than Ankit (using ??)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1345532 13f79535-47bb-0310-9956-ffa450edef68
2012-06-02 17:10:52 +00:00
Jacopo Cappellato 9fe920a3f7 Improved code that manages the cache:
* removed unnecessary synchronization
* protected the UtilCache object (static field) by making it private and final
* replaced non atomic containsKey+put+get with get + putIfAbsentAndGet
* replaced containsKey + null check + get with get + null check



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343692 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 12:10:54 +00:00
Adam Heath 83d37a796b DEPRECATION: framework: GenericValue.getRelated/getRelatedCache variants replaced with a single getRelated variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343509 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:17:17 +00:00
Jacques Le Roux b48ff3a62c Closes "Move SHARK to Attic" https://issues.apache.org/jira/browse/OFBIZ-4795
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343064 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 15:47:32 +00:00
Jacques Le Roux 720578ecf3 Replaces all remaining title="${uiLabelMap.CommonEmptyHeader}" by title=" ", and specific case in ListPartyCommEvents
This closes the CommonEmptyHeader chapter

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343016 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 08:41:47 +00:00
Jacopo Cappellato c42b1ffb2e Removed the definition of the FreeMarkerViewHandler handler from common-controller and added to the only controller that still uses it (the one of the "webtools" component, and only for one test page).
The main motivation for this is that FreeMarkerViewHandler creates (via OfbizCacheStorage) an unused static instance of UtilCache per object (i.e. for each webapp at init time), wasting system resources and cluttering the list of cache objects in Webtools.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1342308 13f79535-47bb-0310-9956-ffa450edef68
2012-05-24 16:03:29 +00:00
Jacopo Cappellato 748dd94841 Removed unused imports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340637 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 08:21:18 +00:00
Jacopo Cappellato 79ae52492a Refactored code to use the default BeansWrapper defined by FreemarkerWorker; this is important according to comment from one of the Freemarker committers:
"As of creating new BeansWrapper, be sure you create it only once during the application life-cycle and then reuse the same instance, or else it will have to rebuild the class introspection cache again and again."

Thanks to Adam Heath for the comment.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340631 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 07:49:45 +00:00
Jacques Le Roux 8b08aab3ef A patch from Leon for "webtools doesn't treat "Date" field properly" https://issues.apache.org/jira/browse/OFBIZ-4847
If an entity field type is "Date" (YYYY-MM-DD), in edit or create form of webtools, the component of this field is redered as "timestamp".

Update the ViewGeneric.ftl to change the related "shortDateInput" from false to true resolves this problem. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340405 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 10:17:23 +00:00
Jacques Le Roux 87d84ea506 Adrian suggested to removes all class="tabletext": <<That style was removed from the stylesheet in 2007. All references to it should be removed.>>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340386 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 09:35:12 +00:00
Jacques Le Roux 9ee7384202 Adrian suggested to removes all widget-style="tabletext": <<That style was removed from the stylesheet in 2007. All references to it should be removed.>>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340385 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 09:32:48 +00:00
Jacques Le Roux 028b8497d8 Replaces title="${uiLabelMap.CommonEmptyHeader}" by title=" " where it's known to not be a problem. Here with links styled by widget-style="smallSubmit"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340374 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 08:48:24 +00:00
Jacques Le Roux 3369dca046 Replaces title="${uiLabelMap.CommonEmptyHeader}" by title=" " where it's known to not be a problem. Here with links styled by widget-style="buttontext"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340373 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 08:45:18 +00:00
Jacques Le Roux 702698c247 Defintively closes "The Label Manager is wrongly overriding CommonEmptyHeader" https://issues.apache.org/jira/browse/OFBIZ-4652
CommonEmptyHeader is now useless, so this is no longer a concern

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340372 13f79535-47bb-0310-9956-ffa450edef68
2012-05-19 08:42:13 +00:00
Jacques Le Roux 2da70363b5 Revert all the changes related to CommonEmptyHeader, apart base-catalog.xml and labels in CommonUiLabels.xml.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1339081 13f79535-47bb-0310-9956-ffa450edef68
2012-05-16 09:27:31 +00:00
Jacques Le Roux 1c972bf684 Fixes https://issues.apache.org/jira/browse/OFBIZ-4652 "The Label Manager is wrongly overriding CommonEmptyHeader"
* Adds a keepSpace boolean to UtilXml.writeXmlDocument(), this allows to use xsl:preserve-space into UtilXml.createOutputTransformer()
* Uses it into SaveLabelsToXmlFile.saveLabelsToXmlFile()
* Adds some French labels into CommonUiLabels.xml using Labels Manager to test the new functionality 
* Adds the xml:space attribute into the valueType complexType
* Adds the ofbiz-properties.xsd schema into the base-catalog.xml

I got an issue when 1st trying to commit: 
Commit failed (details follow):
While preparing
 'D:\workspace\ofbizClean\framework\common\config\CommonUiLabels.xml' for commit
Inconsistent line ending style

So I forced the EOLs to my locale platform value (Win XP)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1338831 13f79535-47bb-0310-9956-ffa450edef68
2012-05-15 19:03:26 +00:00
Adam Heath 9e5f405a4d DEPRECATION: framework: findByAnd variants replaced with findByAnd that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1338403 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 20:59:54 +00:00
Jacopo Cappellato cef1cccf82 OFBIZ-4864
* enabled by default the DebugManagedDataSource wrapper around ManagedDataSource
* enhanced the DebugManagedDataSource wrapper to:
** print log messages only at verbose level (instead of always as it was before)
** if possible print additional information about the connection status
** added new method that returns information about the connection pool settings/status
* added new static method to DBCPConnectionFactory to return information about the pools
* new screen in the webtools where information about each pool/helper is shown
The information provided by the screen can be very useful to analyze the status of the connection pools.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1338230 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 14:45:43 +00:00
Adam Heath 64a9662c25 DEPRECATION: framework: findByPrimaryKey variants replaced with findOne
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337662 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:17:55 +00:00
Ashish Vijaywargiya e0971b304c Applied similar fix as we did on trunk r1300463.
On production systems you can't suppress Debug.log( message by the use of debug.properties file. It is always good to use Debug.* statements that are having log level setup in debug.properties file. The real problem comes with Debug.log( statement when you are printing any list or map object that contains so many records(or data) in it. Here I am changing all the occurrence of Debug.log( with Debug.logInfo(, Debug.logError( or Debug.logWarning( so that we can have better control of Debug.* statements on production system. :-)

Bad use of Debug statement. On production system you will get false alarm that you are having error in code base although the resultant statement is only giving additional information instead of error message.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1335927 13f79535-47bb-0310-9956-ffa450edef68
2012-05-09 05:28:17 +00:00
Adrian Crum 8c35d76140 More work on the Mini-language <simple-method> element: Simplified script caching. This prepares the way to have simple methods cached individually, instead of caching the entire file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334427 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 15:05:40 +00:00
Hans Bakker ab0d140abd fixed error at
https://localhost:8443/webtools/control/FindGeneric?entityName=OrderHeaderAndRoleSummary  and press find, thanks Nop

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1331216 13f79535-47bb-0310-9956-ffa450edef68
2012-04-27 04:33:21 +00:00
Christian Geisert 70939b1439 added/corrected a few German Labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1326399 13f79535-47bb-0310-9956-ffa450edef68
2012-04-15 19:00:07 +00:00
Jacques Le Roux c3443466d3 Minor Webtools improvements. I was actually trying to see why client-autocomplete-field was not working on SERVICE_NAME runService form field
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1325701 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 10:04:50 +00:00
Ashish Vijaywargiya 692d148175 Adding support of securityGroupId on portal admin screen. securityGroupId field support is available in PortalPage entity. Thanks Ankush.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309519 13f79535-47bb-0310-9956-ffa450edef68
2012-04-04 18:27:32 +00:00
Jacques Le Roux 4df267b015 Remove Copyright mention when useless and change to 2012 when needed or automatize if possible
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309009 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 16:06:29 +00:00
Jacopo Cappellato 058f404d74 OFBIZ-4771
Renamed some ant tasks for consistency, improved descriptions, removed 2 redundant tasks

Summary of changes:

improved descriptions (unified style)
renamed: run --> start
renamed: run-batch --> start-batch
renamed: run-debug --> start-debug
renamed: run-pos --> start-pos
renamed: run-install --> load-demo
renamed: run-install-multitenant --> load-demo-multitenant
renamed: run-install-* targets -> load* (for example: run-install-seed --> load-seed etc...)
enhanced load-file (was run-install-file) to accept an optional 'delegator' argument and removed run-install-file-in-delegator and run-tenant-install-file
renamed: run-create-tenant --> create-tenant
renamed: run-single-test --> run-test
renamed: run-single-test-suite --> run-test-suite
the main old tasks (mentioned in documentation etc.) have been kept and now inform the user of the new syntax
updated README and main screen of Webtools with the new task name



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308370 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 14:53:11 +00:00
Jacques Le Roux 7d943cb341 A patch from Anne Jessel "Support validation of resource xml files" https://issues.apache.org/jira/browse/OFBIZ-4723
The xsd for the resource xml files is invalid. In addition, the format of the value of the xml:lang attribute in resource xml files is invalid, according to the xml standard.

The attached patch:

    provides a valid xsd
    updates UtilProperties and the Label Manager to deal with the correct formatting of the xml:lang value, while still working with the old format, following Adrian Crum's recommendation on the mailing list
    includes simple unit tests for UtilProperties to ensure it does work with both formats
    changes the Label Manager to include a reference to the new xsd, and to use the correct format of the xml:lang value, when writing a resource xml file.

Some minor code cleanups to these files.

jleroux: the base test suite was successfully run locally once UtilIOTests have been commented out (still an issue with it on Windows)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305004 13f79535-47bb-0310-9956-ffa450edef68
2012-03-25 11:07:57 +00:00
Jacques Le Roux 0c07b6df6f Revert r1304193 for now
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1304737 13f79535-47bb-0310-9956-ffa450edef68
2012-03-24 09:35:09 +00:00
Jacques Le Roux 1c5a0459c3 A patch from Anne Jessel "Support validation of resource xml files" https://issues.apache.org/jira/browse/OFBIZ-4723
The xsd for the resource xml files is invalid. In addition, the format of the value of the xml:lang attribute in resource xml files is invalid, according to the xml standard.

The attached patch:

    provides a valid xsd
    updates UtilProperties and the Label Manager to deal with the correct formatting of the xml:lang value, while still working with the old format, following Adrian Crum's recommendation on the mailing list
    includes simple unit tests for UtilProperties to ensure it does work with both formats
    changes the Label Manager to include a reference to the new xsd, and to use the correct format of the xml:lang value, when writing a resource xml file.

Some minor code cleanups to these files.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1304193 13f79535-47bb-0310-9956-ffa450edef68
2012-03-23 05:47:10 +00:00
Hans Bakker 7952083abd In 'data export all' be able to select a fromdate , tabs to spaces in a birt file from last commit. Contribution from Chattree
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1294048 13f79535-47bb-0310-9956-ffa450edef68
2012-02-27 07:33:05 +00:00
Adrian Crum 827290f103 Refactored ModelDataFileReader.java - fixed thread-safety issues, simplified some unnecessarily complicated code, un-hide exceptions so the UI can display them.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1291007 13f79535-47bb-0310-9956-ffa450edef68
2012-02-19 14:39:10 +00:00
Jacopo Cappellato 172d49de9b Improved ui flow for "run service" requests: when an error occurs it returns to the "run service" screen instead of the "submit job" screen (OFBIZ-3571)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1214680 13f79535-47bb-0310-9956-ffa450edef68
2011-12-15 10:00:12 +00:00
Jacques Le Roux a410f8fd1d Fix a bug here, there was a circular reference to EditGeo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1182308 13f79535-47bb-0310-9956-ffa450edef68
2011-10-12 10:55:52 +00:00
Jacques Le Roux 3008a8d500 Better French labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1182257 13f79535-47bb-0310-9956-ffa450edef68
2011-10-12 08:27:59 +00:00
Jacques Le Roux aa575abceb Closes https://issues.apache.org/jira/browse/OFBIZ-3403 "webtools xml data export to browser not working"
I finally think it's enough for this feature (I used html in label, but who cares)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1171983 13f79535-47bb-0310-9956-ffa450edef68
2011-09-17 14:03:49 +00:00
Jacques Le Roux 4bd75e57d8 Change artifact info label: adds a warning about duration before availability
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169479 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 17:06:29 +00:00