Commit Graph
383 Commits
Author SHA1 Message Date
Jacques Le Roux ffdbca925e A patch from Marc Morin "Resolve java warnings exposed in Eclipse : framework - webapp" (https://issues.apache.org/jira/browse/OFBIZ-3116) - OFBIZ-3116
With few changes notably an enhanced for loop instead of while iterator and


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@836141 13f79535-47bb-0310-9956-ffa450edef68
2009-11-14 08:29:42 +00:00
Scott Gray f4c8abb56c Reverted changes to the trunk from r833294 that appear to have been intended for the birt branch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833303 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 05:22:58 +00:00
Hans Bakker 99f2b600db 1. fix framework for using jsp tag in freemarker.
2. change order building birt component to after common component in framework/build.xml file
3. specific birt container before beanshell container in framework/base/config/ofbiz-containers.xml file
4. specific loading birt component after bi component in framework/component-load.xml
5. list all birt's jar files that have Eclipse Public License - v 1.0 in LICENSE file
6. change example report's path in mail form's tooltip.
7. delete four duplicated jar files.
  - framework/birt/lib/axis.jar
  - framework/birt/lib/commons-discovery-0.2.jar
  - framework/birt/lib/axis-ant.jar
  - framework/birt/lib/commons-cli-1.0.jar

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833294 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 03:55:56 +00:00
Jacques Le Roux bf71e5ec52 A slightly modified patch from Patrick Antivackis "A way to generate no cache header for the views" (https://issues.apache.org/jira/browse/OFBIZ-3091) - OFBIZ-3091
Patrick : The goal of this improvement is to allow at the view level, through setup in the controller.xml file, to generate no-cache http headers. Example is included for the showcart view of the ecommerce application.
JLR : I have commented out Patrick's example in controller and put a comment about its usage

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833096 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 17:38:42 +00:00
Bilgin Ismet Ibryam ddb2d1148a Prevent overriding of service results in a service-multi type events.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@831098 13f79535-47bb-0310-9956-ffa450edef68
2009-10-29 21:35:49 +00:00
Jacques Le Roux 048506f318 A patch from Patrick Antivackis "NPE when calling a page like http://localhost:8080/cmssite/cms" (https://issues.apache.org/jira/browse/OFBIZ-3096) - OFBIZ-3096
A Null Pointer Exception is generated by RequestHandler.trackVIsit and trackStat if a page is called without view and without trailing slash after the controller.
This may be not a problem for non cms site, but it is for cms site. Calling http://localhost:8080/cmssite/cms will generate a NPE; WIth the included pacth, calling the same page will display the default page.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@830366 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 22:13:53 +00:00
Jacques Le Roux 3f8e87f56f A patch from Angelo Matarazzo "Add view-last-noparam" (https://issues.apache.org/jira/browse/OFBIZ-3027) - OFBIZ-3027
"view-last-noparam" has functionality of view-last but without last parameters like "request-redirect-noparam". 

I' m using this attribute because in my application all the screens are linked to a field in the context. that I call "commonValue". I have a link in the common header that change the value of this field but when I click this link the screen must not change but the field of current screen must be cleaned. By this attribute the view is set at " last-view" but the last parameters are cleaned.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@829727 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 08:22:25 +00:00
Jacques Le Roux 06d24f1277 Better French translation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@829605 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 15:25:24 +00:00
Adrian Crum 9ee18d37c5 Updated client code to use the new Delegator factory method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823633 13f79535-47bb-0310-9956-ffa450edef68
2009-10-09 17:44:24 +00:00
Adrian Crum 7fa08f9079 Replaced GenericDelegator.getGenericDelegator(...) calls with new factory method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821649 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 01:53:50 +00:00
Adrian Crum a4d68934c9 Converted GenericDelegator concrete class references to Delegator interface references.
This commit requires ant clean. Also, external libraries that reference GenericDelegator will need to be updated.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821643 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 00:08:27 +00:00
Scott Gray 2afbb75457 Get rid of a whole pile of unnecessary string instantiations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@818665 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24 23:49:02 +00:00
Scott Gray 69500fc964 Add a new method to allow a content url to be generated without a request object
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817601 13f79535-47bb-0310-9956-ffa450edef68
2009-09-22 11:05:40 +00:00
Adrian Crum 74ea95889c Reverted rev 802567.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812692 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 20:56:14 +00:00
Hans Bakker 5a78b96a0b remove log mesage
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812027 13f79535-47bb-0310-9956-ffa450edef68
2009-09-07 07:56:13 +00:00
Scott Gray e86aca235a Applied a slightly modified fix from Eric de Maulde (OFBIZ-2757), the currency transform for FreeMarker was not permitting rounding to 0 decimal places
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811813 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 11:24:57 +00:00
Hans Bakker d6a65c264a helpscreens placeholders now converted to the docbook V5 format inclusive of namespace support, updated the apache ofbiz document to explain how to create helpscreens, created an ftl template to display the docbook help screens, docbook pdf generation now almost working: it can create a local pdf file, but streaming to the browser does not work..if anybody interested to help me check modelscreenwidget.java line 1206
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811787 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 09:39:20 +00:00
Scott Gray c7c375cecc Don't redirect https requests to http if the request map specifies https since it forces the client to repost data over an unsecure connection
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@806552 13f79535-47bb-0310-9956-ffa450edef68
2009-08-21 13:49:07 +00:00
Jacques Le Roux 7befd1d25e no tabs but 4 spaces in code files (*.ftl, *.gro*, *.java, *.xml)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804935 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 11:01:25 +00:00
Jacques Le Roux 4c442ee379 Some fusiness
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804895 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 08:20:38 +00:00
Hans Bakker fbaad86261 unwanted change
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804075 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 04:24:25 +00:00
Hans Bakker 2d51096b6d Excellent contribution from Brett G. Palmer in issue: OFBIZ-2116
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804074 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 04:22:27 +00:00
Adrian Crum 6786aa4dbc Refactored GenericDelegator:
1. Converted GenericDelegator to an interface. We already have DelegatorInterface, but it isn't being used anywhere. Removed DelegatorInterface.java.

2. Extracted the static, cached data from the GenericDelegator implementation and put it in its own class - DelegatorData. The GenericDelegator implementation holds a reference to the DelegatorData instance. This makes it possible to have per-thread instances of GenericDelegator.

3. Replaced the ThreadLocal variables with regular variables. ThreadLocal variables are no longer needed. Client code doesn't need to be concerned with pushing and popping the GenericDelegator state.

This commit paves the way for the forthcoming ExecutionContext.

User modifications will have to replace GenericDelegator.getGenericDelegator(...) with DelegatorFactory.getGenericDelegator(...). Also, replace the push code with the new setXxx methods, and remove the pop code. If modifications used DelegatorInterface, replace that with GenericDelegator.

Aside from those changes, this commit is backwards compatible.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802567 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 18:04:26 +00:00
Adrian Crum b96f551de7 Converted Security.java to an interface. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802563 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 17:20:06 +00:00
Adrian Crum 7bc514f98d WebDavServlet.java now uses the cached ClassLoader.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802043 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 15:20:24 +00:00
Adrian Crum c13c47f919 Chinese translation for the framework folder, provided by Shi Yusen - https://issues.apache.org/jira/browse/OFBIZ-2767.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@798941 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 15:14:01 +00:00
Anil Patel a29ff05ca5 Adding Json event handler for multi service. Patch from OFBIZ-2762. Thanks Rishi and Chirag for implementation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@798114 13f79535-47bb-0310-9956-ffa450edef68
2009-07-27 12:22:21 +00:00
Scott Gray e72e9a8029 Added a new ServletContext parameter "forceHttpSession" that when set to true forces the JSESSIONID cookie to be sent via http
This resolves an issue in the ecommerce app where if the initial request to the app is an https request then the session cookie is available via https only.  
Subsequently if at any point the user switches to http then the session is lost along with any data such as the shopping cart.

The solution involves checking if the request is an https request and if the session is new then the user is redirected to an http version of the request.  
The session cookie is then sent along with the http response which will either be the page requested if the request doesn't require https or otherwise another
redirect back to the https version.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@798025 13f79535-47bb-0310-9956-ffa450edef68
2009-07-27 05:02:19 +00:00
Alfred Maxwell Byers c0ac870199 The content length was being calculated on the wrong string.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@797681 13f79535-47bb-0310-9956-ffa450edef68
2009-07-24 22:41:34 +00:00
Scott Gray 99ec7450cf For view-last responses if no previous view can be found then allow the value attribute to be used as the default view.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@796918 13f79535-47bb-0310-9956-ffa450edef68
2009-07-23 01:00:58 +00:00
Adrian Crum e4ee374a66 Conversion from java.util.Calendar to com.ibm.icu.util.Calendar. I didn't convert the Cloud component - I wasn't sure if the Calendar class was being passed through SOAP.
OFBiz users who have modifications or add-ons can make the same substitution to get them to compile.

I'll let the dust settle from this, then I'll add the user-selected calendar capability.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@792987 13f79535-47bb-0310-9956-ffa450edef68
2009-07-10 15:39:21 +00:00
Scott Gray dec24b29f2 Sorry for the big commit, got a bit carried away.
Added override and deprecated annotations wherever they were missing
Removed the use of any deprecated classes/methods (except OutputFormat in UtilXml)
A few other random generics and misc. cleanups

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@791212 13f79535-47bb-0310-9956-ffa450edef68
2009-07-05 10:01:19 +00:00
Adrian Crum f83c020c1b Code cleanup and bug fixes in WebDAV and iCalendar.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789871 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 18:46:10 +00:00
Adrian Crum 5c4ddcf56f More iCalendar improvements. Added HTTP challenge/response authentication, enforce SSL.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789490 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 23:28:37 +00:00
Adam Heath dd51c0108b Add a simple initCause helper method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789400 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 18:13:19 +00:00
Scott Gray 1d43a59500 Do not save the view if the last view is the same as the current view and saveCurrentView is false
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789303 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 12:05:57 +00:00
Adam Heath 0e54c940c9 Add a variant of appendContentPrefix that takes an Appendable.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789201 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 03:22:03 +00:00
Adam Heath 2752e89c06 Switch to ContentUrlTag.appendContentPrefix to StringBuilder, and
deprecate to the StringBuffer variant.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789177 13f79535-47bb-0310-9956-ffa450edef68
2009-06-28 23:50:53 +00:00
Adrian Crum 09061f7f31 Oops, C&P was my enemy again.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@787919 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 06:07:35 +00:00
Adrian Crum 9ae2dd39b9 A rudimentary WebDAV servlet. This is in preparation for the forthcoming iCalendar improvements. It is only a beginning - it needs to be built out.
I put this in the framework because it is reusable and extensible. For example, a WebDAV interface to the Content component could be useful.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@787915 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 05:58:56 +00:00
Scott Gray ed77ea73ee Fix an attribute name
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@787442 13f79535-47bb-0310-9956-ffa450edef68
2009-06-22 23:24:01 +00:00
Scott Gray 66c49c1305 Clean up the mess that I just made :-/
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@787436 13f79535-47bb-0310-9956-ffa450edef68
2009-06-22 23:04:51 +00:00
Scott Gray 65ebff46d6 Prevent view-last from overwriting the event/error messages of the current event
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@787435 13f79535-47bb-0310-9956-ffa450edef68
2009-06-22 23:01:35 +00:00
Scott Gray 8e19d2e4e4 Removing the transform I added in r784712, thanks Adrian for pointing out its redundancy
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@785037 13f79535-47bb-0310-9956-ffa450edef68
2009-06-16 00:39:33 +00:00
Scott Gray a1c341d5ef Add a new template transform for including templates in freemarker templates using component notation:
<@includeTemplate location="component://common/webcommon/includes/cctypes.ftl"/>

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@784712 13f79535-47bb-0310-9956-ffa450edef68
2009-06-15 10:18:55 +00:00
Adrian Crum c24450819b Oops, I should have looked closer at that patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@783830 13f79535-47bb-0310-9956-ffa450edef68
2009-06-11 16:14:38 +00:00
Adrian Crum 96fa7e81ae Eliminated confusing property setting - https://issues.apache.org/jira/browse/OFBIZ-2577.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@783824 13f79535-47bb-0310-9956-ffa450edef68
2009-06-11 16:04:12 +00:00
Hans Bakker aca1f239c9 remove on mycommlist did not work and returned to a old unused saved view. save-home now clears save-current/last view
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@783266 13f79535-47bb-0310-9956-ffa450edef68
2009-06-10 09:21:18 +00:00
Adrian Crum 70956fc56f Fixed a problem with BsfEventHandler.java not recognizing the "component://" location syntax. Reported by Marco Risaliti - https://issues.apache.org/jira/browse/OFBIZ-2539.
I also fixed a couple other problems with the class.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@779639 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28 16:11:50 +00:00
Christian Geisert 4dafa44a64 fixed eol-style
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@778786 13f79535-47bb-0310-9956-ffa450edef68
2009-05-26 16:11:43 +00:00