Commit Graph
983 Commits
Author SHA1 Message Date
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
Bruno Busco 28e67b0349 A patch from Blas Rodriguez Somoza
OFBIZ-3688 - XHTML validation errors round 2 (content)
https://issues.apache.org/jira/browse/OFBIZ-3688
XHTML validation errors

    * Unclosed tags
    * attributes without values (checked, selected, disabled, etc)
    * attribute values without "
    * Uppercase tags or attributes.
    * Unencoded ampersands in urls.

Other errors:

ContentTreeLookupList.ftl
Line 20: tr with attribute colspan

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935263 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 22:02:54 +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
Bruno Busco 0fbba1b188 Better Italian labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934178 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 20:22:04 +00:00
Jacques Le Roux 3c9ed4efd1 Fix a bug reported by Blas Rodriguez Somoza at https://issues.apache.org/jira/browse/OFBIZ-3673 "Error screen in Content Manager->CMS->Create new (Ofbiz Demo)" - OFBIZ-3673
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933258 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 14:52:00 +00:00
Jacques Le Roux 0fd584149d Fixes 2 wrong arguments names passed to htmlTemplate.lookupField macro. There are no others.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933145 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 08:47:24 +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
Jacques Le Roux 671756c121 This one was missing in r931854 ("Using Widgets html form templates in FTL file"). It's one of the 2 cases where the hidden field is shared (note the FIXME)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932005 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 16:58:42 +00:00
Jacques Le Roux c7b353d3e8 Closes "Using Widgets html form templates in FTL files" (https://issues.apache.org/jira/browse/OFBIZ-3541) - OFBIZ-3541
This concerns the lookups which are now rendered the same in ftl files and widget forms

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931854 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 10:19:38 +00:00
Scott Gray eb4e287b9e Switch some classpath style xml service locations to component style
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931776 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 04:08:53 +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
Vikas Mayur c1a6159f64 Removed unnecessary occurrences of <or> tag enclosure in a singleton condition expression. in all of the lookup screens. Also removed few empty new lines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930252 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 12:05:17 +00:00
Erwan de Ferrieres bf0d08ad2d Adding entityLabels for WebSiteContentType
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930205 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 09:35:49 +00:00
Erwan de Ferrieres fb5493bbaf Badly formed from-field values (mis-matched curly braces) OFBIZ-3631 (https://issues.apache.org/jira/browse/OFBIZ-3631)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930202 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 09:21:53 +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 9396333b48 Consolidated two <if> blocks that were doing the same thing
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929609 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 16:22:23 +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
Bruno Busco 8c3b694494 A patch from Blas Rodriguez Somoza
OFBIZ-3611 - XHTML validation errors (content)
XHTML validation errors
- Unclosed INPUT
- attributes without values (checked, selected, disabled, etc)
- attribute values without "
- Uppercase tags or attributes.
- Unencoded ampersands in urls.

Other errors:

AdminSearch.ftl (this template has several markup errors and it should be reviewed)
Wrong markup at line 32. Duplicated TR
<tr>
Wrong markup at line 49. Table directly inside tr, needs td. Also wrong attribute name wdith should be width.
<table border="0" wdith="100%">
Wrong markup at line 112. Unclosed previous table and td
<td width="20%" align="right">

CMSSites.ftl
Wrong attribute name at lines 42,66, 154, 211. mode should be method
mode="POST"
Lacks needed type attribute at lines 19, 265.
<SCRIPT language="javascript">

UserPermissions.ftl
Wrong attribute name at lines 60, 81. mode should be method
mode="POST"
Lacks needed type attribute at lines 19 .
<SCRIPT language="javascript">
Wrong markup at lines 115 to 120. Those closing tags have no matching open tags.
</td>
</tr>
</table>
</td>
</tr>
</table>

CMSMenus.xml
Duplicated id value "dflt" at lines 32,38,43
<link id="dflt"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929257 13f79535-47bb-0310-9956-ffa450edef68
2010-03-30 20:28:48 +00:00
Scott Gray c1c1bc92a2 Fix copy/paste bug, create service for SurveyTrigger was trying to create a SurveyQuestionType record
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928970 13f79535-47bb-0310-9956-ffa450edef68
2010-03-30 04:03:28 +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
Ashish Vijaywargiya f323ee4dc3 Fixed two issues:
1) Wrong variable name used. "surveyResponse" should be used instead of "lookupRespMap".
2) Service should allow to update survey response when allowMultiple is set to "N" and allowUpdate="Y". Fixed this issue.

Thanks Arun!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927049 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 13:23:53 +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
Bruno Busco b0069a29ab Added a new "Show Content" Portlet.
This allows to show a content element in a portalPage.
A further improvement of this portlet will be to allow a content element list to be shown given the element's father.
Having the application's main page replaced with a portalPage will allow the user to edit this page using the CMS.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926340 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 21:16:45 +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 2eb1768f1d Fix lots of bad xhtml tags, need to have a space before the ending /.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923545 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 01:56:41 +00:00
Jacques Le Roux e185456966 I stumbled upon this while testing the layered lookups (there are no HelpScreens.xml in commonext/widget/ but in common/widget/).
Not sure it fix anything but at least it does not refer anymore to something that does not exist.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@918697 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 21:21:39 +00:00
Adam Heath f1c942842f Remove hard-coded BIZZNESS_TIME theme settings, so the default in
general.properties gets used.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@915651 13f79535-47bb-0310-9956-ffa450edef68
2010-02-24 03:32:26 +00:00
Scott Gray a830f3f436 Removed all uses of deprecated method ModelEntity.getField(int)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912243 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 22:53:09 +00:00
Scott Gray cc9f9c40fc Applied patch from Vivek Mishra, alters the recently added ContentAssocAndContentPurpose view entity to remove the warning at startup regarding a duplicated field alias name. Explicity defines the fields required rather than including all fields from both entities.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912081 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 06:59:27 +00:00
Ashish Vijaywargiya 62a47436c3 Applied patch from jira issue - OFBIZ-3487 - Improvement on CMS component.
1.  Adding sequenceNum field on ContentPurpose entity.
2. Adding ContentAssocAndContentPurpose view entity.
3. Fixed NPE issue on WebSiteCMSContent.ftl file.
4. Created ContentPurposeType data for "LANDING_PAGE_IMAGE".

Thanks Amit & Vivek for the contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@911774 13f79535-47bb-0310-9956-ffa450edef68
2010-02-19 10:27:10 +00:00
Bilgin Ismet Ibryam fae378c0ce Added possibility to upload files and assign contents to facilities.
Created FacilityContent entity and FacilityContentDetail view entity. Added screen and forms in facility application for content upload and deletion.

Added a generic event in content application for file upload and content association which is used in facility application. The same event can be used in content creation processes in order manager and project manager applications in order to remove duplicating code.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908602 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 17:52:50 +00:00
Bruno Busco d46461ef36 Merged multiple labels in one
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904735 13f79535-47bb-0310-9956-ffa450edef68
2010-01-30 08:49:59 +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