Question: JSF Page Templates inside Template - possible or not?

Hi guys!
I like pageTemplates! Really nice thing to decompose UI (especially supporting ADFm in background :))).
But, when I tried to define new template using another template, I was not able to reach facets of existing template (designer shows the "picture" of existing template but I cannot reach facets nor "enter" the template in any way). Looks like template inheritance is not supported? Or I'm doing something wrong.
Anyone succeeded to define new template based on existing one?
Thanks for any clue,
Pavle

Hey,
I think we should take emotions out for a while and consider the options you have to build "reusable" pieces with templates today.
If you, for example, build a declarative component out of existing layout components and specify facetRefs for areas you want the application developer to change or add cmponents to then this becomes reusable as a ADF library. This said, a change to the declarative component has immediate effect to the decalartive components used on a page and/or template as soon as the new ADF library jar is in. So for basic needs like modifying a base template to contain customized headers etc. I think this should do.
Rgarding "under discussion". We are for sure no idiots and have an eye on the market and application development needs. So its not a discussion of "do we want that feature" - as we all agree on that we want to have this - but, what would be the possible impact that could happen, like performance, access to contained binding references, circular template references, how-deep does it make sense. This - and I hope you agree - should be discussed first and then properly implemented rather than blindly coded into the product.
However, we do have release cycles and some features might come just too late to be within the first cut - unless we want our customers to wait any longer than necessary to get their hands on a production version of JDeveloper 11.
"But, maybe the truth is hidden from the public? Maybe JDev is not intended to be the custom apps dev tool but only "customization" tool for WebCentre and other Oracles applications? That way the focus on taskflows instead on full UI is justified"
Taskflows is part of the Oracle ADFc controller, which is an extension to the Faces controller. It can be used without ADF using plain JSF components and bean binding. Taskflows is badly needed in JSF because it solves many usecases of Ajax that otherwise you can bang your head against a wall on
- isolated memory scope
- isolated transaction handling with "safe for later" commit, and rollback functionality
- declarative back browser handling
- page-to-page navigation within a page
- break up of activity navigations in reusable units
- Declarative JAAS based security
- Defined entry and exit points
Taskflows are not a mean to build reusable layouts, but reusable flows (thats a big difference and will benefit to application development outside of Oracle Applications big times). Of course, some features might be limited to the use with ADF, but I don't think that you can blame us for having technology that enables out-of-the box behavior for what otherwise you have to hand-code.
Regions I think is what you are addressing as a solution to embed "template" alike content.
Frank

