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

Similar Messages

  • 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

  • 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?

  • 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 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

  • 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

  • Oracle content presenter template for a flash banner with onclick property

    Hi all,
    I m using webcenter portal applicaiton which a banner on my home page.On click of the flash banner, we navigate it to a specific page in my applicaion(i.e on my application resides a page called test, if i click my flash banner it will navigate to that speicific page.
    My application connects with oracle content server(ucm) to fetch the content.
    Now i tried to fetch the flash banner from Oracle Content server. When i fetch the banner from ucm by cmf:renderproperty using a content presenter template, the flash banner is not navigating to the test page as it did early.
    It takes the path from ucm(like http://xxx:16200/cs/public/do...). I tried using af:inlineframe but still getting the same path like http://xxx:16200/cs/public/doc...)
    Kindly help me out.
    Thanks
    S. Muthukumaran

    Hi All,
    Any update on this?
    Thanks

  • Image not rendering when using Content Presenter Template

    I have checked in an image in UCM with security group as "Public" and in the content presenter template I have the following code to display image:
    <af:outputText value="#{node.propertyMap['TESTREGDEF:Image'].asTextHtml}" id="image5"
    escape="false"/>
    The image does not render on the page and it displays as a broken Image.I tried to print the value of the image URL and it is:
    <img src="${wcmUrl('rendition','xyz/web')} " alt = "Logo">
    Am I doing anything wrong?
    Thanks,
    Swathi Patnam
    Edited by: Swathi Patnam on Jul 12, 2012 5:24 PM

    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

  • 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.

  • Custom content presenter

    hello ,
    i create and upload custom content on webcenter spaces , this presenter must display images under folder and the CollectionID for each image ,
    what i used is :
    <af:outputText value="#{node.propertyMap['dCollectionID'].value}"/>
    but no result return , can you help me to let CollectionID appear ??

    Isn't xCollectionID the field name you are looking for?
    This might be helpful:
    http://docs.oracle.com/cd/E23943_01/webcenter.1111/e10148/jpsdg_content_presenter.htm#CHDCEJII

  • Content presenter task flow max results 500

    I'm using content presenter task flow in webcenter and got the following exception:
    oracle.webcenter.doclib.internal.model.presenter.conf.PresenterConfigurationException: Dec 12, 2012 2:30:00 PM oracle.webcenter.doclib.internal.model.presenter.conf.PresenterConfigurationException asError
    ALL: Maximum results (current:1,000) must be an integer between 1 and 500.

    Thanks for the reply, but this exception happens when the search exceeds 500 records.
    CMIS query
    in pageDef <parameter id="maxResults" value="${'1000'}"/>
    It is in the config.cfg file that I place value?
    Edited by: 976539 on 14/12/2012 10:57

  • Gallery Poster template gives fabulous results

    I have been playing around with Pages 2 for the past couple of weeks, for the most part somewhat frustrated with the deceptively simple interface that depends on a lot of "tricks" to getting to various functions--this has sent me to the manual a lot. I never used my Pages 1 very much at all (I mainly got frustrated dealing with text overflowing the pages and producing weird page breaks), and was hoping Pages 2 would be a little more useful.
    On short notice this weekend, I was faced with coming up with some decor for a booth at a horse show. I decided to try the large Gallery Poster template since it looked pretty simple. I increased the size of the layout to Super B (tabloid) paper (the biggest my HP business class printer can handle) and proportionally increased the size of the photo and text, and "picked up" the colors for the text from the darker colors in the horse pictures.
    I was blown away with the results coming out of the printer. These posters take just minutes to lay out, and look like something from a professional design house.
    The new templates alone were worth the upgrade.

    Hullo Anne;
    The templates do somewhat explore the true potential of Pages. However, besides producing results, they can also give you insight into what the program can really do.
    By all means try ringing variants on the templates you care to use; but by no means underestimate what you can do beginning with the blank one.
    Pages represents a new generation of creation and presentation software.
    Remember this, and also its practically limitless "undo" facility, and you can freely experiment to discover what it can do for you.
    If you tie yourself in knots, in the process, remember there is always this forum, in which others are embarked on the selfsame process of exploring its potential - and navigating its shallows!
    Regards.

  • DataTable of List T gives empty results

    Logs in tomcat shows that getList() in Beatles indeed logs the text of a List to tomcat, and, because it's a List<Beatles>, it must be "correct" in its model. Is there some reason why a DataTable wouldn't display such a List<Beatles>? The resulting view is just an empty table :(
    login@dtc01l0471-05:~$
    login@dtc01l0471-05:~$ nl NetBeansProjects/A00720398/src/java/managedBeans/Beatles.java
         1     /*
         2      * To change this template, choose Tools | Templates
         3      * and open the template in the editor.
         4      */
         5     package managedBeans;
         6     /**
         7      *
         8      * @author
         9      */
        10     import database.ParametersEnum;
        11     import java.util.ArrayList;
        12     import java.util.List;
        13     import java.util.logging.Level;
        14     import java.util.logging.Logger;
        15     import javax.faces.bean.ManagedBean;
        16     import javax.faces.bean.SessionScoped;
        17     import javax.faces.context.FacesContext;
        18     import javax.servlet.ServletContext;
        19     /**
        20      *
        21      * @author a00720398
        22      */
        23     @ManagedBean(name = "beatles")
        24     @SessionScoped
        25     public class Beatles<Beatle> {
        26         //public static final Beatles INSTANCE = new Beatles();
        27         private static Logger logger = Logger.getLogger(managedBeans.Beatles.class.getName());
        28         private List<Beatle> list = new ArrayList<Beatle>();
        29         private ParametersEnum initParams() {
        30             FacesContext fctx = FacesContext.getCurrentInstance();
        31             ServletContext servletContext = (ServletContext) fctx.getExternalContext().getContext();
        32             ParametersEnum mp = ParametersEnum.INSTANCE;
        33             mp.initializeDB(servletContext);
        34             return mp;
        35         }
        36         public Beatles() {
        37             logger.log(Level.INFO, "Beatles...");
        38             BeatlesOperations beatlesOperations = BeatlesOperations.getInstance();
        39             list = (List<Beatle>) beatlesOperations.populateBeatles(initParams());
        40         }
        41         public List<Beatle> getList() {
        42             logger.log(Level.INFO,  list.toString());
        43             return list;
        44         }
        45         public void setList(List<Beatle> list) {
        46             this.list = list;
        47         }
        48     }
    login@dtc01l0471-05:~$
    login@dtc01l0471-05:~$ nl NetBeansProjects/A00720398/src/java/managedBeans/Beatle.java
         1     /*
         2      * To change this template, choose Tools | Templates
         3      * and open the template in the editor.
         4      */
         5     package managedBeans;
         6     import data.AbstractDataType;
         7     import java.util.List;
         8     import java.util.logging.Level;
         9     import java.util.logging.Logger;
        10     import javax.faces.bean.ManagedBean;
        11     import javax.faces.bean.SessionScoped;
        12     /**
        13      *
        14      * @author
        15      */
        16     @ManagedBean(name = "beatle")
        17     @SessionScoped
        18     public class Beatle extends AbstractDataType {
        19         private int id;
        20         private String code, artist, title, year, time, total, label, comments;
        21         private static Logger logger = Logger.getLogger(managedBeans.Beatle.class.getName());
        22         /** Creates a new instance of Beatle */
        23         public Beatle() {
        24             logger.log(Level.INFO, "new beatle");
        25         }
        26         @Override
        27         public void set(List<String> record) {
        28             logger.log(Level.INFO, "set beatle as\n\n" + record.toString());
        29             code = record.get(0);
        30             artist = record.get(1);
        31             title = record.get(2);
        32             year = record.get(3);
        33             time = record.get(4);
        34             total = record.get(5);
        35             label = record.get(6);
        36             comments = record.get(7);
        37         }
        38         /**
        39          * @return the id
        40          */
        41         public int getId() {
        42             return id;
        43         }
        44         /**
        45          * @param id the id to set
        46          */
        47         public void setId(int id) {
        48             this.id = id;
        49         }
        50         private int getMaxId() {
        51             return 99;
        52         }
        53         /**
        54          * @return the code
        55          */
        56         public String getCode() {
        57             return code;
        58         }
        59         /**
        60          * @param code the code to set
        61          */
        62         public void setCode(String code) {
        63             this.code = code;
        64         }
        65         /**
        66          * @return the artist
        67          */
        68         public String getArtist() {
        69             return artist;
        70         }
        71         /**
        72          * @param artist the artist to set
        73          */
        74         public void setArtist(String artist) {
        75             this.artist = artist;
        76         }
        77         /**
        78          * @return the title
        79          */
        80         public String getTitle() {
        81             return title;
        82         }
        83         /**
        84          * @param title the title to set
        85          */
        86         public void setTitle(String title) {
        87             this.title = title;
        88         }
        89         /**
        90          * @return the year
        91          */
        92         public String getYear() {
        93             return year;
        94         }
        95         /**
        96          * @param year the year to set
        97          */
        98         public void setYear(String year) {
        99             this.year = year;
       100         }
       101         /**
       102          * @return the time
       103          */
       104         public String getTime() {
       105             return time;
       106         }
       107         /**
       108          * @param time the time to set
       109          */
       110         public void setTime(String time) {
       111             this.time = time;
       112         }
       113         /**
       114          * @return the total
       115          */
       116         public String getTotal() {
       117             return total;
       118         }
       119         /**
       120          * @param total the total to set
       121          */
       122         public void setTotal(String total) {
       123             this.total = total;
       124         }
       125         /**
       126          * @return the label
       127          */
       128         public String getLabel() {
       129             return label;
       130         }
       131         /**
       132          * @param label the label to set
       133          */
       134         public void setLabel(String label) {
       135             this.label = label;
       136         }
       137         /**
       138          * @return the comments
       139          */
       140         public String getComments() {
       141             return comments;
       142         }
       143         /**
       144          * @param comments the comments to set
       145          */
       146         public void setComments(String comments) {
       147             this.comments = comments;
       148         }
       149     }
    login@dtc01l0471-05:~$

    Here are the JSF components, which, from experience, I know work with this model. I'll go back to populating the data "by hand" just play around with it, but don't see how a change in how the list is populated would matter:
    login@dtc01l0471-05:~$
    login@dtc01l0471-05:~$ nl NetBeansProjects/A00720398/web/beatles/index.xhtml
         1     <?xml version='1.0' encoding='UTF-8' ?>
         2     <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
         3     <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
         4                     template="./beatlesTemplate.xhtml">
         5        
         6         <ui:define name="top">
         7             top
         8         </ui:define>
         9         <ui:define name="content">
        10              <ui:include src="read.xhtml"/>
        11         </ui:define>
        12     </ui:composition>
    login@dtc01l0471-05:~$
    login@dtc01l0471-05:~$ nl NetBeansProjects/A00720398/web/beatles/read.xhtml
         1     <?xml version='1.0' encoding='UTF-8' ?>
         2     <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
         3     <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
         4                     xmlns:h="http://java.sun.com/jsf/html"
         5                     xmlns:f="http://java.sun.com/jsf/core"
         6                     template="./beatlesTemplate.xhtml">
         7         <ui:define name="content">
         8             <h:dataTable value="#{beatles.list}"
         9                          var="name">
        10                 <h:column>
        11                     <h:outputText value="#{beatle.title}, "/>
        12                 </h:column>
        13                 <h:column>
        14                     <h:outputText value="#{beatle.comments}"/>
        15                 </h:column>
        16             </h:dataTable>
        17         </ui:define>
        18     </ui:composition>
    login@dtc01l0471-05:~$
    login@dtc01l0471-05:~$ nl NetBeansProjects/A00720398/web/beatles/beatlesTemplate.xhtml
         1     <?xml version='1.0' encoding='UTF-8' ?>
         2     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
         3     <html xmlns="http://www.w3.org/1999/xhtml"
         4           xmlns:ui="http://java.sun.com/jsf/facelets"
         5           xmlns:h="http://java.sun.com/jsf/html">
         6        
         7         <h:head>
         8             <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
         9             <link href="./../resources/css/default.css" rel="stylesheet" type="text/css" />
        10             <link href="./../resources/css/cssLayout.css" rel="stylesheet" type="text/css" />
        11             <title>Facelets Template</title>
        12         </h:head>
        13        
        14         <h:body>
        15            
        16             <div id="top" class="top">
        17                 <ui:insert name="top">Top</ui:insert>
        18             </div>
        19            
        20             <div id="content" class="center_content">
        21                 <ui:insert name="content">Content</ui:insert>
        22             </div>
        23            
        24         </h:body>
        25        
        26     </html>
    login@dtc01l0471-05:~$ the resulting html is just an empty table:
    login@dtc01l0471-05:~$
    login@dtc01l0471-05:~$ curl http://localhost:8084/A00720398/
    <?xml version='1.0' encoding='UTF-8' ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <link href="./../resources/css/default.css" rel="stylesheet" type="text/css" />
            <link href="./../resources/css/cssLayout.css" rel="stylesheet" type="text/css" />
            <title>Facelets Template</title></head><body>
            <div id="top" class="top">
            top
            </div>
            <div id="content" class="center_content"><?xml version='1.0' encoding='UTF-8' ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <link href="./../resources/css/default.css" rel="stylesheet" type="text/css" />
            <link href="./../resources/css/cssLayout.css" rel="stylesheet" type="text/css" />
            <title>Facelets Template</title></head><body>
            <div id="top" class="top">
            top
            </div>
            <div id="content" class="center_content"><table>
    <tbody>
    <tr><td></td></tr></tbody>
    </table>
            </div></body>
    </html>
            </div></body>
    </html>login@dtc01l0471-05:~$

  • Unable to "Create Portal Resource" for content presenter templates

    Hi All,
    Using Jdeveloper 11.1.1.5, I have created a new WebCenter Portal Application and under webcenter/portalapp folder I created a "contentTemplates" folder and created a fragment page within it.I am trying to create portal resource for this fragment template but I am not seeing the option "Create Portal Resource" when I right clicked the jsff.
    I dont see the option for even for pageTemplates or pages.Am I missing anything?
    Any help appreciated.
    Thanks,
    Swathi Patnam

    Can you test pasting this code in your jsff? FYI <dt:contentListTemplateDef var="nodes"> is important when you create a portal resource.
    <?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:contentListTemplateDef var="nodes">
    <af:panelGroupLayout layout="scroll" id="nodeListPanel" valign="middle">
    <af:iterator rows="0" var="node" varStatus="iterator" value="#{nodes}">
    <dt:contentTemplate node="#{node}"
    view="mycorp.content.templates.pressrelease.listitem"
    nodesHint="#{nodes}"/>
    </af:iterator>
    </af:panelGroupLayout>
    </dt:contentListTemplateDef>
    </jsp:root>

  • How to paginate in content presenter?

    How to paginate in content presenter? I could ony put Maximum Results parameter but StartRow as in RIDC.
    http://img59.imageshack.us/img59/8104/contentpresenter.png
    Thanks,
    Edited by: lpbac on 18:41 28-02-2012

    In my opinion ,you need to develop custom content presenter template for pagination.
    Otherwise you can achieve your goals by using RIDC code with jspx.
    for developing custom content presenter template you can follow the below links.
    http://docs.oracle.com/cd/E21764_01/webcenter.1111/e10148/jpsdg_content_presenter.htm#CCHDAHGB

Maybe you are looking for

  • Grouping results in Header/Footer.

    I am working on the template below, and I want the pages to break based on the Header/Footer, not on the page breaks that I have put in. I compromised and put the Group By VP before the report header, but I really want the E.NAME and Date to be in th

  • Return material to vendor from blocked stock

    Hi! I am going to use blocked stock (s) to lock low quality material. How could I return it to vendor. Please give me document chain . We use WMS and document flow must include outbound delivery. Andrey Garsin.

  • Variable offset for calday is not working - urgent

    Dear experts, I need to create RKF on PO count by 0calday. I need PO count for last 3 cal days in columns. I have a standard variable on 0calday, characteristic type, single value, mandatory. I have created 3 RKF -having offesets:  0calday, 0calday-1

  • Move tables (some with LONG datatypes) across tablespaces in Oracle 9i

    I have a 14GB tablespace which about 3,000 tables (and only tables) in. Only 2.6GB is used so I would like to resize the tablespace to about 3GB initially. I moved the tables with "alter table <owner>.<tablename> move tablespace <tablespace>" and thi

  • Error with Active Directory Synchnorisation from Shared Services to Essbase

    Have recently installed HS9 v 9.3.1 In Shared Services i have created both native and MSAD users. Everything works fine with the native users (Planning,EAS etc...) MSAD user directory has been configured & tested -ok on Workspace. The MSAD users have