4 Replies Latest reply: Jan 24, 2012 9:00 AM by 862808 RSS

    How to use Static List Element Definition in Content Presenter

    862808
      Hi all,

      I'm facing to a problem with the content presenter on Oracle Webcenter Portal. I've created a SSXA region definition "Article" with an element definition of static list type ( named paragraphs ) . I've created a template view that i would like to show. i can have the others definition
      of the region definition like title, subtitle but not the static list.

      I paste the template view code , the paragraphe loop to implement at in the end of the code. I've seen the "values" attribute works , but i found PropertyWrapperImpl class. if anybody have already use a static list.

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

      <dt:contentTemplateDef var="node">

      <af:panelGroupLayout id="pgl1" layout="vertical"
      styleClass="AFStrechWidth">
      <af:panelGroupLayout id="pgl2" layout="vertical"
      styleClass="AFStrechWidth">

      <!-- Article Head -->

      <af:outputText value="#{node.propertyMap['ARTICLE_RGD:Subhead'].value}" id="ot1"/>
      <af:outputText value="#{node.propertyMap['ARTICLE_RGD:Title'].value}" id="ot2"/>
      <af:outputText value="#{node.propertyMap['ARTICLE_RGD:Introduction'].value}" id="ot3"/>

      <!-- Article First paragraph -->

      <af:panelGroupLayout id="pgl5" layout="horizontal">
      <af:panelGroupLayout id="pgl3" layout="vertical"
      styleClass="articleMediaContainer">
      <af:image source="#{node.propertyMap['ARTICLE_RGD:MainVisualImage'].value}"
      id="ot" inlineStyle="width:100px;"
      styleClass="mediaContainer"/>
      <af:outputText value="#{node.propertyMap['ARTICLE_RGD:LegendImage'].asTextHtml}"
      styleClass="legendContainer" id="ot4"/>
      </af:panelGroupLayout>
      <af:panelGroupLayout id="pgl4" layout="vertical">
      <af:outputText value="#{node.propertyMap['ARTICLE_RGD:Subtitle'].asTextHtml}" id="ot6"/>
      <af:outputText escape="false"
      value="#{node.propertyMap['ARTICLE_RGD:Introduction'].asTextHtml}"
      styleClass="articleContent" id="ot5"/>
      </af:panelGroupLayout>
      </af:panelGroupLayout>

      <!-- Paragraphs view --!>

      <af:forEach var="elt" items="#{node.propertyMap['ARTICLE_RGD:Paragraphs'].values}">
      <af:outputText value="#{elt.class}"/>

      </af:forEach>

      </af:panelGroupLayout>
      </af:panelGroupLayout>

      </dt:contentTemplateDef>
      </jsp:root>


      Thanks for your answer