Page Template and regions.

Hello,
Is it possible to put a Messages component in a page template and then to access it from pages which are using that template and from page fragments used in those pages? If so, how?
Thanks.
Edited by: Deniz Gulmez on 03.Kas.2009 04:00

We do that by:
Having a base managed bean that we bind template component:
i.e.
private HtmlMessages messages;
public void setMessages(HtmlMessages messages) {
this.messages = messages;
public HtmlMessages getMessages() {
return messages;
then for the page or fragment managed bean we extend it from base managed bean.
then we can access messages by supper.getMessages()

Similar Messages

  • Page templates and shortcuts

    Hi all,
    I was trying to use a shortcut in the body of my page template. The shortcut runs a pl/sql function that return different html depending on various factors. However when I run the page all I get out is the name of the shortcut.
    I have it in the template as "SHORTCUTNAME" which has worked ok in the past in region templates. Is there something about page templates that disallows this functionality?

    [Not available in page templates|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b32258/bldapp.htm#CEGFCCAB]:
    >
    New shortcuts are added to the Shortcut repository and are available for use within the following locations:
    The Region Source attribute of regions defined as HTML Text (with shortcuts). See "Understanding Regions".
    Region Header and Footer Text attribute. See "Specifying a Region Header and Footer".
    Item Label attributes and Default Value attribute. See "Items".
    Region Templates attributes. See "Editing Templates".

  • Page designer show small view when using page template and cannot be run

    Dear Experts,
    I need to make some page templates.
    I have build 2 simple page templates, let say template0 & template1 which template1 using template0.
    It show no any problem until I close my Jdeveloper & reopen it.
    When I reopen template1, it show so small in designer (Jdeveloper window).
    Is there any wrong?
    I have build another template, just 1 template.
    When I used it at the first time, no any strange behavior occur.
    After ... (I don't exactly when), it give me the same view in my designer.
    Then I force to use my first tempate (template1 which used template0 inside), I cannot run my application at all.
    After wait several minutes, I found error log in my log messages.
    *#### Server Instance DefaultServer could not be started: Server Instance was terminated.*
    Above the message, I found another error messages:
    *Jun 7, 2009 5:40:19 PM ComponentMetadataHandler _error*
    WARNING: error parsing component tag in file: null/tag:xmlContent/id:dte_160d74a
    org.xml.sax.SAXParseException: <Line 69, Column 7>: XML-20100: (Fatal Error) Expected 'EOF'.
    *     at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:422)*
    Is there anyone that can help me to find out why this error occured?
    Should I raise this problem to metalink or just can post it in this forum?
    Many thanks for your supporting...
    N.B: Below I attach my template0 (AHM000.jspx) and template1 (AHM001.jspx)
    Best regards,
    Dominic Chandra
    AHM000.jspx
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:c="http://java.sun.com/jsp/jstl/core">
    <c:set var="ahmwebtemplateBundleAHM000"
    value="#{adfBundle['com.ahm.lib.view.template.AHMWebTemplateBundle']}"/>
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <af:pageTemplateDef var="attrs">
    <af:panelSplitter orientation="vertical" splitterPosition="60">
    <f:facet name="first">
    <af:decorativeBox theme="dark" topHeight="0px">
    <f:facet name="center">
    <af:panelHeader text="#{attrs.pageTitle}">
    <f:facet name="context"/>
    <f:facet name="menuBar"/>
    <f:facet name="toolbar"/>
    <f:facet name="legend">
    <af:panelGroupLayout>
    <af:outputText value="#{attrs.pageName}"/>
    <af:outputText value="#{sessionScope.userState.userName}"/>
    <f:facet name="separator">
    <af:spacer width="10" height="10"/>
    </f:facet>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="info">
    <af:statusIndicator/>
    </f:facet>
    </af:panelHeader>
    </f:facet>
    <f:facet name="top"/>
    </af:decorativeBox>
    </f:facet>
    <f:facet name="second">
    <af:panelSplitter orientation="vertical" positionedFromEnd="true"
    splitterPosition="20">
    <f:facet name="first">
    <af:decorativeBox theme="light" topHeight="0px">
    <f:facet name="center">
    <af:facetRef facetName="mainArea"/>
    </f:facet>
    <f:facet name="top"/>
    </af:decorativeBox>
    </f:facet>
    <f:facet name="second">
    <af:panelGroupLayout inlineStyle="text-align:right;">
    <af:outputText value="#{ahmwebtemplateBundleAHM000.VERSION} #{attrs.appVersion}"
    inlineStyle="color:Navy;"/>
    <af:outputText value="© 2009 PT Astra Honda Motor"
    inlineStyle="color:Navy; font-weight:bold;"/>
    <f:facet name="separator">
    <af:spacer width="10" height="10"/>
    </f:facet>
    </af:panelGroupLayout>
    </f:facet>
    </af:panelSplitter>
    </f:facet>
    </af:panelSplitter>
    <af:xmlContent>
    <component xmlns="http://xmlns.oracle.com/adf/faces/rich/component">
    <display-name>AHM000</display-name>
    <facet>
    <description>Main Area</description>
    <facet-name>mainArea</facet-name>
    </facet>
    <attribute>
    <attribute-name>pageTitle</attribute-name>
    <attribute-class>java.lang.String</attribute-class>
    <default-value>Page Title</default-value>
    <required>true</required>
    </attribute>
    <attribute>
    <attribute-name>
    pageName
    </attribute-name>
    <attribute-class>
    java.lang.String
    </attribute-class>
    <default-value>
    ahmxxyyynnnznn
    </default-value>
    <required>
    true
    </required>
    </attribute>
    <attribute>
    <attribute-name>
    appVersion
    </attribute-name>
    <attribute-class>
    java.lang.String
    </attribute-class>
    <default-value>
    1.0.0
    </default-value>
    </attribute>
    </component>
    </af:xmlContent>
    </af:pageTemplateDef>
    </jsp:root>
    AHM001.jspx
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:c="http://java.sun.com/jsp/jstl/core">
    <c:set var="ahmwebtemplateBundleAHM001"
    value="#{adfBundle['com.ahm.lib.view.template.AHMWebTemplateBundle']}"/>
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <af:pageTemplateDef var="attrs">
    <af:pageTemplate viewId="/template/AHM000.jspx">
    <f:facet name="mainArea">
    <af:panelSplitter splitterPosition="#{attrs.searchAreaPosition}">
    <f:facet name="first">
    <af:facetRef facetName="searchArea"/>
    </f:facet>
    <f:facet name="second">
    <af:panelSplitter positionedFromEnd="true"
    splitterPosition="#{attrs.infoAreaPosition}">
    <f:facet name="first">
    <af:facetRef facetName="mainArea"/>
    </f:facet>
    <f:facet name="second">
    <af:facetRef facetName="infoArea"/>
    </f:facet>
    </af:panelSplitter>
    </f:facet>
    </af:panelSplitter>
    </f:facet>
    <f:attribute name="pageTitle"
    value="#{attrs.pageTitle}"/>
    <f:attribute name="pageName" value="#{attrs.pageName}"/>
    <f:attribute name="appVersion" value="#{attrs.appVersion}"/>
    </af:pageTemplate>
    <af:xmlContent>
    <component xmlns="http://xmlns.oracle.com/adf/faces/rich/component">
    <display-name>AHM001</display-name>
    <facet>
    <description>Search Area</description>
    <facet-name>searchArea</facet-name>
    </facet>
    <facet>
    <description>Main Area</description>
    <facet-name>mainArea</facet-name>
    </facet>
    <facet>
    <description>Info Area</description>
    <facet-name>infoArea</facet-name>
    </facet>
    <attribute>
    <attribute-name>pageTitle</attribute-name>
    <attribute-class>java.lang.String</attribute-class>
    <default-value>Page Title</default-value>
    <required>true</required>
    </attribute>
    <attribute>
    <attribute-name>
    pageName
    </attribute-name>
    <attribute-class>
    java.lang.String
    </attribute-class>
    <default-value>
    ahmxxyyynnnznn
    </default-value>
    <required>
    true
    </required>
    </attribute>
    <attribute>
    <attribute-name>
    appVersion
    </attribute-name>
    <attribute-class>
    java.lang.String
    </attribute-class>
    <default-value>
    1.0.0
    </default-value>
    </attribute>
    <attribute>
    <attribute-name>
    searchAreaPosition
    </attribute-name>
    <attribute-class>
    java.lang.Integer
    </attribute-class>
    <default-value>
    200
    </default-value>
    </attribute>
    <attribute>
    <attribute-name>
    infoAreaPosition
    </attribute-name>
    <attribute-class>
    java.lang.Integer
    </attribute-class>
    <default-value>
    200
    </default-value>
    </attribute>
    </component>
    <af:decorativeBox>
    <f:facet name="center"/>
    <f:facet name="top"/>
    </af:decorativeBox>
    </af:xmlContent>
    </af:pageTemplateDef>
    </jsp:root>

    Hi...
    Thanks for asking....
    As I put in my post before, I include template0 in my template1, as seen in template1 (AHM001):
    <af:pageTemplateDef var="attrs">
    *<af:pageTemplate viewId="/template/AHM000.jspx">*
    I use AHM000 inside AHM001. I use this approach to build many template based on one basic design.
    Actually, I don't think the problem is in page template usage because as I submitted paralel to Metalink, I've already not called template0 in template1 but I copy template0's contents to template1.
    Unfortunately, page designer show small view and below error messages still occured.
    *Jun 7, 2009 10:25:20 PM ComponentMetadataHandler _error*
    WARNING: error parsing component tag in file: /AhmTestTemplate-ViewController1-context-root/template/AHM001.jspx/tag:xmlContent/id:null
    org.xml.sax.SAXParseException: <Line 115, Column 51>: XML-20100: (Fatal Error) Expected 'EOF'.
    Fortunately my application can be run already altough the error message still logged.
    Many thanks,
    Dominic C.

  • Pages templates and /Network/Library

    Pages doesn't seem to use template files in any Library folder other than a User Library. Files in neither /System/Library nor /Network/Library appear in the template chooser.
    I administer an Xserve with a shared Open Directory domain, and I have a Library folder published to network clients so that it appears in /Network/Library. Most applications seem to honor /Network/Library; for example, I have a company Fonts directory in there for font sharing.
    I assumed I'd be able to create a path like this:
    /Network/Library/Application Support/iWork/Pages/Templates/<My Templates>
    and it should show any templates saved there in the Template Chooser whenever you do File > New in Pages. However it doesn't work.
    Any ideas? Shouldn't this work?

    I have to agree with your post here. I have just tried to do the exact same thing and was suprised to find it didn't work.
    Very poor.
    I am now going to have to look at creating and distributing a templates package to all users. Talk about pain in the rear.

  • How to communicate template and region

    Hi,
    I have template which contains create and commit button and department and employee form as region.. The page extends the Template.
    How can i make use of those buttons for both the regions...
    M using jdev 11.1.2.3
    Thanks,
    Nitesh

    Hi Frank,
    I have followed this below doc
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/79-global-template-button-strategy-360139.pdf
    It is very useful..After implementing the interface, inside the create method i have used below code to create and insert new record.
    BindingContainer bindings = (BindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    OperationBinding operationBinding = (OperationBinding)bindings.getOperationBinding("CreateInsert");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty())
    FacesMessage fm = new FacesMessage(operationBinding.getErrors().get(0).toString());
    fm.setSeverity(FacesMessage.SEVERITY_ERROR);
    FacesContext context = FacesContext.getCurrentInstance();
    context.addMessage(null, fm);
    operation binding instance is throwing null pointer exception.. CreateInsert action method exist in page def file... What might be the issue,..??
    Thanks,
    nitesh

  • Arangement of Page Items and Regions

    I created an APEX page (version 4.0.1.00.03) named Request Edit with many page items for data entry of user requests. The form has a region named Request Edit that holds the data entry page items. Within the region is a region for buttons. There were two addition regions on the page below the buttons named Jobs a report region and Audit a Show/Hide region. The users do not like to scroll the page during data entry so I decided to place many page items into three new Hide/Show regions name Requestor, Recipient, and Service. I defined the regions and then moved the page items to one of the three regions Requestor, Recipient, and Service. When the page is displayed the three new regions displayed after the audit region. I wanted the new regions to display after the Request Number and before the Comments page items. I decide to change the Parent Region in the User Interface properties of the page to Request Edit for the new regions. That moved the three regions above the Audit region but after the Comments page item.
    What properties of the three new regions Requestor, Recipient, and Service will position the new regions after the Request Number and before the Comments Page items? Is it necessary to define the Parent Region in the User Interface properties of the page to Request Edit for all of the regions?
    To describe visually what I am trying to do imagine the following simplified page:
    <Create> <Save>
    Request ID: [________]
    Requestor Name: [_________]
    Recipient Name:[ __________]
    Service Type: [____________]
    Comments: [____________________]
    <Create> <Save>
    Jobs Report Region
    +Audit Region
    I defined three regions and moved the page items to them
    <Create> <Save>
    Request ID: [________]
    Comments: [____________________]
    <Create> <Save>
    +Requestor
    +Recipient
    +Service
    Jobs Report Region
    +Audit Region
    After I defined the Parent Region in the User Interface properties of the page to Request Edit it looks something like this:
    <Create> <Save>
    Request ID: [________]
    Comments: [____________________]
    +Requestor
    +Recipient
    +Service
    <Create> <Save>
    Jobs Report Region
    +Audit Region
    But I want the new regions to display between the Request ID and Comments page items.
    Thank you.

    here is how i got someting like that to work with a raoid group.
    page HTML header:
    &lt;script&gt;
    function Show_On_Radio_Value_2(pThis, pThat, pValue, pLabel){
    var rv = html_RadioValue(pThis);
    var elm = document.getElementById(pThat);
    var lbl = document.getElementById(pLabel);
    if (rv == pValue) {
    html_ShowElement(pThat);
    html_ShowElement(pLabel);
    } else {
    html_HideElement(pThat);
    html_HideElement(pLabel); }
    }&lt;/script&gt;
    REGION Footer:
    &lt;script&gt;
    Show_On_Radio_Value_2('<code>P3_ENT_APPROVAL</code>
    ','<code>P3_REJECTION_DESC</code>
    ',"Y",'L_<code>P3_REJECTION_DESC</code>
    &lt;/script&gt;
    I think thats it but it should get you in ther right direction.
    jp
    Edited by: SHONET on Nov 12, 2008 9:26 AM

  • Hi. I made a modern resume from the pages template and then made a modern letter from the templates, how do I combine the two into one PDF file in Pages? Thank you.

    Hi. I made a resume from the modern template in Pages, then I made a letter from the modern template in Pages. How do I combine the two (cover letter and resume) into one PDF file. Thanks in advance.

    Open them both in Preview.app and drag the thumbnail of one into the other,
    Peter

  • My Pages templates and files are corrupted, possibly arising from corrupted font files. What do I do?

    This coincided with 'missing files' in individual files downloaded from my iCloud. Should I un-install the software and buy it again? (I downloaded from web site and don't have original disks.)    

    Thanks, Peter. I did think of simply changing the template, but at the time all my existing files were rendered illegible, so I'd have had to change the fonts for every style in every document I used. However thanks to your help I've resolved it, enabling Cambria for all users and then I re-started the computer. The problem might have been caused by my re-installation of Office for Mac after moving everything to a new hard disk. I shall do some more work following your tip regarding encoding a document for Unicode. Thanks again.

  • How to create a page template?

    Hi!
    I need to create a page template. There are any templates and the page preview option show an overview about the region and areas these. I would like to create a based page in this template. I think that I should know:
    1 - How to create the shortcut?
    2 - How to create the page template?
    3 - How to assign a region with a page template?
    Priscila Britto

    Hi people!
    I get to resolve any items. Anything important are:
    - you can to view a structure of page template. The first you view it in the menu Shared Components >> Templates. There is a icon in the column "Preview" for the page, report and region template items. In the click on the icon you can view a template structure that should be shown in the execution.
    - You can view where will be inserted a region on the option "display point". You need to click on the icon in the right of the "display point" option;
    Well, If you pay attention in the two options you will know how to modify a template and how to create.
    Priscila Britto

  • Portal page template

    If I got a rendered portal page and I want to change just the template saving the content, how can I do it???
    My question come from the necessary of creating a print template;
    from portal rendered page with all my portlets, I need to display just the content and non the applications, so my idea is to change the template of the page and in the new one create only a region for the content and his items too.
    Anyone has got a better idea????
    Thanks

    Hi Praveen,
    do you know any internal differences between Web Dynpro Proxy Page and Default Page Template? Because I am using EP 7.0 and it is possible to add web dynpros also to the page created with Default Page Template and they seem to work fine.. The only differences I can see is the slightly different background color of embedded web dynpros and the fact that with Web Dynpro Proxy Page it is not possible for me to set the iView height type to FULL_PAGE (well, it is possible but it does not work)
    Regards,
    Tomas

  • ADF/JDev 10g - Anything comparable to page templates?

    Is there anything like 11g page templates in 10g?
    Is there no other option but to replicate common areas (headers, corp logo, copyright/legal notices) on all jspx pages?

    Hi Jang Vijay Singh,
    10g does not have this feature by default. However, you can create templates in 10g using JHeadStart tool.
    You can also check this blog, which explains something similar to page templates and see whether it fits your requirement.
    http://technology.amis.nl/blog/1709/how-adf-faces-can-do-tiles-or-sitemesh-like-push-style-templating-using-regions-with-dynamic-attributes
    regards,
    ~Krithika

  • Pasting a Pages template page on desktop to a blank page in pages document

    I write reports on a daily basis with a photo page at the end. I have recently moved from iwork to pages forced by updating OS to snow leopard. Anyway, I have created a photo page template and keep it on the desk top, however I cannot paste the completed photo page to a blank page at the end of the report. I must be missing something simple and obvious. Help

    Hi Richard
    Welcome to the forum.
    Did you mean to say you are moving from AppleWorks to Pages?
    If so you need to open the "photo page" first and then copy and paste the thumbnail of the page over into your Pages report thumbnail view.
    Otherwise you need to make clear what format the photo page is in.
    Peter

  • How to call different managed bean methods on a page template button

    Dear All,
    Use Case:
    I have a Page Template and inside this page template is a popup screen which is common to all my
    pages. My popup has OK and Cancel button only.
    My question is this, there are lots of pages that uses this template.
    How is it possible to invoke a managed bean methods dialoglistener when say for example the user clicks the OK button?
    One thing common among the pages is that they are included in some kind of a taskflow and I have configured
    a managedbean in a pageflowscope variable in each taskflow and I just wanted to pass the
    My Template
         - TaskFlow 1 (ManagedBean1.dialogListener)
         - TaskFlow 2 (ManagedBean2.dialogListener)
         - TaskFlow 3 (ManagedBean3.dialogListener)
    Each dialog listener does different things.     
    How to do this?
    JDEV 11G PS3
    Thanks

    Found my answer here... http://www.oracle.com/technetwork/developer-tools/adf/learnmore/79-global-template-button-strategy-360139.pdf
    Thanks!

  • Total number of pages/templates in all the pagegroup

    Hi,
    Is there a way to count the number of Pages/page templates and likes in all the pagegroups?
    Thanks.

    You might be able to use PORTAL.WWPOB_PAGE$ (for pages, tabs, and portal templates) and PORTAL.WWTMP_ALL_TEMPLATES (for structured, unstructured, html content layout, and html page skin templates) to get your counts of pages and templates in each page group.

  • Calling a stored workspace procedure/function in page template

    I have an unusual puzzle. I am trying to find a way to call a stored procedure or function in a page template; ie, through HTML/javascript.
    I maintain a website with several dozen applications and I currently have the page templates in all of these applications subscribed to one master template, so that changes can be made in one place and implemented across all the applications. So far, the only content I can display on every page in every application through page template subscription is static content; dynamic content (ie content generated based on data in the database) is implemented page-by-page (or application-by-application).
    I'm wondering if there is a way to call stored procedures/functions from the page template to create dynamic content (based on the :APP_USER identity, for example). htmldb_Get() doesn't seem to be helpful, because as far as I can tell it only calls on-demand application processes, not workspace procedures/functions.
    Is there any way at all that a workspace procedure/function can be called directly from the page template (eg with a javascript function of some kind)? Again, I am trying to avoid having to use any application/page-level apex entities (items, processes, etc) so that I can just put the javascript or whatever in the page template and refresh all the applications in my workspace.
    Thanks in advance!
    Jonathan Cole
    PS - I am currently using v3.1

    Just to add the owner in output :
    SCOTT@demo102> ed
    Wrote file afiedt.buf
      1  select owner, table_name, ltrim(max(sys_connect_by_path(column_name,','))
      2                     keep (dense_rank last order by position),',') as PKcolumns
      3  from
      4  (select a.owner, a.table_name, b.column_name, b.position
      5   from all_tables a, all_cons_columns b, all_constraints c
      6   where a.owner=b.owner
      7   and   a.table_name=b.table_name
      8   and   b.owner=c.owner
      9   and   b.constraint_name=c.constraint_name
    10   and   c.constraint_type='P'
    11   and   a.table_name in ('SDO_COORD_AXES','EMP'))
    12  group by owner, table_name
    13  connect by prior owner = owner and prior table_name = table_name and prior position = position - 1
    14* start with position = 1
    SCOTT@demo102> /
    OWNER                          TABLE_NAME                      PKCOLUMNS
    MDSYS                          SDO_COORD_AXES                  COORD_SYS_ID,ORDER
    SCOTT                          EMP                             EMPNO
    SCOTT@demo102> Nicolas.

Maybe you are looking for