Scott Gray
b06da51278
Remove the target mime check for text/plain when writing text, previously any target type other than text/html or text/plain would always receive an empty string as output
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996054 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 03:33:48 +00:00
Scott Gray
e125415317
Generics markup
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996053 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 03:33:40 +00:00
Scott Gray
d15f054082
Correct direction when searching for content to index, the direction is non-intuitive but I've left it as is for now
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996052 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 03:33:31 +00:00
Scott Gray
d0cbebbd41
Add SUB_CONTENT to the list of contentAssocTypeIds to look for when indexing content
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@996051 13f79535-47bb-0310-9956-ffa450edef68
2010-09-11 03:33:16 +00:00
Scott Gray
d72ba2672d
Remove commented debug statements
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995720 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10 09:34:37 +00:00
Scott Gray
b0e084508a
Simplify method by passing a default value to UtilProperties.getPropertyValue(...)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995719 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10 09:34:29 +00:00
Scott Gray
30aff06401
Formatting fixes, no functional changes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995716 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10 09:26:51 +00:00
Scott Gray
aea24f851c
Correct a couple of copy/paste errors.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995715 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10 09:26:43 +00:00
Scott Gray
8c91d61ece
Generics markup, no functional changes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995704 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10 08:53:18 +00:00
Hans Bakker
552ab71a62
make the access of productData and content use the cache. This wil result in a 20% speed increase of the ecommerce homepage
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@988893 13f79535-47bb-0310-9956-ffa450edef68
2010-08-25 08:45:08 +00:00
Scott Gray
4448c4a866
No functional changes, just removing a whole bunch of unused imports and reorganizing them along the way.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981019 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 08:28:34 +00:00
Jacques Le Roux
e57c2599a9
A patch from Sumit Pandit "Issue in rendering Freemarker Template from String." ( https://issues.apache.org/jira/browse/OFBIZ-3782 ) - OFBIZ-3782
...
With the help of Bob Morley (it was more a cache issue than what Sumit thought)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950866 13f79535-47bb-0310-9956-ffa450edef68
2010-06-03 04:11:32 +00:00
Scott Gray
d233cd5675
The following deprecated classes, constructors or methods have been removed:
...
org.ofbiz.content.data.DataResourceWorker.getImageType(Delegator, String)
- Use getMimeType(GenericValue) instead
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@944175 13f79535-47bb-0310-9956-ffa450edef68
2010-05-14 09:46:18 +00:00
Adam Heath
aa053eb1ae
Add some caching to a few delegator calls, a few cases during the
...
loading of survey data were always hitting the database.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@941047 13f79535-47bb-0310-9956-ffa450edef68
2010-05-04 21:19:28 +00:00
Ashish Vijaywargiya
9712434557
Applied patch from jira issue: OFBIZ-3719 - Include DOCTYPE at the begining of CMS driven html page.
...
Description of work:
Include DOCTYPE at the begining of html pages, that are render through cms.
Currently DOCTYPE is included in HtmlHead.ftl for cms.
By doing so the DOCT YPE is always included on the top of the page before rendering single HTML statement.
Thanks Deepak & Rishi for the contribution and Scott for the comments.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935886 13f79535-47bb-0310-9956-ffa450edef68
2010-04-20 12:03:21 +00:00
Scott Gray
d4e34a244a
Fixed a ton of pointless ServiceUtil.returnError(...) calls, I've left the ones that aren't inside services for now since they require a little more thought to fix
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935164 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 10:28:18 +00:00
Scott Gray
80804f0931
Removed usage of the deprecated macro renderer constructors
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932174 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:23:33 +00:00
Scott Gray
ffb067d933
Applied patch from Jacopo Cappellato, switched the content rendering logic over to using the macro renderers rather than the soon to be deprecated html renderers
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932170 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:14:07 +00:00
Scott Gray
6a48871974
Remove an unnecessary null assignment
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932169 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:14:02 +00:00
Scott Gray
6c4c6ce197
Remove some unnecessary casts
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932168 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:13:58 +00:00
Scott Gray
8ff3d00360
Removed commented and ununsed code
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931212 13f79535-47bb-0310-9956-ffa450edef68
2010-04-06 16:28:34 +00:00
Scott Gray
c46617fed3
Generics markup
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931210 13f79535-47bb-0310-9956-ffa450edef68
2010-04-06 16:26:06 +00:00
Scott Gray
a75dd88034
Added support for generating content links by looking for an appropriate WebSitePathAlias to use, I skipped adding support for finding an alias via mapKey/contentId for now since quite a bit of processing would be required to find an appropriate match
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931174 13f79535-47bb-0310-9956-ffa450edef68
2010-04-06 15:02:32 +00:00
Scott Gray
bde54f16ff
In ContentWorker.renderContentAsText, I've moved the check for a dataResourceId down to the point where the DataResource record actually needs to be rendered. If a decorator content is present then it is quite possible that the content record is simply being used as a plcaeholder to render sub content records.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930968 13f79535-47bb-0310-9956-ffa450edef68
2010-04-05 21:42:28 +00:00
Scott Gray
25c3f11822
Improved the content rendering so that multiple levels of decoration are supported, previously you could have only one content and it's decorator, anything above that and the contents being decorated would get lost in the rendering logic.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930544 13f79535-47bb-0310-9956-ffa450edef68
2010-04-03 17:11:34 +00:00
Scott Gray
195c3dbb10
Log an error and ignore decoratorContentId if it is the same as the contentId being rendered. Prevents a stack overflow.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930156 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 03:37:33 +00:00
Scott Gray
63c1179dd6
Add a debug warning when a given contentId cannot be verified to the given webSiteId
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929298 13f79535-47bb-0310-9956-ffa450edef68
2010-03-30 21:25:31 +00:00
Ashish Vijaywargiya
2127f39c02
Corrected the condition.
...
Thanks Arun!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927739 13f79535-47bb-0310-9956-ffa450edef68
2010-03-26 09:04:06 +00:00
Scott Gray
edd1849adb
Have the cms event use the current request's overrideViewUri (_CURRENT_CHAIN_VIEW_) if present instead of request.getPathInfo(), this allows you to go through a chain of requests before pushing back into cms.
...
So you can now have a request response push back to cms with something like this:
<response name="success" type="request" value="cms/contentId/mapKey"/>
basically anything that would have worked in the URL will work here, except for relying on the default-request mapping which chained requests ignore, so you have to prefix with cms/ (or whatever your cms uri is)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926418 13f79535-47bb-0310-9956-ffa450edef68
2010-03-23 00:47:51 +00:00
Scott Gray
11576a1b0f
Add some more cache usage when verifying the content to be rendered.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926390 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 23:11:24 +00:00
Scott Gray
4219c2781f
Use String.valueOf(int) instead of "" + int
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926387 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 23:11:15 +00:00
Scott Gray
29c75f6fe2
Rename hasContent variable to hadContent which better reflects what it actually means.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926201 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 17:15:16 +00:00
Scott Gray
53e42796c0
Remove pathInfo.indexOf(/) and just do the split regardless, the end result is the same.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926200 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 17:15:12 +00:00
Scott Gray
6d6699a458
Remove unnecessary null and length check after a string.split(String) call that always returns at least an array of length 1
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926199 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 17:15:07 +00:00
Scott Gray
3008619787
Use the cache when looking for a default content record
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926198 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 17:15:02 +00:00
Scott Gray
f33c311218
Fix null checks, pathInfo may be null but pathParsed won't be.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926197 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 17:14:58 +00:00
Scott Gray
7703b69d73
Remove some commented code, keeping it around serves no purpose.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926176 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 16:45:51 +00:00
Scott Gray
23508aa989
Access static fields of HttpServletResponse directly
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926175 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 16:45:46 +00:00
Scott Gray
6d4fe06c5c
Formatting tidy up, mostly adding missing spaces. No functional changes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926174 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 16:45:42 +00:00
Scott Gray
c75bda5d7a
OrderHeader isn't cached so there's no point in trying to do lookups via the cache
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@924575 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 00:56:54 +00:00
Adam Heath
93d0182f49
Make all variables in ControllerConfig private, and add accessor
...
functions to them.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904250 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 20:10:51 +00:00
Ashish Vijaywargiya
e0dd935336
Avoid NPE.
...
Patch from Vivek.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902752 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 09:40:15 +00:00
Adam Heath
b17eb127ec
Fix trailing whitespace, and mixed tab/space at the beginning of lines.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899812 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 21:00:23 +00:00
Scott Gray
84445caafe
Fix typo
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889043 13f79535-47bb-0310-9956-ffa450edef68
2009-12-10 01:02:37 +00:00
Scott Gray
ced8fd1a54
Reverted previous temporary security fix for request parameters being directly inserted into survey forms and changed all SurveyWrapper instances using this method to instead store the parameter map in the session temporarily.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889040 13f79535-47bb-0310-9956-ffa450edef68
2009-12-10 00:53:47 +00:00
Scott Gray
bcaacf4fd1
Added new class SurveyEvents and event method that wraps a createSurveyResponse service call and additionally restores a previously stored request parameter map
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889039 13f79535-47bb-0310-9956-ffa450edef68
2009-12-10 00:52:53 +00:00
Jacques Le Roux
47b0eff762
More uses of is(Not)Empty
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885112 13f79535-47bb-0310-9956-ffa450edef68
2009-11-28 16:27:42 +00:00
Jacques Le Roux
e07ab48fb4
Some cleaning related to is(Not)Empty
...
* remove duplicate ()
* remove casts no longer needed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885103 13f79535-47bb-0310-9956-ffa450edef68
2009-11-28 15:46:52 +00:00
Jacques Le Roux
c72b29cb1f
Use UtilValidate.isNotEmpty methods instead of (obj != null) || (obj.length > 0) and (obj != null) || (obj.size > 0)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883549 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 23:41:34 +00:00
Jacques Le Roux
5518e9baf8
Use UtilValidate.isEmpty methods instead of (obj == null) || (obj.size == 0)
...
Complete r883492
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883516 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 22:02:05 +00:00