DynamicTabs - issues around page template attributes

Hi Richard

We are going to experiment the dynamic model available in JDev 11 g PS1 tab. I couldn't do a few things to work and decided to download the source code from Steve Muench's blog to see what is happening behind the scenes (and also available on the page-oracle - templates.jar, including JDev - I guess that they are exactly the same version):
http://blogs.Oracle.com/smuenchadf/2009/11/source_for_ps1_dynamic_tab_she.html

According to the white paper (http://www.oracle.com/technology/products/adf/patterns/11/uishell.html) and in the dynamicTabShell.jspx there is an attribute of template named "headerSplitterPosition". While I can see this defined in the page as an attribute template, it was not referenced in the page template itself, or your source code in the downloadable project. I guess it was supposed to be referenced in the panelSplitter = "pt_headerPs" splitterPosition property id?

I also note that the page of "navSplitterPosition" template attribute is defined twice (even if it is properly referenced later in the page template).

See you soon,.

CM.

Chris,

You are right in the identification of two bugs in the code that's going to drop.

# The attribute, headerSplitterPosition, is not referenced in the page template and it should have been with the panelSplitter that you have identified.
# navSplitterPosition is set twice - although as you point out, it is properly referenced later in the page template.

Tags: Java

Similar Questions

  • XmlMenuModel in the page template

    I've defined a template page with an attribute of type XMLMenuModel, for the consumer of this model must provide the menu template.

    < afc:attribute >
    < afc:attribute - name > xmlMenu < / afc:attribute - name >
    < afc:attribute - class > org.apache.myfaces.trinidad.model.XMLMenuModel < / afc:attribute - class >
    < afc: required > true < / afc: required >
    < / afc:attribute >

    < af:menuBar id = "bar menu" value = "#{attrs.xmlMenu}" var = "item" > "
    < f: facet name = "nodeStamp" >
    "< af:commandNavigationItem text =" #{item.label} "action =" #{item.doAction} ".
    ID = rendered = "#{item.rendered"cni1"} '"
    Disabled = "#{Item.Disabled}" / >
    < / f: facet >
    < / af:menuBar >

    It does not work when I provided a correct object. To ensure that I created a page with this template and copied the menu bar code in the page. The two model menu bar and directly in the page using the same model. The page works, but that of the page template does not work. It shows an empty menu bar.

    "< af:pageTemplate viewId="/WEB-INF/org/Template.jsf "id ="pt1">
    < f: facet 'content' = name >
    < af:group >
    "< af:menuBar id ="bar menu"value ="#{root_menu}"var ="item">"
    < f: facet name = "nodeStamp" >
    "< af:commandNavigationItem text =" #{item.label} "action =" #{item.doAction} "id ="cni1 ".
    rendered = "#{Item.rendered}" disabled = "#{item.disabled}" / > "
    < / f: facet >
    < / af:menuBar >
    < af:region value = "#{bindings.dummybtf1.regionModel}" id = "r1" / > "
    < / af:group >
    < / f: facet >
    "< name f: attribute ="xmlMenu"value ="#{root_menu}"/ >".
    < / af:pageTemplate >

    Any ideas?

    Thank you

    JDev 11.1.2.4

    I finally found the answer. The reason is that I have two models of pages in my project. Because I trust JDeveloper to generate the correct code, I does not change the value of property var. So it was set at uploading for two models of pages. For some reason, the page template attributes not were not passed. So to resolve the issue make sure that all your page templates have the same value of property var. always a pleasure to work with such a test framework. You get what you pay for...

  • Placement of body of page template

    Hello

    I use Apex 4.2.4 a 11.g database.

    I have an Apex report page which links to a form.  When the form of Treaty, it redirects to the report page (26).  The report page is a region that uses the model: "area reports.  Of success and failure messages are passed from the form page return to Page 26 of the report, but messages were not always display.  I was previously using a Point of view of the Template of the Page area Position '1', which has left, justified, but it covered the messages of success and failures.  After looking at the representative schema produced by the flashlight next to the area / field view Point, I realized that "Position in the area of Page Template 1" wasn't in the body and exceeded messages of success.  Therefore, I tried a few options to resolve this problem:

    I changed the point of the screen on the model Page of body (2).  The diagram of the flashlight indicates that it is in the body and not in the header and displays the messages of success over the report, which is excellent, but it puts an empty column about 100 px wide to the left of the report.

    I changed the point of the display at the Position of the template Page (2) region.  The diagram of the flashlight has indicated that it was in the body as well and left-justified.  He published the failure messages and the success of the form correctly.  The problem is that this point on the screen makes the report than about 100 px wide.

    How can I put this page / region so that my success messages from the display of the form properly on the page of the report and also have a report that takes the entire width of the page, framed on the left?  Also, a scroll bar at the bottom would be useful for wide report pages.

    Thanks a lot for watching this.

    PhilMan2 wrote:

    I use Apex 4.2.4 a 11.g database.

    I have an Apex report page which links to a form.  When the form of Treaty, it redirects to the report page (26).  The report page is a region that uses the model: "area reports.  Of success and failure messages are passed from the form page return to Page 26 of the report, but messages were not always display.  I was previously using a Point of view of the Template of the Page area Position '1', which has left, justified, but it covered the messages of success and failures.  After looking at the representative schema produced by the flashlight next to the area / field view Point, I realized that "Position in the area of Page Template 1" wasn't in the body and exceeded messages of success.  Therefore, I tried a few options to resolve this problem:

    I changed the point of the screen on the model Page of body (2).  The diagram of the flashlight indicates that it is in the body and not in the header and displays the messages of success over the report, which is excellent, but it puts an empty column about 100 px wide to the left of the report.

    I changed the point of the display at the Position of the template Page (2) region.  The diagram of the flashlight has indicated that it was in the body as well and left-justified.  He published the failure messages and the success of the form correctly.  The problem is that this point on the screen makes the report than about 100 px wide.

    How can I put this page / region so that my success messages from the display of the form properly on the page of the report and also have a report that takes the entire width of the page, framed on the left?  Also, a scroll bar at the bottom would be useful for wide report pages.

    Theme? Page template? Always include this information in the publication of a page layout or Visual formatting issue: How to get the answers from the forum

    Looks like you are using a page template with support for a sidebar on the left. Change the page to use a template with no sidebar (s) / Optional:

    Overview of the format mode isn't accurate for non-based themes on a table.

    Thanks a lot for watching this.

    It would be much easier to watch if we could actually see it on apex.oracle.com...

  • Metacontainer on the webcenter page templates

    Is it possible to include the container meta on a webcenter portal page template?

    I was looking at this subject, but so far, the only way to include the meta on the head element tags is to add the facet of container for metadata about the page inside the af:document tag styles:

    <af:document title="#{pageDocBean.title}" id="docrt">
             <f:facet name="metaContainer">
                <af:group id="metaContainer">
                   <trh:meta name="viewport"
                             content="#{'initial-scale = 1.0,maximum-scale = 1.0'}"/>
                   <trh:meta name="keywords"
                             content="#{navigationContext.defaultNavigationModel.currentSelection.attributes['Subject']}"/>
                   <trh:meta name="og:url" content="#{urlNavigation}"/>
                   <trh:meta name="og:type" content="website"/>
                   <trh:meta name="og:description" content="#{pageDocBean.desc}"/>
                   <trh:meta name="og:title"
                             content="#{urlNavigation}"/>
                   <trh:meta name="og:image"
                             content="#{serverUrl}#{'/ShowProperty?nodeId=%2F'}#{documentsService.defaultConnectionName}#{'%2F'}#{bindings.ImagenBannerHeaderID}#{'%2F%2FidcPrimaryFile&amp;revision=latestreleased'}"/>
                </af:group>
             </f:facet>
    

    Doing this works for newly created pages, but for the old pages, the only way to add metadata container is to change them one by one and add extract metacontainer.

    is it possible to add the metadata on the page templates container, so that the generated HTML code includes on <>head meta tags < / head > section? It mainly enter the keywords of Search Engine Optimization, which gets only recognized on the < head > element.

    Hello

    As mentioned that your condition is to add a key word, in this case you will have to add it into each page. model of page is applicable to each portal pages, so in this case, your goal is not resolved. Same case in the style of the page.

    Therefore, add the keyword individually to each source of the page.

    Thank you

    Amey

  • How to fix: Page Template styles do not respond to changes in CSS files in the text editor of 'Developing' Admin Console

    I bought a model site.  It has a css file, /styles/screen.css

    It also has a template page 'home' with the link to the style sheet within the < head > section:

    "< link href="/styles/screen.css "rel ="stylesheet"type =" text/css"media ="screen"> < / link >

    I am tempted to change screen.css, by editing the file in the 'Develop' administration Console and pressing the 'Save' button on the file when changes are made.

    However, the changes do not appear in the preview of the Page template.

    However, if I do a < style > section in the head <>of the page template and put the change, it displays correctly.

    It's like the Page template does not recognize changes to the screen.css.

    I press "Save draft" and "Update" before you press 'Preview' to check for changes.

    My question is how to fix the Page Template styles that do not respond to changes in CSS files in the text editor of 'Developing' administration Console.

    I am a new user of BC and I agree it is likely a result of not knowing how the css BC.

    Thanks in advance for any assistance with my issue!

    Hello

    I think that you too complicate the thinking problem that BC is a non-standard way of processing applications to a css file. This looks more like a cache or perhaps a code problem. However, I would be happy to take a look at your code and see if I can remember where is the problem. Try Skype me and screen-sharing and I'll see what I can do. It is probably fixed quickly :-) My ID:s 'noviumdesign '.

    Anton

  • How to make resources (page template, skin) visible by default

    The new page template, or skin are hidden by default. How to configure as available by default without having to define them explicitly. Basically I want the same behavior for my page template regarding the 2 page STANDARD templates that are available by default. -Thank you

    Hello.

    There is a file called credits-site - resources.xml in your portal application (look through Explorer). It will record all the resources of the portals.

    Look at your new portals resources and change visible attribute to TRUE.

    I hope it helps.

    Kind regards.

  • Create new region in the page template

    Hello

    I use Apex 4.2 with enterprise DB 11, I try to create the new zone in the page template of "application > share the component > model > page > edit page" I add #REGION_POSITION_20 # #REGION_POSITION_01 # and its added successfully, the problem is when I use this page template on my page, I see the région #REGION_POSITION_20 # added to the model , but I can't select a position for the region.

    Any suggestion

    Hani says:

    I use Apex 4.2 with enterprise DB 11, I try to create the new zone in the page template of "application > share the component > model > page > edit page" I add #REGION_POSITION_20 # #REGION_POSITION_01 # and its added successfully, the problem is when I use this page template on my page, I see the région #REGION_POSITION_20 # added to the model , but I can't select a position for the region.

    Any suggestion

    You cannot create additional region position placeholders. Why do you think that you need to do?

    Several areas can be assigned to each position in the region, the existing placeholders can be moved, regions may contain subregionsand region controlled by the attributes of the region and/or CSS page layout. These options provide more flexibility for most requirements.

  • Create a new page template

    Dear friends,
    I have a requirement to create an application with colors, logo and company standard layout.
    What is the best way to start. Should I change the Page template or model of the region.
    There are some standard .css files.

    I appreciate your help.
    Thank you.
    Satya

    >

    Please update your forum profile with a real handle instead of 'user448048 '.

    I have a requirement to create an application with colors, logo and company standard layout.
    What is the best way to start. Should I change the Page template or model of the region.

    The two and probably more.

    This is a big topic, and it is not really possible to hide in the form of a post on the forum. I'm afraid that if you ask the question in this way, you are already out of your depth...

    Develop a complete theme requires a good knowledge of HTML and CSS (and more and more JavaScript and a frame jQuery JS). It is beyond the scope of this information forum on the basics of HTML and CSS, or web and design the INTERFACE in general.

    See this classic cloning your UI with HTML DB company blog post (HTML DB was the former name of the APEX). Update to the latest versions of the APEX (you have committed the error type do not specify what version you use), as well as a few things will be different now, and there are new features that simplify or complicate the process described by Scott.

    Before going any further, you should be familiar with the documentation related to the use of themes, templates, and CSS in APEX: Oracle® Application Express Application Builder User Guide, Chapter 11: management of themes and models (may be different for your version of APEX: find the correct documentation).

    Once start you, if you have specific questions related to the inclusion in the APEX of the individual HTML, CSS, JS frameworks, or components then those are the questions there is place to ask here (after consultation of the documentation and the forum and the web previous relevant discussions and in accordance with the guidelines for research in the FAQ and sticky threads).

    With APEX, we are fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproduce things is the best way to solve most of the questions, particularly those relating to the layout and Visual formatting. If you expect a detailed response it is appropriate that you take on an important part of the effort by getting as much as possible with an example of the problem on apex.oracle.com before asking for help on the issue, we can then see firsthand.

  • How to configure the Page template to read brought beans

    Hello

    I really don't understand why my Page template cannot read the data of an extended session bean.
    <af:pageTemplateDef var="attrs">
        <af:xmlContent>
        <af:panelStretchLayout>
          <f:facet name="center">
            <af:panelHeader> 
              <af:panelStretchLayout >
                <f:facet name="top">
                  <af:panelGroupLayout>
                    <af:outputText value="#{sessionScope.myBean.title}" id="pt_ot1"/>
                  </af:panelGroupLayout>
                </f:facet>
                <f:facet name="center">
                  <af:facetRef facetName="content"/>
                </f:facet>
                
              </af:panelStretchLayout>
            </af:panelHeader>
          </f:facet>
        </af:panelStretchLayout>
      </af:pageTemplateDef>
    I specified my grain of session scope
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <managed-bean id="__6">
        <managed-bean-name id="__5">myBean</managed-bean-name>
        <managed-bean-class id="__8">MyBean</managed-bean-class>
        <managed-bean-scope id="__7">session</managed-bean-scope>
      </managed-bean>
    </adfc-config>
    .. .and my bean simply defines a simple fact...
    public class MyBean{
         public String getTitle(){
              return "This is the title";
         }
    }
    Now when I create a page that extends this model, I can't see the title in my page?

    I missed something? Or its not possible really to call beans spread in a page template?

    Help, please... Thank you

    Hello

    the source of the problem is a rookie mistake typical

    What does this do? In fact the component output text tries to find the extent of session for the myBean object and then call getTitle. However, JSf only creates an instance of a bean (and then stores it in the memory defined scope) if the call is

    So this application, session and application scope does not have a scope in the EL prefix if it is a managed bean. Controlled beans are instantiated automatically by the JSF framework if the managed bean is addressed like this

    "#{bean.attribute}".

    Exception for this in the ADF are pageFlowScope, viewScope, and backingBeanScope, which are prefixed in the instruction of EL. Why in this case a prefix works it is because these are managed by the ADF and ADF controller is configured to monitor the pageFlowScope prefixes, viewScope, and backingBeanScope

    Frank

  • How to set the page template for a page in app

    I've been looking for a way to re - assign a specific page to a different page template, and I must be blind. I did it with the regions and reports, but never a whole page. The closest I can find is how to set the default page for an application model template. What I have is a printable form that they want in a specific format. I was able to code the whole thing into a region of PL/SQL, but I was hoping that I could take an existing page template and modify the model to different regions in the areas I would like to.

    Can someone help me find this? I have already created a copy of the page template I want to twist.

    If you are in the tree view, double-click the entry of title of page (top); If you are in the component view, simply click the edit button in the page area. Either way will take you to the screen of the Page change. in the display attributes section, you will see a Page Model drop-down list.

    -David

  • switch between page templates in an application

    Hi guys,.

    I would like to change to a "walk-in with sidebar tabs" page in only a page of my application.
    And maintain "tabs" on the other pages.

    When I change it by clicking in my theme, it changes the template page in all the pages of my application, I want to do it only for 1 page.

    Don't you think it's possible?

    PS: I use Apex 2.1, maybe it's possible to Apex 3?

    That, at the level of the page, not in the theme. Click on the link of the model in the attributes page for the corresponding page and select the required Page template.

  • How to use the pageDef of the Page template file.

    Hello

    JDev Version 11.1.2.3.0.

    I have an app with the pageTemplate file that is used on all pages. I added a taskflow bounded to the page template. To use this bounded taskflow, I need to have in the file pageDef the taskflow definition:

    "< taskFlow id ="languageBTF2"taskFlowId="/facets/language/languageBTF.xml#languageBTF ' activation 'deferred = '.

                  xmlns=" http://xmlns.Oracle.com/ADF/controller/binding "/ > "

    However this was automatically added in the model pageDef file. If I want to use it in all of my pages, I need to add it to all their files pageDef manually, because the #{bindings} resolves to the pageDef of the current page and not the model page.

    Kind regards

    Pamela

    If you add the template, you must update all the linking pages to access the model pageDef pageDef. You can try this:

    1 - Open one of you request page (.jspx) and go to the pageDef, this page, and in the executable section add this as:

    
        
        
    
    

    in the path to write the path of the file for pageDef model.

    2 - Open the .jspx page and in the pageTemplate add this value = "#{bindings.ptb1}" as "

        
          
            
    
            
          
        
    

    3 - Repeat these 2 steps for all pages.

  • Page template region posts

    Hey,.

    I wonder if it is possible to add items to the region when you edit a page template? The theme that I have only 8 posts in the region, and I would like to have more.

    I don't know where I have to create the string substitution for this position in the region. I tried to add a simple substitution string to know #REGION_POSITION_XX # then tried to add to the page template, but that has not worked and it should appear as text.

    I need to create a new model? Or can I just add a new position in the region to an existing model?

    Thank you

    J

    Hi Julijan,

    Julijan wrote:

    I wonder if it is possible to add items to the region when you edit a page template? The theme that I have only 8 posts in the region, and I would like to have more.

    I don't know where I have to create the string substitution for this position in the region. I tried to add a simple substitution string to know #REGION_POSITION_XX # then tried to add to the page template, but that has not worked and it should appear as text.

    I need to create a new model? Or can I just add a new position in the region to an existing model?

    You can add positions extra region to the page template. They are strings of built-in substitution APEX and limited to only 8.

    Reference:

    But, Yes, you can copy/create a new template and arrange them as you want in the HTML markup.

    I hope this helps!

    Kind regards

    Kiran

  • How to copy from one Application to another custom Page template

    Hello

    12.1.3 Jdev

    How can I copy a created exculpatory to one application to another?

    I don't want to create the existing application as a jar and add a library to the following. I want to copy an existing template and begin to change in the next request.

    See you soon

    AJ

    Each application that uses the model page, have the file called pagetemplate - metadata.xml, which is basically a repository of page template.

    When you create a page template, some entries are added to this file automatically for you.

    That's why I said lets you create a new model.

    Well, next to the source code of the template page, if the original model have pageDef, you need this pageDef too, so do the same - create Def page for your new template and just copy - paste the contents of the original.

  • Possible to have shared SelectList in the Page template?

    Hi all

    I have a simple question about "what I am missing?

    We want to add a dropdown "Select job number" to each page. The drop-down list is based on a database query.

    All the work is done, but I have a problem.

    We are creating a SELECTLIST element on each page!

    We use a < div > shared region in the Page template.

    We use a javascript in the Page template code.

    We use a common OracleSQLPackage for the entire treatment.

    We use a shared item in demand for the job number.

    But on each page, we have controls on the page P185_SELECTLIST, P186_SELECTLIST, P187_SELECTLIST, P188_SELECTLIST, P189_SELECTLIST... and the problem will only get worse.

    How do we code the drop-down list in the page template?

    Is it by creating the shared list?

    Thanks for your help

    user8115477 wrote:

    Please update your forum profile with a recognizable username instead of "user8115477": Video tutorial how to change username available

    I have a simple question about "what I am missing?

    One thing missing is that information which is necessary to obtain a rapid and effective response when ask you a question.

    We want to add a dropdown "Select job number" to each page. The drop-down list is based on a database query.

    All the work is done, but I have a problem.

    We are creating a SELECTLIST element on each page!

    We use a shared

    area in the Page template.

    We use a javascript in the Page template code.

    We use a common OracleSQLPackage for the entire treatment.

    We use a shared item in demand for the job number.

    But on each page, we have controls on the page P185_SELECTLIST, P186_SELECTLIST, P187_SELECTLIST, P188_SELECTLIST, P189_SELECTLIST... and the problem will only get worse.

    How do we code the drop-down list in the page template?

    You do not have. Add a global page to the application and create the item selection list it. Dynamic measurements can also appear on the overall page to implement the behaviors associated with the element. Conditions can be used to control the pages of the element and the DAs are displayed on.

Maybe you are looking for