ADF Faces: What is similar to UIX templates?

Hi,
could someone point me in the right direction? We used UIX templates (mainly for the PageLayout node) to set some named children and attributes to set values (as a main value for the version, a main menu, etc). I cannot seem to find something equivalent for JSF .
I'm probably just looking in the wrong place but can somebody point me in the right direction?
Thanks in advance.
Regards,
Robert

One key difference between ADF Faces regions and the JSP custom tag feature is that the ADF Faces regions are data-binding aware and that databinding can be parameterized. Unfortunately we ran out of time in the 10.1.3 release to finish/polish the design time for the ADF Faces version of regions, but if you check out example # 91 from my blog, you can see an example that exploits the ADF Swing incarnation of regions, whose design time support did make it in time for the 10.1.3.x release "train".
http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#91
In that example, you'll notice the use of a "region binding" in the "Executables" section of the page that includes a region, and also notice the use of region parameters to pass desired data control and data collection references into the region. The ADF Model data binding for regions is the same regardless of client.

Similar Messages

  • ADF Faces: What is similar to DeltaTree?

    I'm a JSF novice, so bear with me here.
    Thanks,
    Sascha

    One key difference between ADF Faces regions and the JSP custom tag feature is that the ADF Faces regions are data-binding aware and that databinding can be parameterized. Unfortunately we ran out of time in the 10.1.3 release to finish/polish the design time for the ADF Faces version of regions, but if you check out example # 91 from my blog, you can see an example that exploits the ADF Swing incarnation of regions, whose design time support did make it in time for the 10.1.3.x release "train".
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#91
    In that example, you'll notice the use of a "region binding" in the "Executables" section of the page that includes a region, and also notice the use of region parameters to pass desired data control and data collection references into the region. The ADF Model data binding for regions is the same regardless of client.

  • New window detection in ADF Faces - what version?

    Hi,
    In what ADF version was the new window detection feature introduced to ADF Faces? I've been going through the release notes for 11.1.1.x releases but can't find an answer. Also, the documentation for web.xml configuration options doesn't seem to list this option for either 11.1.1.x or 11.1.2.x releases. E.g. http://docs.oracle.com/cd/E26098_01/web.1112/e16181/ap_config.htm#CEGCIDAB makes no mention of it. Where is it documented?
    Regards,
    Joonas

    hmm, you are right.
    Try referring to {message:id=10189529} and http://www.oracleimg.com/technetwork/developer-tools/jdev/documentation/relnotes-14-jan-11-261400.html#faces7
    One is Frank musing that he thinks it came in 11.1.1.4 and the other is a known issue with it in 11.1.1.4
    DOH! you already gave me the first link...
    http://adfbugs.blogspot.com/2009/11/returnlistener-from-dialog-page-not.html is a link from 2009 referring to it, which is in the 11.1.1.2 era.
    John

  • Customizing ADF Faces Look & Feel. Some questions & suggestions

    Hi everybody,
    We are developing an application with ADF Faces using JHeadStart. For the moment, I am studying the way we must modify the JHS templates to adapt each element to our needs.
    As it's told in the JHeadStart Developer's Guide, there are two ways to customize Look & Feel:
    1) Modifying the templates
    2) ADF Skinning
    I'm using both methods, but I feel that thay are not good enough to adapt the L&F to our customer requirements.
    My main problem now is in the ADF Table customization. I want to use ADF Table because it offers us a lot of features that are not in the jsf table (the selection column, the table overflow...), and is very usefull combined with the generated JHS code. But at the same time, it doesn't offer a lot of functionality in the look & feel customization. Using JSF Table, I can set the CSS style for headers, rows, columns, the table, I can set the border, cellspacing and cellpadding. But I cannot do
    any of these thing (or at least, I don't see how) with the ADF Table.
    Our customer (a government) have a strict definition of the look & feel of his web applications. They want we use their CSS styles definition file, so they can modify at once the Look & Feel of all their applications. Modifying the L&F through skinning generate other styles, not use the style classes in our CSS (o so I think).
    So, the questions:
    1) There is any way to set the suitable styles for the ADF Table components (headers, rows)?
    1bis) Why, If I have defined a new skin, with only just a few selectors, some styles from oracle are applied? Maybe because the render kit in the 'adf-skins.xml' is "oracle.adf.desktop"? If it is true, how can I make that they are not used, I must implement a render kit or can I use another existent?
    2) Can I decide how looks the select column (for example a button instead of a radio button)? Can I decide where does it goes (right or left)?
    3) There is any way to hidden the text Show/Hide of the showDetail in the table (the tableOverflow), as I can change the icons through skinning? If it is not possible, How can I overwrite the text. I need it in Catalan, but it is shown in English for this locale. Where is the message bundle I should overwrite?
    4) There is any way to force a tree to start fully expanded?
    5) There is anywhere documentation about the javascript functions used in ADF and their meaning? I think for example in the previous question. If I knew which javascript function I should call for expand the tree and its parameters, I could put the call in the onload event of the body.
    6) I use a selectInputDate. I have skinned the launch-icon, and I would like to do a similar thing in the chooseDate that is opened in a new window. But It seems not to be affected for my skinning directives (if I put a chooseDate in the same page, its L&F follow the skinning rules I've defined). I don't know if this dialog is an ADF feature or a JHS generated feature.
    7) There is any way to keep unmodified the id I've choosed for a component? (I mean, an inputText with id="hello" in a form with id="form" will have in the HTML an id = "form:hello", but I would like it to be simply 'hello')
    8) How can I control the position and the size of a dialog (the chooseDate dialog or a dialog I've created)? In the cases I've been testing, it seems the dialog is forced to resize depending on the content. I would like to know if I can establish a fixed size.
    9) There is any way to open a non-modal dialog? (which I could keep open at the same time that another instance of the same dialog)
    For the moment, I think I have no more question. But give me time.... :-D
    The suggestion I've to do is basically more flexible components for a better customization (for example, the styles settings I've talked about previously). ADF components are nice and powerful, but I think they should generate pages that follow the tendencies in the web development: tableless pages (I cannot understand the utility of the objectSpacer existing the margins), use of CSS for layout...
    Any answer, comment or suggestion will be welcome.
    Carles.
    Message was edited by:
    cbios

    I have been able to make the UIX 2.2 and ADF Faces LAF look near identical by updating the oracle-desktop.xss file within UIX 2.2 as follows
    <!-- Change the accent color ramp to tan -->
    <style name="DarkAccentBackground">
    <!--<property name="background-color">#cccc99</property>-->
    <property name="background-color">#d2d8b0</property>
    </style>
    There are still some differences:
    1) A black line appears on the ADF Faces on the 'menu1' facet selected tab below the text. DON'T KNOW HOW TO REMOVE THIS FROM ADF Faces or add it to UIX 2.2!!!
    2) In UIX 2.2 a bulleted list uses the HTML <li> tag. In ADF Faces it doesn't use the HTML <li> tag rather it constructs the bulleted list using lower level HTML tags with the 'bullet' becoming an image, in my browser this means the disc is smaller in Faces. The motivation for this change I think is explained via this post. Since I have no control over how this specific HTML tag is rendered it forces me to replace the /adf/images/bltdscn.gif file in adf-faces-impl.jar with a larger disc!
    http://www.thescripts.com/forum/thread96839.html
    May update this again if there are other things I notice.

  • How to set values of a parameterized message in ADF Faces?

    Hi all,
    i've got the following problem: I want to set the values of a parameterized message before i add the message to the FacesContext.
    Contents of the message resource bundle:
    testPage.successMsg.create=The device {0} was created successfully!
    Code within backing bean method:
    String message = getStringFromBundle("testPage.successMsg.create");
    FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(message));
    In Struts/ADF UIX the following code did the job:
    protected void setUIXInfoMessage(HttpServletRequest request, String key, Object[] args)
    MessageData msgs = new MessageData();
    MessageResources mr = this.getResources(request);
    String msg = "";
    if (mr != null)
    msg = mr.getMessage(request.getLocale(), key, args);
    msgs.addMessage(null, msg, null, UIConstants.MESSAGE_TYPE_INFO);
    request.setAttribute(UIX_MESSAGE_KEY, msgs);
    Can anyone help me with this problem? I have searched a lot in the Oracle ADF Development Guide and within forum, but did not find any solution.
    Another interesting thing is, how to set the parameters from jspx-Code.
    How can i achieve the same results in ADF Faces corresponding to the following UIX-Code:
    <boundAttribute name="title">
    <messageFormat format="${nls['deleteTip.confirmation']}">
    <dataObject source="${bindings.TipName}"/>
    </messageFormat>
    </boundAttribute>
    Resource Bundle:
    deleteTip.confirmation=Do you really want to delete the tip {0}?
    Another question:
    What are the corresponding elements in ADF Faces corresponding to <concat> and <if> in UIX or what possibilites exist in ADF Faces to dynamically concatenate strings depending on certain conditions?
    I know, these are many questions. I am familiar with UIX, but now i have to start developing applications with ADF Faces and there are some things i don't find corresponding equivalents.
    Thanks in advance!
    Regards,
    Stefan

    Hi,
    SRDemo shows you how to do this declratively
    <h:outputFormat value="#{res['srcreate.confirmPanel.message']}"
    escape="false" id="nextButton">
    <f:param value="#{requestScope.SRDEMO_CREATED_SVRID}"/>
    </h:outputFormat>
    where the <f:param ...> element sets the value of the variable
    To programmatically access internationalized strings, SRDemo uses
    private static ResourceBundle getBundle() {
    FacesContext ctx = getFacesContext();
    UIViewRoot uiRoot = ctx.getViewRoot();
    Locale locale = uiRoot.getLocale();
    ClassLoader ldr = Thread.currentThread().getContextClassLoader();
    return ResourceBundle.getBundle(ctx.getApplication().getMessageBundle(),
    locale, ldr);
    public static String getStringFromBundle(String key) {
    ResourceBundle bundle = getBundle();
    return getStringSafely(bundle, key, null);
    You take it from there and put it to a FacesMessage, If it uses parameters I guess you will have to parse the string
    Frank

  • ADF FACES: HTML template text Layout is broken when uses ADF Faces tags

    This works fine:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></meta>
    </head>
    <body>
    <h:form>
    <table border="1">
    <tr>
    <td width="45%">
    <h:dataTable rows="5" bgcolor="Red" value="#{class1.names}" var="name">
    <h:column>
    <h:outputText value="#{name}"/>
    </h:column>
    <h:column>
    <h:outputText value="#{name}"/>
    </h:column>
    </h:dataTable>
    </td>
    <td width="55%">
    <h:inputText/>
    </td>
    </tr>
    </table>
    </h:form>
    </body>
    </html>
    </f:view>
    => a table is rendered with one row and two columns; in the first column the data table is rendered in the second the inputText
    Changing to ADF Faces tags breaks the layout:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/EA11" prefix="af"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/EA11/html" prefix="afh"%>
    <f:view>
    <afh:html>
    <afh:head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></meta>
    </afh:head>
    <afh:body>
    <af:form>
    <table border="1">
    <tr>
    <td>
    <af:table rows="5" value="#{class1.names}" var="name">
    <af:column>
    <h:outputText value="#{name}"/>
    </af:column>
    <af:column>
    <h:outputText value="#{name}"/>
    </af:column>
    </af:table>
    </td>
    <td>
    <h:inputText/>
    </td>
    </tr>
    </table>
    </af:form>
    </afh:body>
    </afh:html>
    </f:view>
    => at the begin of the page an empty table is rendered; below the data table is rendered and below the inputText
    It think it should be possible to layout the page with HTML template text and use ADF Faces tags.

    As of EA12 (and EA13) <afh:body> is what is known as a "rendersChildren" tag. It needs to do so in order to support partial-page rendering This means that template text inside it needs to be wrapped inside <f:verbatim>.
    For later releases of ADF Faces, I've filed an enhancement request to loosen up this restriction for <afh:body>.

  • UIX vs ADF Faces ?

    Hi All,
    We are about to start creating UIX application, but I also read about the ADF Faces replacing UIX in next release. I am confused .. could any body pls give some info
    1) Actually what will happen with UIX in the future ?
    2) Will UIX CoExist with ADF Faces ?
    3) Can we use the UIX skill set to easily jump into ADF Faces once it is released in JDev ?
    4) Why is ADF Faces better technology than UIX ?
    Thank you for your help,
    Krist

    I think you should read two documents that will make the picture clearer for you.
    One is the UIX roadmap which is here:
    http://www.oracle.com/technology/products/jdev/collateral/papers/9.0.5.0/adfuix_roadmap/adfuix_roadmap.html
    and the other one is the new "User Interface Technology Choice for Web Deployed J2EE Applications"
    here: http://www.oracle.com/technology/products/jdev/collateral/papers/10g/whichj2eeuserinterface.pdf
    To understand why JSF and ADF Faces are better check out the latest edition of the Oracle Java Newsletter here:
    http://www.oracle.com/technology/tech/java/newsletter/archive.html
    If you didn't get this newsletter make sure to register here: http://otn.oracle.com/javanews

  • What about security in adf faces application ?

    It seem that the documentation has a little bit changed about security for adf faces application.
    SRDemo J2EE sample application only implemented the security at the web container and may be for the session beans (don't remember) by using security-role and security-constraint in web.xml configuration file.
    It seem that the documentation recommand now to implement adf security and didn't find anymore the reference to the standard j2ee security implementation.
    We found also that the security constraints checked by the web container was sometimes ignored and the container didn't ask us to login before displaying a page.
    Is ADF security a clear Oracle recommandation for ADF Faces application ?
    What about j2ee security for this type of application (why it is not recommended to use it) ?

    Hi,
    there is no single recommedation about security because security ideally is applied on several levels to implement security in depth. Container managed security with J2EE is a good option to secure page access and - if using EJB - to propagate the user identity for method level access control.
    Using ADF Security, which is security added to the binding layer based on JAAS, a second layer of the security onion becomes available that allows you to define which user is allowed to perform which operation on an iterator or attribute binding. This goes beyond of what container managed security can do for you.
    The thrid layer is business layer security and eventually database security.
    For Oracle Open World we will have a developmengt track and one of the presentation I am giving with Ric Smith from our team is about end-to-end application security for ADF Faces, ADF, ADF BCor TopLink/EJB and the Oracle database.
    The plan is to also write this up in a paper, but this would come late because of other priorities I have on my plate. So attending OOW probably is the best option for you to get the big picture
    Frank

  • What previous knowledge need to learn oracle jdeveloper 11g (adf faces&jsf)

    hi plz tell me, what are all technologies and languages i want to knew before i learn adf faces with jsf in oracle jdeveloper 11g

    Hi,
    Although the blog post is ok, I would certainly add a good JSF book/tutorial before the "Developing RIA Web Applications with Oracle ADF" part. For even better results, I would add a Trinidad book/tutorial before it as well. If you want to be future proof, add a Facelets tutorial between the JSF and Trinidad part. If you go right away to "Developing RIA Web Applications with Oracle ADF" you'll only make yourself a robot not understanding what happen behind the scene, often resulting in performance and memory issues as well as not so good looking application since you're going to force yourself into the Oracle LaF only.
    For the JSF part, check out http://horstmann.com/corejsf/ and, if you can handle really technical stuff: http://jcp.org/aboutJava/communityprocess/final/jsr314/index.html
    For Facelets: https://facelets.dev.java.net/nonav/docs/dev/docbook.html and http://www.ibm.com/developerworks/java/library/j-facelets/
    For Trinidad: http://myfaces.apache.org/trinidad/devguide/index.html
    Regards,
    ~ Simon

  • Adf faces template

    I want to use adf faces cuz the feature of template, but my development enviroment is jdk1.5. Is there a solution to run adf faces Aspplication in jdk1.5? thinks.

    ADF Faces 11g requires JDK 6, so the answer is "no"
    John

  • Forms vs UIX/ADF Faces ?

    Hi,
    We are considering to migrate Forms application into J2EE Web Apps (UIX or ADF Faces), using JHeadStart as rapid dev tool.
    Does any body know, how is the UIX/ADF Faces performance compared to Forms, provided they are deployed on same IAS and network specification and bandwidth ?
    Is it true that UIX/ADF Faces will need smaller bandwidth than Forms ?
    Or are there any other reason that will justify us to migrate Forms into J2EE Web app ?
    Thank you for your help,
    xtanto

    do not duplicate your question so much times...
    UIX versus Swing
    UIX
    many of the old authors are not frequently here in the forum. Go to the JDeveloper-Forum

  • Has anyone migrated from UIX to ADF Faces?

    We are currently on JDeveloper 10.2. We have built applications using UIX. Now we want to upgrade to JDeveloper 10.3. I am trying to find out if there is easy conversion path for the upgrade from UIX to ADF faces.
    Are there any tools available to do this conversion or do I have to rebuild the same UI using ADF faces?
    If you have dont this, can you please share your experiences?
    Thanks,
    Uma

    Hi,
    you can read about the migration utility at http://www.oracle.com/technology/products/jdev/howtos/1013/uix/index.html
    Frank

  • Is there any template (decoration) feature in Jdeveloper and ADF faces ?

    Hi
    Thank you for reading my post
    is there any template / decoration facilities in Jdeveloper for ADF faces ?
    for example there are some part of my web pages which are allways the same and i need to show them where ever the user is in my we application (for example a left panel contain latest emails) how i can have this feature ?
    Thanks

    HI!
    Facelets works very well with Oracle ADF faces ,but to get a partial support from IDE(JDeveloper) , you have to build pages in jspx format, and not in xhtml format.
    We are using facelets with absolutely no problem; the only hitch is that we have add all our ADF Faces components to a jpx page and then embed Facelets tags to it,for JDdeveloper does not add components to /in between Facelets tags, which is an improvement to be made, and Mr.Frank has informed me that this(Facelets support in JDeveloper) is filed as an enhancement request for the next version of JDeveloper.
    Anyway, I can assure you that you can work with Facelets and ADF faces with absolutely no problems,at all;the only thing is you need to struggle some time getting the Facelets configured for ADF Faces!
    Actually, I planned to write an article on accomlishing this(integrating facelets and ADF Faces),but presently I'm preoccupied with some other imoprtant task, so I'm afraid may not be able to provide the article inthis week.
    Regrads,
    Samba.

  • ADF UIX "adf-faces-ea11" with "myfaces-1.0.7" and JBoss 3.2.5

    Hi,
    I tried to deploy adf-faces-ea11 on JBoss 3.2.5, using MyFaces as the JSF engine. The components render OK, but when I press the “af:commandButton” I encounter the following exception:
    If I press on “h:commandButton” I don’t have any problems. (I have attached the jsp page at the bottom of the post)
    javax.servlet.ServletException: Key UINodePropertyKey[validators,13] is a list key
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:125)
    java.lang.IllegalArgumentException: Key UINodePropertyKey[validators,13] is a list key
         oracle.adf.view.faces.bean.FacesBeanImpl._checkNotListKey(FacesBeanImpl.java:403)
         oracle.adf.view.faces.bean.FacesBeanImpl.getValueBinding(FacesBeanImpl.java:83)
         oracle.adf.view.faces.component.UIXComponentBase.getValueBinding(UIXComponentBase.java:164)
         net.sourceforge.myfaces.util.DebugUtils.printComponent(DebugUtils.java:225)
         net.sourceforge.myfaces.util.DebugUtils.printComponent(DebugUtils.java:326)
         net.sourceforge.myfaces.util.DebugUtils.printComponent(DebugUtils.java:326)
         net.sourceforge.myfaces.util.DebugUtils.printComponent(DebugUtils.java:326)
         net.sourceforge.myfaces.util.DebugUtils.printComponent(DebugUtils.java:326)
         net.sourceforge.myfaces.util.DebugUtils.printView(DebugUtils.java:160)
         net.sourceforge.myfaces.util.DebugUtils.traceView(DebugUtils.java:152)
         net.sourceforge.myfaces.util.DebugUtils.traceView(DebugUtils.java:132)
         net.sourceforge.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:127)
         net.sourceforge.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:67)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
    The full stack trace of the root cause is available in the Apache Tomcat/5.0.26 logs.
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/EA11/html" prefix="afh" %>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/EA11" prefix="af" %>
    <f:view>
    <afh:html>
    <afh:head title="PanelList Demo"/>
    <afh:body>
    <h:form id="test1">
    <af:outputLabel value="Test Oracle"/>
    <!-- A chooseColor which uses the standard "default49" palette -->
    <af:chooseColor id="cp0"
    colorData="#{adfFacesContext.colorPalette.default49}"/>
    <af:selectInputDate id="d1" value="#{DateBean.date1}"
    label="Date picker"/>
    <af:commandButton text="Enter" action="#{DateBean.pressMe}"/>
    <h:commandButton value="Standard Button" action="#{DateBean.pressMe}"/>
    </h:form>
    </afh:body>
    </afh:html>
    </f:view>

    It looks like there's some debug tracing code in myfaces that you've enabled that is interacting poorly with ADF Faces. Specifically, ADF Faces is really unhappy when you even try to get a ValueBinding for something that doesn't support ValueBindings (like "validators").
    For now, I'd suggest that you lower the level of logging, at least for the net.sourceforge.myfaces.lifecycle package.

  • What are provided skin with ADF faces and where i can find more ?

    Hi
    thank you for reading my post
    where i can find more skins for ADF faces ?
    I know
    Oracle , srdemo
    is there any other skins available ?
    Thanks

    Find your serial number quickly
    if it's a win ps cs6 and it's installed, you can use belarc advisor to recover the sn, Belarc Advisor - Free Personal PC Audit, for software, hardware and security configuration information on your computer.…

Maybe you are looking for

  • How can I use LabVIEW 6 on a SCXI-FRQ8 module?

    Hi, here is a description of our problem. We hope that you will be able to help us. We bought from NI, a few years ago, some SCXI-FRQ8 modules. (Those modules were made by a company called Developpement Ingenierie in France) The problem is, we can no

  • Printing using .pdf presets...

    I've created a file in inDesign, exported it using High Quality print (PDF presets) and my Canon ImagePRESS (dropped the .pdf in Creo) is taking forever and a day to print. Should I use the Press Quality option? There are a lot of images and transpar

  • Error in new infotype creation

    hi, i m copying a infotype and create a new infotype, in this all structures are copied in my program but only one structure q0002 is not copied as q9002 . tell me how to do this

  • Remote Call

    I have written an RFC Enabled Function Module in client 140. I am calling that program from client 130. After fetching the data from 140, i cant able to see that data when the control switches back from 140 to 130. How can we export the data. I have

  • ASA flash upgrade

                       Never done it before but is there a second slot for internal flash or do you have to get external flash copy the files off and then upgrade the flash and copy back.