No Data Returned in Content Presenter Using Node.Propertymap After Changing Site Studio Region.
(Doc ID 1567198.1)
Last updated on MARCH 19, 2019
Applies to:
Oracle WebCenter Portal - Version 11.1.1.6.0 and laterInformation in this document applies to any platform.
Symptoms
On WebCenter Spaces, when using Site Studio regions/elements in Content Presenter template, the data related Site Studio elements (from the Contributor Data File) is not displayed in the Content Presenter task flow after the Site Studio Region is changed.
The following steps demonstrates the problem.
With reference to:
Tutorial: Configuring Site Studio for use with Content Presenter in Oracle WebCenter R11 (PS3/PS4) <
1. In Site Studio, create element of type plain text, Name: plaintext1
2. In Site Studio, create region, Name: PLAINREGION
3. In Site Studio, edit region, add element to region.
Name: body1 (mapped to plaintext1)
4. From browser: Create contributor data file (CDF) using the url http://<HOST>:<PORT>/cs/resources/wcm/custom/sitestudio/contentwizard/webcenter/contentwizard.hcsp
(Make note of the folder this file is checked-in to. This will be required in step 8).
5. Create Content Presenter Template from JDeveoper and import Content Presenter Template into Spaces (uploaded file can be used to import)
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:af="http://xmlns.oracle.com/adf/faces/rich" xmlns:dt="http://xmlns.oracle.com/webcenter/content/templates" xmlns:f="http://java.sun.com/jsf/core" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:adfp="http://xmlns.oracle.com/adf/faces/portlet" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:tr="http://myfaces.apache.org/trinidad">
<dt:contentTemplateDef var="node">
<af:outputText value="#{node.propertyMap['PLAINREGION:body1'].asTextHtml}"
id="ot1"/>
</dt:contentTemplateDef>
</jsp:root>
6. Create Space/Page in WebCenter Spaces.
7. Add Content Presenter task flow.
8. Edit task flow
- Select Single Item content and select the Contributor Data File created above in step 4)
- Template: Select the template imported above (step 5)
9. Save and view page. The data is displayed correctly.
10. Change Contributor Data File using http://<HOST>:<PORT>/cs/resources/wcm/custom/sitestudio/contentwizard/webcenter/contentwizard.hcsp
(with coherence configured for 1 min cache expiry). New content displayed after 1 min.
For cohenence configuration, refer
http://docs.oracle.com/cd/E28280_01/webcenter.1111/e12405/wcadm_documents.htm#WCADM6824
Oracle® Fusion Middleware Administrator's Guide for Oracle WebCenter Portal
11g Release 1 (11.1.1.7.0)
Part Number E12405-19
11.8.3 Modifying Cache Settings for Content Presenter
The Problem
------------
1. In Site Studio, create another element, plain text, name: plaintext2
2. In Site Studio, edit region, add new element to region.
Name: body2 (mapped to plaintext2)
3. From Spaces Administration, edit and change Content Presenter Template to display new element:
Add
<af:outputText value="#{node.propertyMap['PLAINREGION:body2'].asTextHtml}" id="ot2"/>
4. Edit contributor Data File using http://machine:16200/cs/resources/wcm/custom/sitestudio/contentwizard/webcenter/contentwizard.hcsp
Add new data for body2
5. Back to the Spaces page which has Content Presenter task flow. Notice the new data is not displayed.
6. Restart Spaces managed server. Now the new data is displayed.
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |