Commit Graph
33 Commits
Author SHA1 Message Date
Jacques Le Roux e7905f2c8c Fix the anti-pattern
if (* != null && *.size() > 0) { 
where * is a variable name (String or Collection). Rewritten to
    if (UtilValidate.isNotEmpty(*)) {

Done with Eclipse regex replace feature with
search = if \((\w+) *!= *null *&& *(\w+)\.size\(\) *> *0\) *\{
replace = if (UtilValidate.isNotEmpty($1)) {

And of course some hand-work for imports and cleaning. I compiled and tested with ant run-tests

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686591 13f79535-47bb-0310-9956-ffa450edef68
2008-08-17 07:47:18 +00:00
Scott Gray c98e7dc59f Removed unnecessary "error" response elements from the controller files, if no event is defined then "success" will always be the response name.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686577 13f79535-47bb-0310-9956-ffa450edef68
2008-08-17 00:00:49 +00:00
Adam Heath e410552cc9 No longer *copy* the extra support files into the classes dir;
instead, just add them straight to the final jar.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685934 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 15:08:14 +00:00
Adrian Crum cd3a137731 Removed deprecated CSS style sepBar, removed unnecessary align="left" HTML element attributes.
I did a global search and replace for the align="left" aatribute - I didn't check each replacement because there were hundreds of them. This shouldn't break any layout. If you spot something wrong, post a message on the dev mailing list and I will fix it.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684548 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 16:28:14 +00:00
Adam Heath b6a1ae5e5e Another minor optimization; no longer need to specify classpathref in
all the build.xml files.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@681935 13f79535-47bb-0310-9956-ffa450edef68
2008-08-02 03:41:46 +00:00
Jacques Le Roux 641ff10050 Update Copyright to 2008
A real replace in files feature was one of the reasons I use Eclipse 3.4 for near a year now (I even helped to test, a real must have :o)
Not sure previous commit was sent partially or not at all (I needed to update)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@677685 13f79535-47bb-0310-9956-ffa450edef68
2008-07-17 18:56:25 +00:00
Adrian Crum 75191fa776 Removed deprecated CSS styles from back office applications.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@676212 13f79535-47bb-0310-9956-ffa450edef68
2008-07-12 18:41:44 +00:00
Adrian Crum af7a0409c1 Removed deprecated CSS styles from the maincss.css file. I skipped the eCommerce component because it doesn't use that style sheet, and I also skipped the content component because it is used in eCommerce.
This shouldn't affect any layout. If it does, just post a message on the dev ml (with link please) and I'll fix it.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@675831 13f79535-47bb-0310-9956-ffa450edef68
2008-07-11 04:02:30 +00:00
Adam Heath 18391f98a9 The build.xml files are now much smaller and simpler; they reuse a
few global definitions.  1585 lines removed.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@672657 13f79535-47bb-0310-9956-ffa450edef68
2008-06-29 18:39:36 +00:00
Scott Gray 5e401fcd53 Updated all simple methods to use the new attributes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@667748 13f79535-47bb-0310-9956-ffa450edef68
2008-06-14 06:03:12 +00:00
Jacopo Cappellato ca94905cd2 Removed some unused event handler declarations from controller files; converted some Beanshell events to Groovy.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662338 13f79535-47bb-0310-9956-ffa450edef68
2008-06-02 06:40:50 +00:00
Jacques Le Roux b87af55c8b Show bottom buttons for Asset Maint, HH Facility and CMS site. Finally I did not put eCommerce as it would need more work : a direct link to https//host:8443... does not work.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661288 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 10:39:28 +00:00
Scott Gray db43c9ca64 Removed calls to the deprecated findAll GenericDelegator methods from all bsh and ftl files plus some java ones in the shark component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655238 13f79535-47bb-0310-9956-ffa450edef68
2008-05-11 04:32:54 +00:00
Scott Gray 3b9cedb7c9 Fixed a bunch of bugs (mostly typos) that show up while generating the artifact information
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653201 13f79535-47bb-0310-9956-ffa450edef68
2008-05-04 11:34:32 +00:00
Jacques Le Roux bc90a6cfce A bunch of changes around "New attributes to ofbiz-component.xml" (https://issues.apache.org/jira/browse/OFBIZ-1714) - OFBIZ-1714
Better description of cryptic applications tabs (HR and SFA for now) using new tooltip/description attribute
CommonAccounting was useless : removed

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@647451 13f79535-47bb-0310-9956-ffa450edef68
2008-04-12 13:53:49 +00:00
Adrian Crum 68c1dbbaf9 Second sweep through the maincss.css style sheet. Changed the head1, head2, and head3 style names to h1, h2, and h3. Updated affected styles in ftl and xml files.
The ecommerce component is excluded from this commit.

These changes shouldn't break any layout. If you spot something wrong, let me know and I'll fix it.

I won't make any more maincss.css changes for a little while. I'll let the dust settle from these two commits, then I'll go through the file and physically remove the deprecated styles.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@627051 13f79535-47bb-0310-9956-ffa450edef68
2008-02-12 19:30:09 +00:00
Adrian Crum 085e65e5b8 Eliminated redundant code by switching components over to the common login and password change screens. I didn't change the hand held component - since it will probably need its own login screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@588474 13f79535-47bb-0310-9956-ffa450edef68
2007-10-26 02:29:49 +00:00
Jacques Le Roux d971f0ffec Complete my previous post (I had to change instance because of not related existing changes in controller.xml files)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@582731 13f79535-47bb-0310-9956-ffa450edef68
2007-10-08 07:08:34 +00:00
Adrian Crum 4503af892a Step two of OFBIZ-1230. Reduced redundant code by including common-requests.xml in each component's controller.xml file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@582517 13f79535-47bb-0310-9956-ffa450edef68
2007-10-06 17:25:42 +00:00
Jacques Le Roux ed72592fef A patch from Arno Peters "javadoc creation broken" (https://issues.apache.org/jira/browse/OFBIZ-1162)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@560546 13f79535-47bb-0310-9956-ffa450edef68
2007-07-28 13:42:58 +00:00
Jacopo Cappellato e8944af650 Sorry for the big commit.
Replaced all the field's titles in form widgets that were explicitly set to empty to ${uiLabelMap.CommonEmptyHeader}


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@550173 13f79535-47bb-0310-9956-ffa450edef68
2007-06-24 07:27:29 +00:00
Jacopo Cappellato 4e8e2dac8e Implemented 'Require Password Change' in ecommerce and manager apps: if the new field in the UserLogin entity is set to Y then, before the login, the user will be prompted for a new password.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@549406 13f79535-47bb-0310-9956-ffa450edef68
2007-06-21 06:20:53 +00:00
David E. Jones 07b48643c5 As noted needing to be done by Jacques Le Roux did a search/replace on source=1.4 and changed to 1.5
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@541997 13f79535-47bb-0310-9956-ffa450edef68
2007-05-27 15:55:18 +00:00
David E. Jones 7d70c41c12 Did a big search/replace to change all xsd file refs from www.ofbiz.org to ofbiz.apache.org
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539504 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 15:47:14 +00:00
Jacopo Cappellato a7c598bd9b Removed unused imports: thanks to Stefan Huehner (OFBIZ-513) for the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@514200 13f79535-47bb-0310-9956-ffa450edef68
2007-03-03 17:33:34 +00:00
Jacques Le Roux dad67935f7 A (large) patch from Scott Gray "Update ASL header" (https://issues.apache.org/jira/browse/OFBIZ-637).
I put also some svn:ignore for shark build and lib diretories and assetmaint/build 

I did some by hand lately, too much to remember. They were files with old header but without copyright. A 1st attempt I suppose, will have to check this after this commit.

I add some problems to commit this patch in one piece because it's so huge (specially with Eclipse I had to turn to Tortoise) !

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499486 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 17:15:54 +00:00
Jacques Le Roux a5632fa086 This is hte change of ASL2 headers in java files only.
Seems correct (35827 lines to review ;o).
I just wonder if we should keep the copyright comment in Classpath.java (about MortBay)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@496982 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 10:22:33 +00:00
Jacopo Cappellato ac258343ca Change to not show the "Hand Held Facility" application in the top application bar.
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@484940 13f79535-47bb-0310-9956-ffa450edef68
2006-12-09 07:25:11 +00:00
Jacopo Cappellato 5bc977e89b Applied patch from Anil K Patel (OFBIZ-531) to filter the list of facilities shown in the main hhfacility screen to the ones of type WAREHOUSE.
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@483909 13f79535-47bb-0310-9956-ffa450edef68
2006-12-08 10:26:06 +00:00
Jacopo Cappellato 2ed7d82ed3 Minor formatting fixes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@483261 13f79535-47bb-0310-9956-ffa450edef68
2006-12-06 22:13:58 +00:00
Jacopo Cappellato bbaaefbf74 Formatting fixes
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@483229 13f79535-47bb-0310-9956-ffa450edef68
2006-12-06 21:12:50 +00:00
Jacopo Cappellato 53c1eff60c First commit of the "hhfacility" component a special purpose application for warehouse operations done using hand held devices.
The application is still in a very initial stage, a lot of cleanups still need to be done, but it is a nice start.
It has been contributed by Daniel Goodwin and Ray Barlow; see OFBIZ-226 for details.
Daniel, Ray many thanks to both of you.



git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@482801 13f79535-47bb-0310-9956-ffa450edef68
2006-12-05 22:00:29 +00:00
Jacopo Cappellato efec6cd383 First commit of the "hhfacility" component a special purpose application for warehouse operations done using hand held devices.
The application is still in a very initial stage, a lot of cleanups still need to be done, but it is a nice start.
It has been contributed by Daniel Goodwin and Ray Barlow; see OFBIZ-226 for details.
Daniel, Ray many thanks to both of you.



git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@482800 13f79535-47bb-0310-9956-ffa450edef68
2006-12-05 21:57:06 +00:00