Creating Custom Template for Oracle WebCenter Portal Problem

“the jspx document is not a valid page template or content presenter template. Recognizing the resource type as Page Style” 

I got this problem when I decided to created my on custom template for my portal application. But it is very simple issue. To resolve it
we need a “content” facet for our template and its reference. So open your template in source view and add

     “<facet>

          <description>Facet for content</description>
          <facet-name>content</facet-name>
        </facet>
    “
under    <af:xmlContent> tag.
Now add “<af:facetRef facetName=”content”/>” in anywhere in your template source i.e after <af:xmlContent> closing tag.

your code may look like this.


       ” <af:pageTemplateDef var=”attrs”>

    <af:xmlContent>
      <component xmlns=”http://xmlns.oracle.com/adf/faces/rich/component”>
        <display-name>MyTestTemplate</display-name>
        <facet>
          <description>Facet for content</description>
          <facet-name>content</facet-name>
        </facet>
      </component>
    </af:xmlContent>
    <af:facetRef facetName=”content”/>
  </af:pageTemplateDef>”

Posted

in

,

by

Tags: