Commit Graph
62 Commits
Author SHA1 Message Date
Jacques Le Roux 4fb56aa2f7 Secure URLs, we don't need to duplicate in from-field when param-name is the same
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@762215 13f79535-47bb-0310-9956-ffa450edef68
2009-04-06 06:25:24 +00:00
Jacques Le Roux 2dc371b05c Securing URLs, link element in screens and menus : 29th set + tabs to 4 spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@761976 13f79535-47bb-0310-9956-ffa450edef68
2009-04-04 17:46:49 +00:00
Bilgin Ismet Ibryam 4b3ef3a6fa Added an optional "name" attribute to event element in controller.xml This attribute is used only (also required) in events inside
firstvisit, after-login, before-logout, preprocessor and postprocessor elements. Events with same name will be overridden and only the last one will be executed. Overriding works also in cases when a controller.xml includes other controller files.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@761220 13f79535-47bb-0310-9956-ffa450edef68
2009-04-02 09:47:48 +00:00
Jacques Le Roux cfe00482c4 21th set of changes explained in https://issues.apache.org/jira/browse/OFBIZ-2243
In hyperlink and sub-hyperlink elements, replacement of target parameters by parameter sub-elements

We are near the end...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@759684 13f79535-47bb-0310-9956-ffa450edef68
2009-03-29 14:02:55 +00:00
Adam Heath 951fe09510 Fix lines that *only* have whitespace.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@759261 13f79535-47bb-0310-9956-ffa450edef68
2009-03-27 17:02:14 +00:00
Adam Heath ae72be2c7e Fix purely empty whitespace lines, and remove trailing whitespace.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@757097 13f79535-47bb-0310-9956-ffa450edef68
2009-03-21 23:47:38 +00:00
Jacques Le Roux 73dc990fe1 hhfacility component
Following best practice.
Changed location="org/ofbiz/......... to location="component:// in the service location attribute.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@755950 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 11:57:31 +00:00
Marco Risaliti c441e45ca0 A lot of hardcoded labels cleaning and changes some wrong references
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@753028 13f79535-47bb-0310-9956-ffa450edef68
2009-03-12 21:50:12 +00:00
Bruno Busco cde214ae99 Changed WebSiteId parameter description to be more general
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@751214 13f79535-47bb-0310-9956-ffa450edef68
2009-03-07 07:19:07 +00:00
Marco Risaliti 18be3df7c5 A lot of hardcoded labels cleaning and changes some wrong references
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@746406 13f79535-47bb-0310-9956-ffa450edef68
2009-02-20 22:53:32 +00:00
Marco Risaliti d567b0a0ea A lot of hardcoded labels cleaning and changes some wrong references
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@746049 13f79535-47bb-0310-9956-ffa450edef68
2009-02-19 23:08:30 +00:00
Bruno Busco 55a2ae8011 Added webSiteId definition for every webapp.
This will be used to link online help pages to OFBiz screens.
The webSiteId will also be used to associate VisualThemeSets to webapps.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@744502 13f79535-47bb-0310-9956-ffa450edef68
2009-02-14 14:35:56 +00:00
Marco Risaliti 4f92646507 A lot of hardcoded labels cleaning and changes some wrong references
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@744265 13f79535-47bb-0310-9956-ffa450edef68
2009-02-13 22:22:34 +00:00
Marco Risaliti 550aa4850e A lot of hardcoded labels cleaning and changes some wrong references
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@742770 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 22:13:57 +00:00
Jacques Le Roux a610d4e8d9 Simple-method and alike tags cleanup. Not sure yet, but I guess there are no "Xerces errors" anymore.
I will post some other errors (of other types I guess) I found using Artifact Info in dev ML soon

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@741594 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 15:28:41 +00:00
David E. Jones 64e0947e4e 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/specialpurpose@741374 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 02:14:19 +00:00
Jacques Le Roux 9a20755101 <entity-condition(.*) list-name= => <entity-condition$1 list=
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@739740 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 11:08:49 +00:00
Jacques Le Roux ea40a85e51 <entity-one entity-name=(.*)value-name => <entity-one entity-name=$1value-field
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@739732 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 10:27:43 +00:00
Jacques Le Roux 3f77bc7d2b Fix issues with now-timestamp-to-env and sequence-id-to-env : their factories names where missing in org.ofbiz.minilang.method.MethodOperation$Factory file
also
<sequenced-id-to-env(.*)env-name => <sequenced-id$1field
<now-timestamp-to-env(.*)env-name => <now-timestamp$1field
both on *SimpleMethods*.xml, *events*.xml, *formula*.xml, *services*.xml, *tests*.xml (previously I only used *events*.xml, *services*.xml, but I guess it's not a big deal for now)




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@730433 13f79535-47bb-0310-9956-ffa450edef68
2008-12-31 17:47:37 +00:00
Jacques Le Roux 3e8441c3f9 revert both
sequenced-id(.*)field to <sequenced-id-to-env$1env-name
<now-timestamp(.*)field => <now-timestamp-to-env$1env-name
Something is wrong with these 2 tags (inconsistency between xsd and java, I'll look at it)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@730397 13f79535-47bb-0310-9956-ffa450edef68
2008-12-31 13:59:08 +00:00
Jacques Le Roux ba82c19fac Reverted 730372 : an error realted to calculate tag has slipped in
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@730373 13f79535-47bb-0310-9956-ffa450edef68
2008-12-31 11:00:51 +00:00
Jacques Le Roux 0211a1888e <field field-name => <field field
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@730198 13f79535-47bb-0310-9956-ffa450edef68
2008-12-30 17:30:52 +00:00
Jacques Le Roux 405c297c68 <now-timestamp-to-env env-name => <now-timestamp field
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@730194 13f79535-47bb-0310-9956-ffa450edef68
2008-12-30 17:25:18 +00:00
Jacques Le Roux 86f3173e9e <get-related(.*)value-name => <get-related$1value-field
<get-related(.*)list-name => <get-related$1list
<get-related(.*)\R(.*)list-name => <get-related$1\R$2list-name
<get-related(.*)\R(.*)value-name => <get-related$1\R$2value-field
<calculate field-name => <calculate field
<calcop(.*)field-name => <calcop$1field
<result-to-field(.*)field-name => <result-to-field(.*)field
<result-to-field(.*)field="(.*)"(.*) map-name="(.*)" => <result-to-field$1field="$4.$2"$3
<field-to-request field-name => <field-to-request field

(I had a connection break that's while I put all of them in one sole commit)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@730183 13f79535-47bb-0310-9956-ffa450edef68
2008-12-30 17:12:15 +00:00
Jacques Le Roux 4601e09bc1 <clear-field(.*)field-name => <clear-field$1field
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@730109 13f79535-47bb-0310-9956-ffa450edef68
2008-12-30 12:04:24 +00:00
Jacques Le Roux 62ecc94e04 <find-by-primary-key(.*)map-name => <find-by-primary-key$1map
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@730101 13f79535-47bb-0310-9956-ffa450edef68
2008-12-30 11:51:58 +00:00
Jacques Le Roux 4bcc493b14 <find-by-primary-key(.*)value-name => <find-by-primary-key$1value-field
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@730100 13f79535-47bb-0310-9956-ffa450edef68
2008-12-30 11:49:32 +00:00
Jacques Le Roux e608ca2bf8 A patch from Nicolas Malin "Refactoring product search by id" (https://issues.apache.org/jira/browse/OFBIZ-2027) - OFBIZ-2027
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@709726 13f79535-47bb-0310-9956-ffa450edef68
2008-11-01 17:19:32 +00:00
Marco Risaliti 840e8d91af Converted some bsh scripts to groovy
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@700227 13f79535-47bb-0310-9956-ffa450edef68
2008-09-29 19:58:02 +00:00
Jacques Le Roux 51dc47bb13 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/specialpurpose@686591 13f79535-47bb-0310-9956-ffa450edef68
2008-08-17 07:47:18 +00:00
Scott Gray bc1d45481c 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/specialpurpose@686577 13f79535-47bb-0310-9956-ffa450edef68
2008-08-17 00:00:49 +00:00
Adam Heath 5e00789519 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/specialpurpose@685934 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 15:08:14 +00:00
Adrian Crum 0930dd71a9 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/specialpurpose@684548 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 16:28:14 +00:00
Adam Heath f1ba2a8694 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/specialpurpose@681935 13f79535-47bb-0310-9956-ffa450edef68
2008-08-02 03:41:46 +00:00
Jacques Le Roux cccfdf34bf 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/specialpurpose@677685 13f79535-47bb-0310-9956-ffa450edef68
2008-07-17 18:56:25 +00:00
Adrian Crum 3d9f40d806 Removed deprecated CSS styles from back office applications.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@676212 13f79535-47bb-0310-9956-ffa450edef68
2008-07-12 18:41:44 +00:00
Adrian Crum aef4715b32 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/specialpurpose@675831 13f79535-47bb-0310-9956-ffa450edef68
2008-07-11 04:02:30 +00:00
Adam Heath f4db945fe7 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/specialpurpose@672657 13f79535-47bb-0310-9956-ffa450edef68
2008-06-29 18:39:36 +00:00
Scott Gray 4366f0c104 Updated all simple methods to use the new attributes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@667748 13f79535-47bb-0310-9956-ffa450edef68
2008-06-14 06:03:12 +00:00
Jacopo Cappellato 32280c150b 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/specialpurpose@662338 13f79535-47bb-0310-9956-ffa450edef68
2008-06-02 06:40:50 +00:00
Jacques Le Roux 8aabca7e62 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/specialpurpose@661288 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 10:39:28 +00:00
Scott Gray 9343a54c1b 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/specialpurpose@655238 13f79535-47bb-0310-9956-ffa450edef68
2008-05-11 04:32:54 +00:00
Scott Gray 79e6da2121 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/specialpurpose@653201 13f79535-47bb-0310-9956-ffa450edef68
2008-05-04 11:34:32 +00:00
Jacques Le Roux b38bde19f6 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/specialpurpose@647451 13f79535-47bb-0310-9956-ffa450edef68
2008-04-12 13:53:49 +00:00
Adrian Crum 898a731e5e 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/specialpurpose@627051 13f79535-47bb-0310-9956-ffa450edef68
2008-02-12 19:30:09 +00:00
Adrian Crum 454561794e 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/specialpurpose@588474 13f79535-47bb-0310-9956-ffa450edef68
2007-10-26 02:29:49 +00:00
Jacques Le Roux b4b97074a4 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/specialpurpose@582731 13f79535-47bb-0310-9956-ffa450edef68
2007-10-08 07:08:34 +00:00
Adrian Crum 02188a792f 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/specialpurpose@582517 13f79535-47bb-0310-9956-ffa450edef68
2007-10-06 17:25:42 +00:00
Jacques Le Roux 34a5926795 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/specialpurpose@560546 13f79535-47bb-0310-9956-ffa450edef68
2007-07-28 13:42:58 +00:00
Jacopo Cappellato 3a2143d6e8 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/specialpurpose@550173 13f79535-47bb-0310-9956-ffa450edef68
2007-06-24 07:27:29 +00:00