Commit Graph
117 Commits
Author SHA1 Message Date
Adrian Crum 58e205ef4a Small fixup for previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768640 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 03:57:55 +00:00
Adrian Crum 2d44a4cec2 Cleaned up SaveLabelsToXmlFile.java code, converted to use new UtilXml methods.
This is an example of how to eliminate the use of the deprecated OutputFormat class.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768634 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 03:21:40 +00:00
Adrian Crum 678db887db Eliminated unnecessary method by using Apache Commons.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768459 13f79535-47bb-0310-9956-ffa450edef68
2009-04-25 03:41:31 +00:00
Adrian Crum 14b462dc50 Fixed a bug in Label Manager where empty values were not saved properly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768123 13f79535-47bb-0310-9956-ffa450edef68
2009-04-24 02:02:40 +00:00
Jacques Le Roux 810944f2f5 Fix an issue with CommonEmptyHeader
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766516 13f79535-47bb-0310-9956-ffa450edef68
2009-04-19 21:01:01 +00:00
Adam Heath 37458aa4c6 Fix lines that *only* have whitespace.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@759244 13f79535-47bb-0310-9956-ffa450edef68
2009-03-27 16:59:04 +00:00
David E. Jones 61e3ed5007 Small formatting cleanups
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757315 13f79535-47bb-0310-9956-ffa450edef68
2009-03-23 04:37:15 +00:00
Adam Heath b8c6f6efad Fix purely empty whitespace lines, and remove trailing whitespace.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757081 13f79535-47bb-0310-9956-ffa450edef68
2009-03-21 23:25:25 +00:00
Jacques Le Roux 24c74d318e I forgot to check svn properties, updated
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@754754 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 21:18:57 +00:00
Jacques Le Roux cb89b01690 LabelsReferences6.patch from Marco : "New tool to get labels information." (https://issues.apache.org/jira/browse/OFBIZ-2070) - OFBIZ-2070
+ 2 French translations (test), the Labels Manager is now really cool to use, thanks Marco!



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@754649 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 10:36:41 +00:00
Jacques Le Roux df82381e83 get rid of deprecated warnings
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@751416 13f79535-47bb-0310-9956-ffa450edef68
2009-03-08 13:21:00 +00:00
Jacques Le Roux f796e230d2 catch( => catch(
}else => } else

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@751005 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:55:43 +00:00
Jacques Le Roux ec8e04ad01 try{ => try {
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@751002 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:49:18 +00:00
Jacques Le Roux 13a934f823 In spirit of Adam's r749341 and following http://java.sun.com/docs/codeconv/html/CodeConventions.doc7.html#489
The idea is also that a lot of code is duplicated and then changed (copy/paste). Hence having a rightly formatted code help to keep it rightly formatted
1st (simple) step : ){ => ) { (I checked all occurrences but of course other pairs of eyeballs are welcome)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750993 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:31:13 +00:00
Jacques Le Roux 0f121e0183 Add some informations for duplicated labels in Labels Manager
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750632 13f79535-47bb-0310-9956-ffa450edef68
2009-03-05 22:17:09 +00:00
Jacques Le Roux ccadfbacbb LabelReferences4.patch from Marco "New tool to get labels information" https://issues.apache.org/jira/browse/OFBIZ-2070 OFBIZ-2070
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@748732 13f79535-47bb-0310-9956-ffa450edef68
2009-02-27 23:01:41 +00:00
Jacques Le Roux 9494db14ae Fix some bugs and misc. (not sure about functionalities, at least now it does not hang)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@745890 13f79535-47bb-0310-9956-ffa450edef68
2009-02-19 14:59:58 +00:00
Jacques Le Roux d5dc2d53ab Marco's LabelReferences2.patch from "New tool to get labels information" https://issues.apache.org/jira/browse/OFBIZ-2070 - OFBIZ-2070
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@744635 13f79535-47bb-0310-9956-ffa450edef68
2009-02-15 08:42:06 +00:00
David E. Jones 5dd06ae942 Fixed NPE when a request doesn't have an event that was causing the ArtifactInfo stuff to not successfully load
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@742996 13f79535-47bb-0310-9956-ffa450edef68
2009-02-10 15:32:41 +00:00
David E. Jones afe3dc9c81 A few related changes:
Big refactor of ControlServlet, RequestManager, RequestHandler, and ConfigXMLReader so that simple objects are used instead of Maps within Maps within Maps for the data from the controller.xml file, which results in eliminating hundreds of lines of code including the entire RequestHandler class. I have tested this a lot with different apps that use the ControlServlet differently, but this is a very big change so there could still be issues. Based on this cleanup future issues and new features should be easier and less error prone, and that is why doing it now in order to help with a number of other improvements and bug fixes that are part of this commit.

Also added redirect-parameter element to go under the request-map -> response element which allows you to specify which parameters will be passed on in a redirect instead of using all of them. Also improved default there and in various places to only include parameters from the URL to avoid issues with form data, but if the ID to display (like following a crAlso added redirect-parameter element to go under the request-map -> response element which allows you to specify which parameters will be passed on in a redirect instead of using all of them. Also improved default there and in various places to only include parameters from the URL to avoid issues with form data, but if the ID to display (like following a crAlso added redirect-parameter element to go under the request-map -> response element which allows you to specify which parameters will be passed on in a redirect instead of using all of them. Also improved default there and in various places to only include parameters from the URL to avoid issues wd in and also going to the same page after login from auth=true or from clicking on the login link.

Related to cleaning up login URLs also changed how the request and parameters passed to a request before a login are saved and used after a login is successful so that it URL parameters go on the URL in a redirect to the original request to make it more transparent, and non-URL parameters just stay in the session and are used when the original request is run again to avoid putting sensitive information like passwords and big information like textarea data in the URL, which has been a problem before.

To see what some of these things combined can do try going to the example app, login, click on the New Example link, then logout in another tab or window, then go back to the New Example page and enter a name and a whole bunch of text in the long description then click Create, the system will show you the login page so enter username/password, and then after login you'll see a nice URL to EditExample with the correct exampleId parameter and all of the data entered before login successfully saved and never appearing in a URL.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741374 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 02:14:19 +00:00
Jacques Le Roux 5abb9596cb LabelsInfo14.patch from Marco "New tool to get labels information" (https://issues.apache.org/jira/browse/OFBIZ-2070) - OFBIZ-2070
+ some correct changes done with this update of Labels Manager (I updated some wrong ones by hand to keep going forward...)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@739955 13f79535-47bb-0310-9956-ffa450edef68
2009-02-02 10:17:34 +00:00
Alfred Maxwell Byers 1bd543704e Added FlexibleLocation to "entityImport" service so that "component" protocol could be used.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@738962 13f79535-47bb-0310-9956-ffa450edef68
2009-01-29 19:00:23 +00:00
Jacques Le Roux 93d458ba1f LabelsInfo13.patch by Marco from "New tool to get labels information" (https://issues.apache.org/jira/browse/OFBIZ-2070) - OFBIZ-2070
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@737491 13f79535-47bb-0310-9956-ffa450edef68
2009-01-25 08:41:44 +00:00
Jacques Le Roux 0d9b46d1b9 Modified LabelsInfo11.patch from Marco Risaliti "New tool to get labels information" (https://issues.apache.org/jira/browse/OFBIZ-2070) - OFBIZ-2070
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@737382 13f79535-47bb-0310-9956-ffa450edef68
2009-01-24 15:35:14 +00:00
Jacques Le Roux 572b7683e0 All tabs to 4 spaces in *.groovy, *.java, *.xml : less problems in future with that aspect...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@737003 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 11:08:47 +00:00
Adrian Crum f05a636f83 Webtools entity reference now indicates what fields are encrypted.
Internationalization note: this commit contains a new UI label.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@732878 13f79535-47bb-0310-9956-ffa450edef68
2009-01-09 00:08:49 +00:00
Jacques Le Roux 8bfaac2648 A modified patch from Marco Risaliti "New tool to get labels information" (https://issues.apache.org/jira/browse/OFBIZ-2070) - OFBIZ-2070
I have already commited merged changes in labels files. I commented out for now the lines in SaveLabelsToXmlFile.java which write the XML changes.
We have, at least, known 2 issued related to SaveLabelsToXmlFile :
. adding the ASL header
. taking care of labels sorting in a case described here https://issues.apache.org/jira/browse/OFBIZ-2070?focusedCommentId=12660632#action_12660632

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@731370 13f79535-47bb-0310-9956-ffa450edef68
2009-01-04 21:44:14 +00:00
Jacques Le Roux 101fe6961c A slightly modified patch from Bruno Busco "Updating Webtool JobList to use PerformFind and FindScreenDecorator" '(https://issues.apache.org/jira/browse/OFBIZ-2103) - OFBIZ-2103
with some i18n and French l10n


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@730990 13f79535-47bb-0310-9956-ffa450edef68
2009-01-03 14:33:01 +00:00
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
Adam Heath 43e9cdc2ff Generics galore.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@682078 13f79535-47bb-0310-9956-ffa450edef68
2008-08-02 23:31:04 +00:00
Adam Heath 1dc13f6105 Number.valueOf changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@672898 13f79535-47bb-0310-9956-ffa450edef68
2008-06-30 20:20:37 +00:00
Jacques Le Roux 798e0cb9ac Per David's advice revert change (was already done in another way in rev. 539527 (https://issues.apache.org/jira/browse/OFBIZ-593)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@672687 13f79535-47bb-0310-9956-ffa450edef68
2008-06-30 00:56:20 +00:00
Jacques Le Roux f11fd686da Fix a bug when emptying a field (blanking it)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@672187 13f79535-47bb-0310-9956-ffa450edef68
2008-06-27 08:32:16 +00:00
David E. Jones b9d6f8b524 Changed EntityExpr and EntityFunction subclasses to use the factory instead of constructor pattern, plus moved EntityExpr to EntityCondition factory methods; a number of EntityExpr cleanups, but many more to go
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660812 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 05:20:09 +00:00
David E. Jones 3543d6abe3 Changed the way EntityCondition sub-classes work so they use the javolution Reusable class for recycling objects; now all conditions should be created using the factory methods on the EntityCondition object instead of the direct constructors; there is a small variety of classes available there now for ease of use; also changed a bunch of old code to not use the deprecated constructors; note that still need to do a pass similar to this on EntityExpr
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660780 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 01:58:46 +00:00
Scott Gray 153653615b Removed the rest of the calls to deprecated GenericDelegator methods, except for the findListIteratorByCondition which takes a DynamicViewEntity as a parameter not sure what to do about that one.
There's still all the bsh files to check though.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655235 13f79535-47bb-0310-9956-ffa450edef68
2008-05-11 03:29:04 +00:00
Scott Gray 112ae8dd76 Need to strip the comments when looking for called services as well
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653187 13f79535-47bb-0310-9956-ffa450edef68
2008-05-04 08:37:57 +00:00
Scott Gray 8ec7821177 Added a method to strip comments when parsing java files, the artifact info stuff was getting a bit confused by them
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653181 13f79535-47bb-0310-9956-ffa450edef68
2008-05-04 05:38:38 +00:00
David E. Jones 329631a4b5 A whole bunch of cleanups to use newer and more consolidated delegator find methods; still lots of deprecation warnings, bots of deprecation warnings but this is a first pass, and things still run as before
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653029 13f79535-47bb-0310-9956-ffa450edef68
2008-05-03 09:40:51 +00:00
Scott Gray 451539e829 Small change so that the log shows the orginal entity String rather than an empty String
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@652902 13f79535-47bb-0310-9956-ffa450edef68
2008-05-02 20:41:00 +00:00
David E. Jones de28351d15 Small changes to allow search in general or by artifact type
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@644531 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 22:10:17 +00:00
David E. Jones 616490c775 Artifact info related artifact lists are now all sorted
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@644386 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 16:02:16 +00:00
David E. Jones 0b4bcd4807 Added stuff to get definition location URL for all artifact types
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@644206 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 07:59:52 +00:00
David E. Jones 3141bca290 Finished form to link/target request artifact info stuff
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@644179 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 06:06:48 +00:00
Andrew Zeneski 33d71a99b7 changed to order descending
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@643751 13f79535-47bb-0310-9956-ffa450edef68
2008-04-02 05:44:27 +00:00
Andrew Zeneski aefc7b3329 changed job list sort to runTime and default view size to 50
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@643734 13f79535-47bb-0310-9956-ffa450edef68
2008-04-02 04:26:35 +00:00
David E. Jones 630950c653 Refactored xml file searching to make more general, now used to search for controller xml files for requests referred to in screen linktroller xml files for requests used in screen defs, code for forms soon to come
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@641730 13f79535-47bb-0310-9956-ffa450edef68
2008-03-27 07:53:39 +00:00
David E. Jones 21235aee5e Added data structures for forward and reverse request references in screens and forms; no code to populate yet
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@640861 13f79535-47bb-0310-9956-ffa450edef68
2008-03-25 15:29:30 +00:00
David E. Jones 25829393fb Improvements in display of form and screen names and locations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@639956 13f79535-47bb-0310-9956-ffa450edef68
2008-03-22 06:23:00 +00:00
David E. Jones fbc78ef874 Cleanups to controller url display to minimize it; changed view screen ref to look at all screen render types
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@639954 13f79535-47bb-0310-9956-ffa450edef68
2008-03-22 06:11:04 +00:00