Content Presenter taskflow - with dynamic content ID
Hi there,
I am using content presenter taskflow to display HTML content on my WebCenter portal page. I have create one generic page with a content presenter taskflow to display multiple generic pages with dynamically assigning the content ID. Please find below the code snippet for more information.
<taskFlow id="doclibcontentpresenter1"
taskFlowId="/oracle/webcenter/doclib/view/jsf/taskflows/presenter/contentPresenter.xml#doclib-content-presenter"
activation="deferred"
xmlns="http://xmlns.oracle.com/adf/controller/binding">
<parameters>
<parameter id="taskFlowInstId"
value="${'a18cff64-091c-4181-a21c-513c52cf112a'}"/>
<parameter id="datasourceType" value="${'dsTypeSingleNode'}"/>
<parameter id="datasource"
value="${'UCMCon#dDocName:'}${portalCommonComponents.contentIdForDetailPage}"/>
<parameter id="templateCategory" value="${''}"/>
<parameter id="templateView" value="${''}"/>
<parameter id="maxResults" value="${''}"/>
</parameters>
</taskFlow>
In the above code snippet I have added ${portalCommonComponents.contentIdForDetailPage} which will return the Content ID dynamically. The reason why I have used this approcach is that as per the requirment there are lot of detail pages.
Everything is working fine but sometimes it's throwing exception for load cache.
Please suggest is there something wrong with this approach, if so suggest me some alternative solution using single Content Presenter Taskflow to display in multiple pages by assigning content ID dynamically.
Thanks