Content Presenter - Custom templates

Hi,
I am using Content Presenter to render the contents stored in UCM 11g, and trying to use the Custom Template.
following steps were done:
1) created a very simple jsff file having following contents:
<?xml version = '1.0'?>
<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">
<dt:contentTemplateDef var="node">
<af:outputText value="#{node.name}" id="ot1"/>
</dt:contentTemplateDef>
</jsp:root>
2) Saved the jsff file in the location : /oracle/webcenter/content/templates/newsitem.jsff of the application
3) updated the template-registry.xml of my application with the following:
<view id="oracle.webcenter.content.templates.newsitem">
<name bundleKey="NEWS_ITEM">
News Item View
</name>
<description bundleKey="NEWS_ITEM">
Displays any single content item, Sample news item
</description>
<template-def>
/oracle/webcenter/content/templates/newsitem.jsff
</template-def>
</view>
4) Use the Content Presenter will all other details and update the "Template View" parameter with : 'oracle.webcenter.content.templates.newsitem'
However, it throws the following exception: pls help
<AbstractTemplateTag><include(PageContext pageContext, String viewId)> Error processing the display template include for template viewID /oracle/webcenter/content/templates/newsitem.jsff located at /oracle/webcenter/content/templates/newsitem.jsff
javax.servlet.jsp.JspException: Sep 14, 2010 11:59:01 AM oracle.webcenter.content.internal.view.template.AbstractTemplateTag include
ALL: Error processing the display template include for template viewID /oracle/webcenter/content/templates/newsitem.jsff located at /oracle/webcenter/content/templates/newsitem.jsff
     at oracle.webcenter.content.internal.view.template.AbstractTemplateTag.include(AbstractTemplateTag.java:107)
     at oracle.webcenter.content.internal.view.template.AbstractTemplateTag.doEndTag(AbstractTemplateTag.java:65)
     at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:62)
     at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
     at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
     at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
     at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
     at oracle.jsp.runtime.tree.OracleJspNode.execute(OracleJspNode.java:76)
     at oracle.jsp.runtimev2.ShortCutServlet._jspService(ShortCutServlet.java:88)
     at oracle.jsp.runtime.OracleJspBase.service(OracleJspBase.java:29)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:423)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:729)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:653)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
thanks,
Ravi

Are you trying to create a custom template for content presenter?
If so, the directions for PS3 are here:
http://download.oracle.com/docs/cd/E17904_01/webcenter.1111/e10148/jpsdg_content_presenter.htm#CHDIGDED
I think that the manual updating of templates-registry, described in previous releases here:
http://download.oracle.com/docs/cd/E15523_01/webcenter.1111/e10148/jpsdg_content.htm#CJABEDIH
is no longer needed.