Similar Messages

  • JSF Page extending a template page contains no facet tags

    Using JDeveloper 11g Version 11.1.2.1.0
    With an ADF Fusion Web Application
    I created a JSF template page by following this link:
    [http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/adf_richclient/adfrichclient.htm]
    However, when I create a JSF page based on the template no facet tags show up on the page.
    In the new JSF page I can see the template layout with the header, left and the center facet but the regions are uneditable
    and no faceets shows up under the Structure window or in the source that were in the template page.
    The last item that shows up in the Structure window is <>af:pageTemplate
    Using the Oracle Three Column Layout template the tags show up just fine.
    Any recommendations?

    Frank,
    Yes, I did have the facetRef tags in the template. I had saved the template page as a .jsf since then I have gone back and created a new template as a jspx.
    Now the facet tags do show up in the structure window and I can add layout components from the component palette and data controls as well.
    But None of that content shows up in the Designer window and when I run the page the whole area with the content just shows up as gray.

  • Can you have template inside templates

    hi,
    the templating is very cool but now I want one main template with buttons / pics and want a few templates which include the main template . these templates are for example a master / detail or tree /master /detail
    thanks edwin

    Maybe the declarative component concept can help your scenario.
    You create a template and a bunch of declarative components that you can use in it.

  • Two questions - adding pages once the template is done and searching this site for already answered

    I have my template in .dwt and am ready to add new pages.  I forgot where to begin.  I know it is something super easy (the whole point of making the template), but I scrubbed my brain over Christmas and now have no idea.  Thanks.
    Is there an easy way to search this blog?  Maybe folks have asked my questions in the past and I can find their answers.  Couldn't find how to search.  Thanks, O Patient People.  -the newbie

    To search this web forum, go to "Ask a Question" on top of the Discussions page.  Simply type your question and hit Enter.
    Or use Google to search forums.adobe topic.
    Nancy O.

  • Motion (.motn) Template Inside Final Cut 7 Not Working

    Hello,
    I downloaded a free motion template (the file ended in .motn) that instructions with it say I can instal and use with Final Cut Pro. I am currently using FCStudio 3.
    I was to instal in the following directory: Macintosh HD>Library>Application Support>Final Cut Studio>Motion>Templates
    I did so. I opened FCP, the motion template was where it was supposed to be. But when I apply it, I get a solid white box. It's supposed to be compatible with both FCStudio 2 and 3.
    I opened this file in Motion, and it worked (except it's supposed to be an opening and closing animation, and just the opening displays in Motion). But I'm supposed to be able to use this in FCP, so I'd like to ask here if this is something that really should be working in FCP, and if so, what fixes there may be.
    Thank You!

    Try this:
    http://www.echomist.co.uk/software/fcPrefsManager.shtml

  • How to call a struts action from a JSF page

    I am working on a small POC that has to do with struts-faces. I need to know how to call a struts ".do" action from a JSF page..
    Sameer Jaffer

    is it not possible to call a action from the faces submit button and/or the navigation?
    This a simple POC using struts-faces exmaples.
    Here is my struts-config and faces-config file.
    <struts-config>
    <data-sources/>
    <form-beans>
      <form-bean name="GetNameForm" type="demo.GetNameForm"/>
    </form-beans>
    <global-exceptions/>
    <global-forwards>
      <forward name="getName" path="/pages/inputname.jsp"/>
    </global-forwards>
    <action-mappings>
      <action name="GetNameForm" path="/greeting" scope="request" type="demo.GreetingAction">
       <forward name="sayhello" path="/pages/greeting.jsp"/>
      </action>
    </action-mappings>
    <controller>
        <set-property property="inputForward" value="true"/>
        <set-property property="processorClass"
                value="org.apache.struts.faces.application.FacesRequestProcessor"/>
    </controller>
    </struts-config>faces-config
    <faces-config>
    <managed-bean>
      <managed-bean-name>calculate</managed-bean-name>
      <managed-bean-class>com.jsftest.Calculate</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
      <managed-bean-name>GetNameForm</managed-bean-name>
      <managed-bean-class>demo.GetNameForm</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
      <from-view-id>/calculate.jsp</from-view-id>
      <navigation-case>
       <from-outcome>success</from-outcome>
       <to-view-id>/success.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
       <from-outcome>failure</from-outcome>
       <to-view-id>/failure.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    <navigation-rule>
      <from-view-id>/inputNameJSF.jsp</from-view-id>
      <navigation-case>
       <to-view-id>/pages/greeting.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    </faces-config>in my inputNameJSF.jsp (faces page)
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <%@ taglib prefix="s" uri="http://struts.apache.org/tags-faces" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Say Hello!!</title>
    </head>
    <body>
    Input Name
    <f:view>
         <h:form >
              <h:inputText value="#{GetNameForm.name}" id = "name" />
              <br>
              <h:commandButton id="submit"  action="/greeting.do" value="   Say Hello!   " />
         </h:form>
    </f:view>
    </body>
    </html>I want to be able to call the struts action invoking the Action method in the that returns the name
    package demo;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public class GreetingAction extends org.apache.struts.action.Action {
        // Global Forwards
        public static final String GLOBAL_FORWARD_getName = "getName";
        // Local Forwards
        private static final String FORWARD_sayhello = "sayhello";
        public GreetingAction() {
        public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
            String name = ((demo.GetNameForm)form).getName();
            String greeting = "Hello, "+name+"!";
            request.setAttribute("greeting", greeting);
            return mapping.findForward(FORWARD_sayhello);
    }Edited by: sijaffer on Aug 11, 2009 12:03 PM

  • Calling a method in BPM Object from jsf page

    Hi All,
    How do I call a method in BPM object from JSF page? Is it possible to invoke it in a manner similar to invoking a method from managed bean in JSF application?
    Please help.
    Thanks and Regards,
    Veronica

    You can use f:invoke (or f:invokea to with parameters)
    For ajax calls, you can use f:invokeUrl to get the URL to a particular method within your BPM object, although make sure the Server-Side Method property is set to Yes.
    http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/taglib/index.html

  • Configuring velocity to use into JSF pages

    Hello to all,
    I am newer with JSF and, I don't know how to insert Velocity code into JSF page. Is it possible? How I must configure my webapp to use Velocity+JSF?
    This is an example of a JSF page that I would be using:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="/WEB-INF/tld/veltag.tld" prefix="vel"%>
    <html>
    <f:view>
         <head>
         <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
         <title>Login</title>
         <f:loadBundle basename="com.tutorial.messages" var="msg" />
         </head>
         <body>     
         #set( $imperial = ["Munetaka","Koreyasu","Hisakira","Morikune"] )  
            #foreach( $shogun in $imperial )
                   $shogun
            #end
         <h:form>
              <h:outputLabel rendered="true" value="#{msg.name}"></h:outputLabel>
         </h:form>
         </body>
    </f:view>
    </html>I'm sorry by my poor English
    Thanks and best regards,
    Shaggy

    Hi,
    I am also trying to develop a similar application but I dont know how to do. Can you please help me regarding that?
    I need to get user's smartcard based certificate to store in server.

  • Adf faces table and applet in jsf page navSubmit not working in IE

    Hi
    I have a jsf page with adf faces table and applet , previous / next navigation is not working for my table when i add the applet to the same page , it is working in firefox but not in IE .
    I have no clue what to change , can any one help. below is the sample code for my jsf page
    Best regards
    Srinivas
    Code follows, not sure how to format the code here
    <h:form>
    <af:panelPage title="Test Adf faces table and applet">
    <af:panelHeader text="Orders">
    <af:table value="#{bindings.Orders.collectionModel}" var="row"
    rows="#{bindings.Orders.rangeSize}"
    first="#{bindings.Orders.rangeStart}"
    emptyText="#{bindings.Orders.viewable ? 'No rows yet.' : 'Access Denied.'}"
    id="orders" >
    <af:column sortProperty="order"
    headerText="#{bindings.Orders.labels.order}">
    <af:commandLink text="#{row.order}"
    id="orderNumber"
    onclick="showOrder(#{row.order})"
    disabled="false"/>
    </af:column>
                   </af:table>
    </af:panelHeader>
    <af:objectSpacer width="10" height="10"/>
    <af:panelBox>
    <f:verbatim>
    <div id="appletDiv">
                        <applet here />
                        </div>
    </f:verbatim>
    </af:panelBox>
    </af:panelHorizontal>
    </af:panelPage>
    </h:form>

    Sorry about the format, it looked okay when i previewed it , now it looks like terrible

  • More than one instance of same Declarative Component in a single JSF page

    Hi,
    I have problem in using more than one instance of same Declarative Component in a single JSF page.
    Only one instance is visible/rendered.
    If I drag and drop more than one instance of same Declarative Component in a single JSF page, only one is displayed.
    Not sure why is so....have I missed on some configuration?

    What version of JDeveloper are you using? What declarative component?
    In general when creating JSF UI components, care must be taken to avoid certain pitfalls that happen when one uses that component more than once in a page...so depending on which component you are using, one might surmise that more or less care was taken on that component when building it.
    If it was well tested though...like if it was an ADF Faces component, then that is probably not the problem.

  • JSF Page Fragment based on Oracle Dynamic Tabs Shell Template

    Hi
    JDeveloper 11.1.1.6
    Can we create a JSF Page Fragment (jsff) based on an Oracle Dynamic Tabs Shell Template ?
    I tried to create this jsff page and added in a bounded taskflow.
    In the create jsff wizard, it will allow us to select the Oracle Dynamic Tabs Shell Template, but when trying to use this taskflow in the another page (jspx), it is giving the following exception.
    javax.faces.FacesException: javax.el.PropertyNotFoundException: Target Unreachable, 'tabContext' returned null
    at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:261)
    at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
    Basically the reason why I am trying to do like this is that I have to simply drop the taskflow in a page as a region.
    The ViewController project code will only be created as an ADF Library Jar File and be used in other projects
    (it will not be deployed as a web application (war))
    More about the requirement:
    I have a BPM Application in which I have 2 ADF ViewController projects, one for only BPM Human Task related UI and another for only ADF functionality.
    I am writing a custom BPM Workspace kind of ADF Application and want the UI to be based on the Oracle Dynamic Tab Shell Template.
    ADF ViewController project is deployed only as a ADF Library Jar file.
    Another advantage I can have is I can test my ADF code within JDeveloper.
    (If I create a jspx page based Oracle Dynamic Tab Shell Template in the BPM Human Task Related UI project, I will not be able to run it in JDeveloper and test it.
    Otherwise I have to deploy to the SOA environment each time I make a change)
    Thanks for any help.
    Sameer

    Hi,
    the dynamic tab shell template can only be used with top level (JSPX) pages (in 12c also with Facelet pages). There is no configuration for templates that would make the JDeveloper IDE to not show the template of the selected page is a fragment.
    Frank

  • Links inside pages built on Templates

    Does anyone have any info on putting links inside an editable
    region of a page constructed from a template. The links work fine
    if I take them out and put on a normal page but not insde the
    template based page. Is there a way around this.
    If anyone could help it would be much appreciated.
    Catherine

    Catherine: You are mistaken. Being in or out of a template
    would have no
    effect on DW's ability to maintain the links (as long as the
    links are
    plainly visible in the HTML).
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "catherineanselmi" <[email protected]> wrote
    in message
    news:eh689c$qrp$[email protected]..
    > Does anyone have any info on putting links inside an
    editable region of a
    > page
    > constructed from a template. The links work fine if I
    take them out and
    > put on
    > a normal page but not insde the template based page. Is
    there a way around
    > this.
    > If anyone could help it would be much appreciated.
    > Catherine
    >

  • JSF event on a template part of page does nothing

    I created a page template which also changes locale, but when I apply the template to an JSF page. The change locale code does not work at all. It is like the backing bean of the template does not exist.
    Template code:
    <h:form>
    <h:selectOneMenu styleClass="selectOneMenu" id="countrySelectDropDown" value="#{root.locale.displayName}">
    <f:selectItems value="#{selectitems.root.countrySelectItems.countrySelectItems.toArray}" />
    </h:selectOneMenu>
    <hx:commandExButton type="submit" value="Change Language" styleClass="commandExButton" id="selectLocale"
    action="#{pc_BDInternetRegDoc.doSelectLocaleAction1}"></hx:commandExButton></h:form>Help !!

    Use the anchor method (found here) in combination with the Accordion Widget samples page from Adobe.
    I hope this helps.
    Ben

  • JSF Page Template error in Visual Editor

    Hi!
    I've developed a jsp page template with an attribute called BackingBean. This attribute is a mypackage.view.BackingBeanTemplate class and it works perfectly when I open the template in visual editor.
    When I create a new JSF page using my jsf page template and fill attribute BackingBean with a class that extends mypackage.view.BackingBeanTemplate, the visual editor send me the following error in Messages - Log:
    WARNING: A problem was encountered executing the page. Using fallback rendering.
    javax.el.PropertyNotFoundException: The class 'oracle.adf.view.rich.component.fragment.UIXPageTemplate$AttrMap' does not have the property 'BackingBean'.
    When I run my jsf it works perfectly. Just in visual editor it doesn't render my page.
    Can I use only primitive types and wrappers (String, Boolean, Integer, etc) in jsf template pages?
    Anybody could help me?
    Thanks
    Gleber

    Hi,
    actually i used a template that references a type DCIteratorBinding using EL and this works fine. So there is no limitation in the type you pass as an argument. My assumption is that the IDE doesn't instantiate super classes, which is why the property is not found. Does the subclass call super() in its constructor? Anyway, feel free to file a bug
    Frank

  • Header and trailer pages in report templates

    Hi:
    I wonder how can i make header and trailer pages in the tamplate reports , so that the objects in the template header & footer report would be inherited to the generated reports. I use Oracle reports 6.0.8 and there is no header section, niether Trailer section in the Template Editor, I've read in the reports online help :"You can use the margin and body of the Header and Trailer sections to create a Header and Trailer “page” as in earlier releases. In future releases, you will be able to add and delete sections.", is there any method i can use to make header&trailer pages in the template.

    I have the same question. This is what I found on Metalink.
    goal: How To Define A Header/Trailer Section In A Reports Template Definition File (TDF)
    fact: Oracle Reports Developer
    fix: It is not possible to have a HEADER/TRAILER section in a Reports Template Definition File (TDF). Templates do not need to have a HEADER/TRAILER section, infact there is no sectioning in a template. They just define the visual layout when applied against a report section.
    This did not answer my question!

Maybe you are looking for

  • IMovie won't open, but can see in expose

    I am unable to open and use iMovie.  When I open it I can see the menu bar, but the project screen doesn't show up.  When I use three finger swipe to go into expose, I can see it in there.  When I click on it it goes off to the right, top corner of s

  • How to create the folders in UCM

    Hi All, I am new to UCM,i have one issue ? i need to create 2 folders in ucm. one folder can access all the users (public) and they have read permission second folder can access only few users depending on security group. can you provide your inputs

  • How to insert a conditional image into a report

    Hi I am fairly new to HTML DB, but I have managed to create my first application. I need a little help with one report. One of the columns in the report contains Y, N or R. The customer wants me to display a different coloured image depending on the

  • Open item management for existing  accounts

    Dear Masters, I have one query that, can we  do  Open item management to already existing line items in extisting GL accounts. Please suggest if any feasibulity. Thanks Mohammed

  • Steps to configure forms6i with oracle 9i

    hi,i have installed forms6i, oracle 9i in my system.how to connect forms6i with oracle9i becos if i open formbuilder and follo the steps it tells no listner.so please give steps to connect oracle 9i with forms6i.how to avoid this no listner.