Similar Messages

  • Supported UCM content types by custom content presenter display template

    Hi,
    custom content presenter display template can only be applied to a Site Studio file? Or the UCM content item type to which the template can be applied can be of different types (says for example an UCM folios or a custom XML file)?
    I would like to use the Content presenter in order to customize the presentation of a custom XML file stored on UCM...but as far as I understood I can't do it...I'm correct?
    I hope I was clear.
    Thanks in advance.
    Best regards,
    S.

    In my scenario, I've a strong requirements in the user interface usability the customer should have in order to perform data entry (it generates the data that made up the XML I'll check-in in UCM): the UI should be more friendly than SS Contributor provides (for example I'll plan to implement it as an ADF page). I've also specifications on the presentation layout.
    If I correctly understood, you're suggesting to store in UCM not my custom XML file, but instead a Site Studio data file containing the "same" XML content?
    If yes, can I perform the SS data file check-in not using SS Contributor but instead a custom ADF based page? If yes, how can address this?
    Thanks a lot.
    Best regards,
    S.

  • How to display embedded image & text in content presenter web template

    We have a requirement to display both text and embedded image together like in WYSIWYG editor in Webcenter spaces. The content has to be dynamic and is context sensitive so that users in the same role can edit and publish the content. The users who are in different role would see different piece of content.
    To achieve this use case, i think Content Presenter enabled with Site studio is the best choice. I have created element and region definitions with WYSIWYG and region templates in site studio. Created contributor data file in UCM. Content Presenter in webcenter is configured with that region definition and the region template etc.
    At design time, the contributor data file is edited and some image / text is added in WYSIWYG editor.. But however at runtime view, i could see only the text added in WYSIWYG editor and the file name of the image embedded....Any one successfully used Content Presenter with Site studio???
    Regards
    Prasath.C

    Hi
    I'm using the site studio tags in jdev. My code is the following one and I have the same result I see the the html tags instead a formatted text.
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:dt="http://xmlns.oracle.com/webcenter/content/templates"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:trh="http://myfaces.apache.org/trinidad/html">
    <dt:contentTemplateDef var="node">
    <af:panelGroupLayout layout="vertical" id="pgl3">
    <af:panelGroupLayout layout="horizontal" valign="top" inlineStyle="background-color:#FFF; padding:10px;" id="pgl4">
    <af:spacer width="10px;" id="s1" inlineStyle="background-color:#DDD; color:white;"/>
    <af:panelGroupLayout layout="vertical" id="pgl1" valign="top">
    <af:outputText value="#{node.propertyMap['RD_RICH_TEXT:text1'].asTextHtml}"
    id="ot2" styleClass="bodytext"/>
    </af:panelGroupLayout>
    </af:panelGroupLayout>
    </af:panelGroupLayout>
    </dt:contentTemplateDef>
    </jsp:root>

  • Displaying img from content server thr' content presenter display templates

    Hi,
    I have created a static list element definition which contains three elements i.e. plaintext, image and WYSIWYG.
    I have accessed the plaintext and WYSIWYG elements on Content presenter template using
    <af:iterator var="items" value="#{node.propertyMap['ARTICLE_RGD:chapters'].nestedProperties}">
    <af:outputText id="ot1" value='#{items[0].value}'/>
    <af:outputText id="ot3" value="#{items[2].value}"/>
    </af:iterator>
    But may i know how to access the image element on the static list. I tried this with <af:image> tag
    <af:image styleClass="test" source="#{items[1].url}" shortDesc="Test" id="idtest" inlineStyle="float:left;"/>
    As the source tag of af:image tag requires an uri, and as we are passing the url, the image is not getting rendered.
    As there is no uri property on the node attribute, Kindly help to fetch the image element from CS.
    Not only in static list, may i know how to render the image element in adf from CS
    Thanks
    S. Muthukumaran

    Hi,
    I have created a static list element definition which contains three elements i.e. plaintext, image and WYSIWYG.
    I have accessed the plaintext and WYSIWYG elements on Content presenter template using
    <af:iterator var="items" value="#{node.propertyMap['ARTICLE_RGD:chapters'].nestedProperties}">
    <af:outputText id="ot1" value='#{items[0].value}'/>
    <af:outputText id="ot3" value="#{items[2].value}"/>
    </af:iterator>
    But may i know how to access the image element on the static list. I tried this with <af:image> tag
    <af:image styleClass="test" source="#{items[1].url}" shortDesc="Test" id="idtest" inlineStyle="float:left;"/>
    As the source tag of af:image tag requires an uri, and as we are passing the url, the image is not getting rendered.
    As there is no uri property on the node attribute, Kindly help to fetch the image element from CS.
    Not only in static list, may i know how to render the image element in adf from CS
    Thanks
    S. Muthukumaran

  • Content presenter with templates - images wont render

    Hey
    First, apologies for re-posting this. There seems to have been an issue with the forum, and I think my original post got caught up in that...
    I have created a region definition in Site Studio that uses 2 elements - plain text and an image. In JDev, I have a page with Content Presenter, and am using a Content Template to format the content. I can create the Content Item ok, adding text and an Image (that was checked into the Content Server).
    If my template displays only the text, it renders ok. However, when I include the image in the Content Template and run the application, I am getting a red X (broken link). At this stage I am an unauthenticated user. Here's a what I am using for the image in the template:
    <af:outputText value="#{node.propertyMap['RD_RGLFORM:image'].value}" id="ot4" escape="false"/>
    When I have a look at the source, I can see the <img tag with a src pointing to a file in the Content Server. If I try to use this URL, I am challenged for credentials. So obviously, the page cannot load the image because it doesn't have the credentials to the UCM.
    So, is it possible to render images to unauthenticated users? Am I doing it wrong?
    Any help is much appreciated!
    Cheers,
    Alec

    I am emarrased t say that I have figured it out.
    A colleague helped me realise that the security of the image was set to Secure - i.e. not Public. Hence, it was not available from the outside world without Authentication.
    I changed t to Public and hey-presto.

  • Content Presenter with template - Images wont render

    Hey
    I have created a region definition in Site Studio that uses 2 elements - plain text and an image. In JDev, I have a page with Content Presenter, and am using a Content Template to format the content. I can create the Content Item ok, adding text and an Image (that was checked into the Content Server).
    If my template displays only the text, it renders ok. However, when I include the image in the Content Template and run the application, I am getting a red X (broken link). At this stage I am an unauthenticated user. Here's a what I am using for the image in the template:
    *<af:outputText value="#{node.propertyMap['RD_RGLFORM:image'].value}" id="ot4" escape="false"/>*
    When I have a look at the source, I can see the <img tag with a src pointing to a file in the Content Server. If I try to use this URL, I am challenged for credentials. So obviously, the page cannot load the image because it doesn't have the credentials to the UCM.
    So, is it possible to render images to unauthenticated users? Am I doing it wrong?
    Any help is much appreciated!
    Cheers,
    Alec

    This question deals with WebCenter Portal. It should be posted to the WebCenter Portal forum, not the WebLogic Portal forum.
    Brad

  • Custom Content Presenter Template gives Empty result

    Hi All,
    I am Using Jdev 11.1.1.6 and am trying to display UCM content via a custom template using content presenter.
    I have a page with the following:
    <af:region value="#{bindings.doclibcontentpresenter1.regionModel}" id="r1"/>
    The bindings for the content presenter taskflow:
    <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="${'photo'}"/>
            <parameter id="datasourceType" value="${'dsTypeQueryExpression'}"/>
            <parameter id="datasource"
                       value="#{backingBeanScope.NewsBean.photoContentQuery}"/>
            <parameter id="templateCategory" value="${''}"/>
            <parameter id="templateView" value="${'templates.photos.list'}"/>
            <parameter id="regionTemplate" value="${false}"/>
          </parameters>
    </taskFlow>
    And the photoContentQuery bean method return result of the Query i.e  SELECT * FROM ora:t:IDC:GlobalProfile WHERE ora:p:xRegionDefinition = 'PHOTO_REG_DEF' AND ora:p:xArchiveFlag<>'No' ")
    I have a fragment with the portal resource attributes set as:
    Category name = Default Templates
    Category ID = oracle.webcenter.content.templates.default.category
    Category Default View = true
    View ID = templates.photos.list
    The above fragment has this code: I also made this fragment has portal resource.
    <dt:contentListTemplateDef var="nodes">
            <af:panelGroupLayout id="pnlContainer" layout="vertical"
                                 >
                <af:iterator id="pagList" value="#{nodes}" var="node" >
                    <af:panelGroupLayout layout="horizontal" rendered="false">
                    </af:panelGroupLayout>
                        <af:panelGroupLayout id="pnlContent" layout="vertical">
                         <dt:contentTemplate node="#{node}"
                              view="template.photo"
                                nodesHint="#{nodes}"/>
                    </af:panelGroupLayout>
                </af:iterator>
                </af:panelGroupLayout>
      </dt:contentListTemplateDef>
    and
    <dt:contentTemplate node="#{node}"
                              view="template.photo"
                                nodesHint="#{nodes}"/>  this is another pagefragment contains the following code.
    <dt:contentTemplateDef var="node">
        <af:panelGroupLayout id="pgl2">
          <af:panelGroupLayout id="pgl1" layout="vertical" styleClass="photoImg">
            <af:outputText value="#{node.propertyMap['PHOTO_REG_DEF:PHOTO'].asTextHtml}"
                           id="ot1" escape="false"/>
          </af:panelGroupLayout>
        </af:panelGroupLayout>
      </dt:contentTemplateDef>
    When I run my project on the Integrated WebLogic Server and when I click on my page, the data is coming empty.
    When I see the Administrator console, this content presenter template is in Hidden by default. I just edit the template and made it availabe. But still am unable to get result in the required template.
    On my page, if I do not specify the  <parameter id="templateView" value="${'templates.photos.list'}"/>, then I will get the result with default content presenter template.
    Could any one please help me out?
    Thanks
    Kotresh

    Hi,
    I am able to get the result with required custom content presenter template. But every time when I run the project , I need to explicitly need to make it "show" my custom content presenter display template i.e. in the Administration console, initially it is in Hidden state, I need to edit and make it show.
    I already made this template as portal resource  but why it is still be in Hidden state. what extra step do I need to make in order to move it to "show" state?
    Thanks
    Kotresh

  • Custom content presenter template - multiple items

    I am having an issue with using custom content presenter template...
    Here are the steps I took:
    *1. I created a single item display template veventItem_CP.jsff*
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:dt="http://xmlns.oracle.com/webcenter/content/templates"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <dt:contentTemplateDef var="node">
        <af:panelGroupLayout id="pgl1" layout="vertical">
          <af:outputText value="#{node.propertyMap['dDocTitle'].value}" id="ot1"/>
        </af:panelGroupLayout>
      </dt:contentTemplateDef>
    </jsp:root>
    and create a portal resource:
    Content Repository Name: UCM
    Content Type: IDC:Profile:Event
    Content Type Default View: true
    View ID: veventItem_CP
    *2. I created multiple item display template veventsList_CP.jsff*
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:dt="http://xmlns.oracle.com/webcenter/content/templates"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <dt:contentListTemplateDef var="nodes" >
        <af:panelGroupLayout id="nodeListPanel" halign="left" layout="vertical" valign="middle" inlineStyle="text-align:left;">
          <af:iterator rows="0" id="i1" var="node" value="#{nodes}" varStatus="iterator"  >
              <af:commandLink text="#{node.propertyMap['dDocTitle'].value}" id="cl1"/>
              <dt:contentTemplate id="listitem" node="#{node}"
                    view="veventItem_CP"
                    nodesHint="#{node}"/>
          </af:iterator>
        </af:panelGroupLayout>
      </dt:contentListTemplateDef>
    </jsp:root>
    and create a Portal Resource:
    Category Name: events
    Category ID: *
    Category Default View: true
    View ID: veventsList_CP
    *3. I drag and drop a folder from my UCM connection onto home.jspx and enter the following parameters into the binding:*
        <taskFlow id="eventsContentPresenter"
                  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="${'cd6c7cd6-2c74-4e6c-a711-a748d9abd0d8'}"/>
            <parameter id="datasourceType" value="${'dsTypeFolderContents'}"/>
            <parameter id="datasource"
                       value="${'AcqUCM#dCollectionID:133054394311000404'}"/>
            <parameter id="templateCategory" value="${'events'}"/>
            <parameter id="templateView" value="${''}"/>
            <parameter id="regionTemplate" value="${'false'}"/>
            <parameter id="maxResults" value="${''}"/>
          </parameters>
        </taskFlow> Then when I deploy the code the error I get is:
    <TemplateRegistry> <getListTemplateViewId()> No default template view specified for category id 'events'. Returning the default view for the default category.

    Hey Yannick,
    I think you are mistaken...
    I am using a contentListTemplate, and in the developer's guide it says to use the templateCategory for multiple-item content presenter templates. When I do what you suggested, my veventsList_CP doesn't work and the ADF default tempalte is used.
    I accomplished what I needed to accomplish on the home page by re-writing my veventsList_CP to not use the nested template:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:dt="http://xmlns.oracle.com/webcenter/content/templates"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:f="http://java.sun.com/jsf/core">
      <dt:contentListTemplateDef var="nodes" >
        <af:panelGroupLayout id="nodeListPanel" halign="left" layout="vertical" valign="middle" inlineStyle="text-align:left;">
          <af:iterator rows="0" id="i1" var="node" value="#{nodes}" varStatus="iterator"  >
            <af:panelGroupLayout id="pgl1" layout="vertical"
                                 inlineStyle="padding-left:10px; padding-top:10px;">
              <af:commandLink text="#{node.propertyMap['dDocTitle'].value}" id="cl1"
                              inlineStyle="font-size:small; font-weight:bold;"/>
              <af:outputText value="#{upcomingEventsBean.dates}"
                             id="ot2"/>
            </af:panelGroupLayout>
          </af:iterator>
        </af:panelGroupLayout>
      </dt:contentListTemplateDef>
    </jsp:root>
    Now I need to make the commandLink direct to a content presenter display template that shows all of the event's metadata. I've done this before by using the default navigation model, but never programmatically. I will give it a try and report how it goes.
    Edited by: ilovebuffets on Sep 19, 2011 11:42 AM

  • OWC PS5 - Content Presenter - Search functionality in custom list template

    We have created a custom list template for displaying the contents and use this custom list template in the content presenter task flow.
    We would need to implement Search functionality in the custom template.
    Any pointers on how to achieve this?
    Thanks,
    Navaneeth

    Sorry to see that this post hasn't had a response from the search team for so long.
    1 Search will not find content in portlets (for instance page portlets).
    That is correct. The content of portlets may be different for each user so indexing this content can provide misleading results. However, if you only need to index public content, Oracle Ultrasearch can be used to index all portal content, including that displayed through portlets.
    2 If Search Results Type in a custom search portlet is set to Pages, the search will be made in page display name, page keywords and page description. It will not search for item content.
    Searching for pages checks the following pieces of metadata:
    page name & display name
    keywords
    description
    all custom text attributes associated with the page type
    all custom url attributes associated with the page type
    all custom file attributes associated with the page type
    Items will not be searched but again, its possible to index the entire page using Ultrasearch.
    3 It is not possible to search for items but get found item's page links as results.
    This is incorrect. The custom search portlet allows the administrator to select the attributes that should be displayed from the search portlet's "edit-defaults" screens. From here, its possible to select the "page" attribute to be displayed with the search results. This means that you can search for items and then click on a link to go to the page on which the item resides.
    Various improvements have been made for 9.0.4, including better control over the display of page results.

  • Creating a customized template for Content Presenter

    Hi people,
    I created a new template for content presenter, I created a jsff file and add a entry in
    <jdev_projects>\Application1\mds\oracle\webcenter\content\templates\registry\templates-registry.xml
    This is my entry:
    <view id="mycorp.content.templates.pressrelease.listitem">
    <name>
    Marketing Press Releases
    </name>
    <description>
    This is a view of Marketing Department Press Releases
    </description>
    <template-def>
    /oracle/webcenter/content/templates/template1.jsff
    </template-def>
    </view>
    But isn't working, I don't know where I need put my template1.jsff, I've tried in mds folder, in WebContent Folder, at same folder that templates-registry.xml but nothing works,
    Someone knows where I need put this file and how can I set <template-def>?
    Thks in advance

    Hi people,
    I have already the answer,
    In <template-def> if you use "/"(forward slash) so you're in root context app (http://<host>:<port>//<app>/you're here)
    Thks anyway,

  • How to display all value of metadata from nodes collection model in content presenter template

    Hi All,
    first of all the new look of OTN is great.
    coming to problem i am facing (i dont know whr to ask here or in portal forum).
    i am creating a content presenter template to display list of items.
    now as per requirement i need to create a drop down to filter the list.
    now while check- in a file author would choose a value in one metadata field lets say xCategory(which is a single select list).
    i have to display similar category list on portal to allow user to filter list.
    i could hv used view of xCategory but problem is files are targeted to role using ACL. so u see i cant display all category to all users.
    also customer wants this whole thing to be Dynamic i.e. they can add value of xCategory later that to could be only for specific role (on portal it should be role specific , author can see whole list not a problem there).
    so what i think is if content is given as search result so the category. so now if i can get the all xCategory metedata from 'nodes' collection model in template i can create drop down with out having any additional bean.
    somthing like this
    #{nodes.xCategory} (but this one is not correct).
    please suggest me any solution.
    thanks
    -somesh

    Hi,
    you can do all of what you said with JSF. ADF Faces provides drag and drop functionality (have a look at the Web Developer Guide) that allow you to move nodes within a tree. The drag and drop framework sends an event notification to the server with a reference to the changed node.You can also have context menus on a tree node to help users creating, deleting and editing a tree nodes. JavaScript isn't required at all, even if you wanted to drag and drop a row in a table on top of a tree node to create a new tree node.
    I just finished a book project in which we explained this usecase. As soon as I find the time, I'll follow up with a blog entry on this as it seems to be a common requirement. However, as mentioned, the web developer guide on OTN explains drag and drop in ADF Faces pretty well.
    However, if you choose the "Search" link above, choose JDeveloper and ADF as the product to search for and type drag and drop as the search string, then you get lots of code sample posted in the past to this forum
    Frank

  • Passing dynamic content to a Document viewer in a Content Presenter Templat

    Hi, This problem is probably for Yannick. Our customer has a bunch of documents in UCM. They want to be able to put links to these documents in their Navigation Model (Webcenter Spaces App) which bring up the document as content inside a page, i.e. inside a Document Viewer that is the content area of the page. In their last portal, they did this by creating a page for every document because the Document Viewer in Spaces requires an itemId to a specific document.
    We need to create a single page and pass the URL or UCM Content Id to the Document Viewer that is the content area of the page. I tried creating a custom Content Presenter Template with a Document Viewer Task Flow inside. In the Nav Model, I have added a Content Item with the path to the doc in UCM. but it doesn't work. I even went into my CP Template and hard coded the resource Id parameter of the DV Task Flow but nothing comes up.
    If I add a document in Spaces to the page, I add it in a Document Viewer and the "Item Id" is set automatically. Then it works. But I NEED to be able to do this dynamically to avoid tons of separate pages, one per document.
    Please help. Thanks, Gary Kind

    I was able to get it to partially work by using a link item in the navigation model. As URL parameter 'docId', I put the UCM resource ID, e.g. ucm_conn#dDocName:UCM_CLUSTER-000027. In the destination page, I have a Document Viewer Task Flow whose resourceId input parameter I set to #{param.docId}. This works in that the Document Viewer appears nicely and has the correct path/breadcrumbs. I can display the document in a browser from the View menu item. I can download it from the download menu. However the actual file contents do not show up. In the center where they should be, I get an Error-404 file not found. Why is that? It is finding the file in UCM, and I can access it other ways in the DV, but it can't find it in to put it in the Viewer area? That ain't right.
    How do I get this to work correctly?

  • Trouble creating content presenter template

    I'm trying to create a template for the content presenter that will display a table view of files in a folder.
    I tried creating a custom template based off the sample list-detailed-tabular-view.jsff that was included. but I am having trouble figuring out what my error is.
    When I export the template I can successfully upload it to webcenter but when I try to apply the template to a content presenter the page goes blank and I have to go back to administration to disable the template to get the page to load again.
    After several failed attempts I even tried copying the sample table template directly without changing any of the code but when I apply it the page still goes blank and becomes inaccessible
    This only happens when I try to create a template that calls another single template. I was able to get a template working that was for a single item, but I need to get the documents under a folder to work...
    How can I troubleshoot whats causing the error? I am new so I have a feeling I may be missing some steps when creating,exporting, or uploading the template.
    Below are the sources for the 2 templates, do I have to create anything else besides a .jsff file?
    Single Item which works by it self:
    <?xml version = '1.0'?>
    <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">
    <dt:contentTemplateDef var="node">
    <af:goImageLink text="#{node.name}"
    id="gil1" icon="#{node.primaryProperty.icon.smallIcon}"
    destination="#{node.primaryProperty.url}"
    targetFrame="_blank"
    shortDesc="#{not empty node.propertyMap['xComments'].value.stringValue ? node.propertyMap['xComments'].value.stringValue : node.primaryProperty.value.binaryValue.name}"
    rendered="#{not empty node}">
    <af:showPopupBehavior triggerType="mouseOver" popupId="::cpPopup"/>
    </af:goImageLink>
    <af:outputText id="emptyot" value="#{templateBundle.EMPTY_NODE}"
    rendered="#{empty node}"/>
    </dt:contentTemplateDef>
    </jsp:root>
    The Table Template that calls the single item (this is what seems to break the page when I activate it)
    <?xml version='1.0' encoding='utf-8'?>
    <!-- Test -->
    <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">
    <dt:contentListTemplateDef var="nodes">
    <jsp:include page="./support/miniView.jsff"/>
    <af:table rowSelection="none" columnSelection="none" columnStretching="column:c1"
    columnBandingInterval="0" rowBandingInterval="1" var="node" value="#{nodes}"
    summary="#{templateBundle.DEFAULT_TABULAR_LIST_TEMPLATE_DESC}" id="tblRslt"
    emptyText="#{templateBundle.EMPTY_NODES}" styleClass="AFStretchWidth"
    autoHeightRows="25">
    <af:column id="c1a" rowHeader="unstyled"
    headerText="#{null}"
    rendered="#{userPreferences.accessibilityMode=='screenReader'}">
    <af:outputText value="#{node.name}" id="ot1"/>
    </af:column>
    <af:column headerText="#{templateBundle.COLUMN_DOCUMENT}"
    sortable="true" align="left" minimumWidth="200"
    sortProperty="name" id="c1">
    <dt:contentTemplate node="#{node}"
    view="keith.list.item"
    nodesHint="#{nodes}" id="ct1"/>
    </af:column>
    <af:column headerText="#{templateBundle.COLUMN_MODIFIED_DATE}"
    sortProperty="modifiedDate" sortable="true" align="end"
    id="c2">
    <af:outputText value="#{node.modifiedDate}" id="ot2">
    <af:convertDateTime type="both"
    timeZone="#{generalSettings.userTimeZone}"/>
    </af:outputText>
    </af:column>
    <af:column headerText="#{templateBundle.COLUMN_MODIFIED_USERNAME}"
    sortProperty="modifiedBy" sortable="true" align="end"
    id="c3">
    <af:outputText value="#{node.modifiedBy}" id="ot3"/>
    </af:column>
    </af:table>
    </dt:contentListTemplateDef>
    </jsp:root>
    Also if anyone knows where I can find tutorials to learn how to create the templates that would be great.

    You may want to repost your question in the WebCenter Portal forum. The problem is likely not on the Content Server side.

  • Image gallery in webcenter using content presenter template

    Hi,
    I created a content presenter template for image gallery in webcenter.
    The images from UCM are not displayed without log in to the webcenter application.
    I am getting a error like
    " Error calling UCM server associated with repository UCM.  The service GET_FILE was called with user anonymous at time 3/18/15 11:12 AM, and returned statuscode -1.
    oracle.stellent.ridc.protocol.ServiceException: Unable to download 'HSCSRV154.ALLE006130'. Access denied by records manager "
    Once i log in the images are displayed.
    What is the problem here?please help.
    I am using the latest webcenter extension in jdev 11.1.1.7
    Thanks,
    chandrasekar M

    Hi Vinod,
    I tried using af:image like below and its the same issue.I have read in most of the blogs that since this is in the content presenter template, the image has to be displayed using output text with escape set to false.
    <af:image source="#{node.propertyMap['REGDEF:Image'].asTextHtml}" id="image5"/>
    I am not using <img> anywhere, its just that on the webpage when the image doesnt appear, I tried to see the source of the image using Firebug and it shows following:
    <img src="${wcmUrl('rendition','xyz/web')} " alt = "Logo">
    Edited by: Swathi Patnam on Jul 13, 2012 6:00 PM

  • Using Content Presenter inside  Page Template

    Hi all,
    I want to show content of footer from UCM, so I used Content Presenter in the Footer to do it.
    But I only can see the content when the template at the Edit mode and in the Preview Mode or normal mode I can't see anything
    Do you have any suggestion for me
    Thanks a lot!

    You can Add content preseneter and also check whether you hav put all the footer requirements in the UCM and that should be in released mode.
    After adding to the page you can choose the template summary to show in the desired view...
    here is the complete step by step process yo can go through it.
    http://docs.oracle.com/cd/E17904_01/webcenter.1111/e10149/content_cp.htm
    Regards,
    Santosh.

Maybe you are looking for

  • Turn off the SQL DB monitoring entirely in scom 2012 (SP1)

    Is there a way to centrally target and turn down monitoring of all the servers running SQL DB in SCOM 2012. We actually created groups using the OU's to target the SQL servers but some of the servers which have SQL DB are not in that OU and they are

  • Outlook Syncing

    I have lost all entries for my outlook calendar.  I still have contacts.  Is there a way to get back in sync?

  • Payment Types

    I am trying to access the Payment Types screen from HRMS Localization Seed Data Entry responsibility and getting the following error APP-PAY-07050: You cannot enter this form in USER mode. what does this mean? and how to fix it?

  • Getting Ready to Install Leopard

    Tomorrow (Thursday) I am going to install Leopard on my iMac C2D. I've been reading about possible problems that might be created from doing this. I plan on doing an Archive and Install installation. Before installing, I plan to back up a few of my i

  • Mysterious Disappearance of NIC

    My NIC disappeared mysteriously from my lenovo g560 It's not in the network adapters nor Device manager, I tried installing the driver but it wont continue because it doesn't detect the Wired Lan interface, wifi works fine but wired connection is not