Using ADF Faces Skins

I'm looking for a reference on deploying Skins with ADF Faces. The published howto on OTN is'nt very helpful because the sample code link is broken (See my previous post). The JDeveloper help files are somewhat helpful but I'm looking for a working example. I'm following the technique as implemented in SRDEMO but I must be missing something as my style sheet changes are not showing up.
It would be nice if someone from Oracle could look into fixing the link to the sample code for:
http://www.oracle.com/technology/products/jdev/101/howtos/adfskins/index.html
I think if I had a working example that allows skins to change at runtime I would be able to figure out what I'm missing. I have been trying access the link for a couple days now and no one has reponded to any of my requests.

The link to http://www.oracle.com/technology/products/jdev/101/howtos/adfskins/adffaces-skin.war
seems to work for me.
In any case to change the skin you are using you change the adf-faces-config.xml file.
To get it to change at runtime - just put a reference to a value in a backing bean instead of the fixed "oracle" and then change the value in the bean at runtime.

Similar Messages

  • Problem with a example of "Developing and Using ADF Faces Skins"

    Hi, I've tried the example "Developing and Using ADF Faces Skins", but when I run the sample.jspx page and choose the skin "MyCompany" in the select skin I obtain the next message:
    java.lang.NullPointerException
    at oracle.adfinternal.view.faces.ui.laf.simple.desktop.SideBarRenderer._getIconData(SideBarRenderer.java:393)
    at oracle.adfinternal.view.faces.ui.laf.simple.desktop.SideBarRenderer.prerender(SideBarRenderer.java:83)
    at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:79)
    Could somebody help me?
    Thanks a lot ;-)

    Hi there,
    I had the same issue last friday.
    It's probably because you are using JDeveloper 10.1.3.2 instead of 10.1.3.0 or 10.1.3.1 for which the example is made.
    I haven't been able to fix this yet, other then by commenting out the this part of the css.
    Luc Bors
    Message was edited by:
    lucbors

  • Problem in Developing and Using ADF Faces Skins sample

    sample.jspx dose not have “Select Skin” box as the document shown.
    I am trying the sample project downloaded from sample WAR file - adffaces_skin.war in article “Developing and Using ADF Faces Skins”.
    In paragraph “Changing the Color Schema of a Skin”
    sample.jspx has a “Select Skin” box to allow user to select “Simple” or “MyCompany”. (in JSP Visual Editor)
    However, it does not show on the project built from downloaded from sample WAR file (adffaces_skin.war).

    After reading the whole document, I realize it is my mistake.
    The box will be created after all user skins setting.
    The sample works.
    Only thing need to remind is for later version Jdeveloper, Application Worksapce in only for early version Jdeveloper. All the version after 10g 1.3 EA1, Only have Application.

  • ADF Faces Skins Not Working

    I can't seem to get my ADF faces skins to register at all. I have a css file, an adf-faces-skins.xml file, and a <skin-family> element in my adf-faces-config.xml file, but to no avail.
    One possible hint--I think I might not be getting access to the appropriate XML namespace in my adf-faces-skins.xml file. I can't, for example, get code insight to work there ("No insight available"). I'm using
    <skins xmlns="http://xmlns.oracle.com/adfview/faces/skin">
    which looks like it's right out of the help. Am I missing a library of some sort?
    Thanks much,
    Avrom

    Yes, I have, and I don't see anything I've done substantially differently from there--with the exception of adding a new version of Faces to my project. I assume I don't have to do that if I'm using 10.1.3 Production (the HowTo says it's a "more recent" version of Faces, but it was written against EA 1).

  • ER: ADF Faces Skins: "Unknown pseudo class:alias"

    Hi,
    I'm trying to create an ADF Faces Skin, by overriding aliases in my own CSS file.
    The code editor, however, is hilighting the word "alias" every time I use it (as in ".AFDarkBackground:alias") in red, and the error "Unknown pseudo class:alias" appears both on a popup and in the Structure Pane under "CSS Errors." Is Can I ignore this, or am I doing something wrong? Do I need to import some base CSS that defines the pseudo class? The sample from the HowTo doesn't seem to, but then it shows up with the same CSS Errors.
    Best,
    Avrom
    Message was edited by:
    [email protected]
    Changed topic title to reflect request for enhancement farther down.

    Thanks!
    I think I'll edit the title of this to contain ER: ... it would be very nice if it were possible to turn off this bit of validation. I can imagine varying degrees of "smartness" for such a feature--from a manual "accept simple desktop pseudoclasses" option to automatically checking to see if the CSS is listed in an adf-faces-skins.xml file or is imported by any CSS files that are.

  • Validation messages in JSF (when not using ADF faces)

    I've spent some time with JDeveloper 11 and would like to use it on an upcoming project. I have to target IE 6, so I won't be able to take advantage of ADF Faces. Instead I'd like to use the ADF Business Components with a standard JSF interface so it can be used by people still running IE 6.
    I've created a Business Component from a database table and can bind a JSF HTML Creation Form by dragging the appropriate view from the AppModule in the Data Controls pane. However, when I attempt to submit the page without all the fields being valid I get the following validation error message:
    j_id__ctru2:j_id__ctru6: Validation Error: Value is required. j_id__ctru2:j_id__ctru6: Validation Error: Value is required.
    I've tried making this more descriptive, but editing the error message in the Validation Rules section of the Business Component has no effect. What's the best way to convey a meaningful validation message to the user when not using ADF Faces?
    Also - I'm still very new to JDeveloper. Since I won't be able to rely on my users having Internet Explorer 7, would you recommend I stay with JDeveloper 10? The examples and documentation I've seen so far for JDeveloper 11 appear heavily biased towards using ADF Faces so I'm starting to wonder how much support is there for using plain old JSF.
    Thanks for your time!

    Hi,
    if you are completely new to this then I suggest to use JDeveloper 10.1.3 and ADF Faces in there. Its good to use with IE6 as well. Currently we do have more tutorials available for this release than for 11, which for this reason is a better choice for someone new to this
    Frank

  • How to use ADF Faces with struts1.3.8

    Hi
    Can anybody guide us how to use ADF faces with Struts 1.3.8.
    Your help will be appreciated.
    Thanks
    Chetan

    Xpp,
    Have a look at the ADF Developer's Guide for specific instructions on menus (the ADF Developer's Guide for Forms/4GL Developers has the information in section 19.2).
    You can put javascript handlers on the components to get keyboard event handling.
    John

  • Displaying BLOB image by using ADF Faces

    Hi all,
    I digged the forum but couldn't find any satisfied answer about displaying BLOB images by using ADF Faces.
    I have insterted POJO object to Oracle database but couldn't find any way to display blob (in java byte [] ) data in POJO.
    I have read the POJO object from database which contains two field; one of them is id field and other is BLOB data which holds GIF or JPG image and I want to display this image another page which contains also other fields / records ...
    thanks for your answers
    regards...
    --baris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    This thread at Sun : http://forum.java.sun.com/thread.jspa?threadID=513804&messageID=2445090
    talks about two options for creating a graphicImage jsf tag. (img tag)
    1. Make the img tag url refer to a servlet (instead of a static image file)
    2. Embed the image into the tag as inline base64 encoded data.
    2a. Use an <Object> tag with inline data.
    1. Looks a bit complex for a simple problem.
    2 and 2a don't work with some browsers.
    - And I've not yet figured out how to hook into the ADF Faces table-rendering logic to get it to add my image column. My table binds to a collection DataControl, [which in turn retrieves from a findAllItems call on a session facade, which uses my domain model, and wraps up access to a TopLink pesistence layer]. The framework just ignores my byte[] attribute when creating the jsf table from the DataControl. All string, int etc. attributes get represented correctly in the jsf table output.

  • Did anybody used ADF Faces with Apache Struts?

    Hi
    Can anybody give some guidelines of how to use ADF Faces with Struts?

    I think you'll get a better answer for this on an iBatis forum.
    I think I knew one customer who used this combination.
    We don't have a specific tutorial that shows you how to use iBatis with ADF Faces, but at the end of the day any of the tutorials we have that shows you how to use POJO or a session facade to front POJO will be applicable to iBatis.

  • JDeveloper popup window using ADF Faces

    Has anyone actually managed to get a popup window working properly using ADF Faces? I have slavishly copied examples from the Developer's Guide, but nothing works - I never get a popup window appearing.

    I'm back again and unfortunately I haven't got this to work. I've scaled down my jsp to just include enough to test the pop-up functionality.
    First here's the code from my jsp page(index.jsp):
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <!-- import tag libraries -->
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af" %>
    <f:view>
    <afh:html>
    <afh:head title="JSF Test Pop-up Page">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <meta name="MSSmartTagsPreventParsing" content="true"/>
    </afh:head>
    <afh:body>
    <af:commandLink text="Test Pop-up" action="dialog:test" useWindow="true"/>
    </afh:body>
    </afh:html>
    </f:view>
    and here's a copy of faces-config.xml:
    <?xml version="1.0" encoding="windows-1252"?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
    <application>
    <default-render-kit-id>oracle.adf.core</default-render-kit-id>
    </application>
    <!-- Navigation Rules -->
    <navigation-rule>
    <from-view-id>/index.jsp</from-view-id>
    <navigation-case>
    <from-outcome>dialog:test</from-outcome>
    <to-view-id>/results.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    According to the docs on ADF Dialog Framework this is all I need to have in place in order for it to work. What am I missing?
    Thanks again to all replies.

  • Need file adf-faces-skins-doc.xml

    Hi
    I have down loaded the latest ADF release. I want to customize the ADF skins, I am not able to find file adf-faces-skins-doc.xml in skins folder which explains the Style sheet attributes of the ADF component.
    Can any one please send me this file or tell me the location on internet where I can find it.
    Thanks

    Hi!
    Download the sample application. The file you're searching for should be inside the warfile.
    http://www.oracle.com/technology/products/jdev/101/howtos/adfskins/adffaces-skin.war
    Claus

  • ADF without using ADF-Faces

    I'm starting a new project and I want to combine the use of ADF without using adf-faces in other words I want to connect to the Oracle data base through ADF while building my own beans.

    Well I'm still having problems with "ADF without using ADF-Faces" so I went back and found documentation:
    Oracle® Application Development Framework
    Developer’s Guide
    10g Release 3 (10.1.3)
    B25386-01
    However I came to point where I was confused with the TopLink documentation on 3.7 Querying Objects where it said:
    You cannot configure the sort criteria of a TopLink query from Oracle JDeveloper. You
    must write a Java method, using descriptor amendment method. See Section 3.3.3.2,
    "Using Amendment Methods" for more information.
    I find this hard to fathom would you not want to sort the dataset on a JSF table?
    The link takes you to a statement that has nothing to do with Sorting.
    Jim

  • Using ADF-FACES wih Apache Geronimo or IBM Websphere-CE?

    If you have used adf-faces with apache geronimo or IBM WASCE, could you share with me the following information:
    1. How you deploy an ear or war file.
    2. The sets of adf-faces jars you used.
    3. Did you put the adf-faces jars in the geronimo repository or sharedLib folder or in your web application WEB-INF/lib.
    4. What are the possible pitfalls and problems to watch out for.
    Please I am looking for response ONLY from people who have practical experiences of deploying adf projects to apache geronimo or IBM WASCE. 
    Thanks in advance.

    Hi,
    Did you tried keeping the jsf and jstl api and implementation jar files in your Web application and change the classloader order to parent last ?
    Regards,
    Catalin

  • 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>.

  • How to save multiple rows using ADF faces ?!

    Hello;
    I am developing a search page using ADF faces (jdeveloper 10.1.3).
    after building my view i dragged it as search form on my page then i dragged it again as a read only table to display results with different iterator.
    I have a field act as a flag with 'Y' and 'N' value so i converted this field in the table to select boolean checkbox.
    what i need is ...
    after processing search operation i want to update this flag by 'Y' or 'N' (select/un-select checkbox) then click on a save button to save all result rows flag with its new status to the data base.
    Wish to know how to implement that.
    Thanks a lot

    Searching this forum yields How to do a bound af:SelectBooleanCheckbox inside of af:Table
    Hope this helps

Maybe you are looking for

  • Connection between iphone and i-tunes

    When I try to connetc my iphone to i-tunes appears this message, unable to connect you iphone unknow error no. 0xE800000A?

  • Ask the Experts Session on Project GlassFish (Nov. 14-18)

    Got a question about Project GlassFish (https://glassfish.dev.java.net/), Sun's Open Source Application Server and implementation of Java EE 5? Get answers during this Ask the Experts session. You can post a question about Project GlassFish on the As

  • Buy Macromedia Studio 8

    I would like to buy studio 8 but dont have $1000 or even $500 anyone know of a better place to buy used or cheap versions I want them to be able to be updated but I dont't necessairily need a box. Thanks CG

  • Aide réinitialisation d'un booléen

    Bonjour, J'ai un petit problème. J'aimerai réinitialiser la valeur d'un booléen  (bouton) à 0 juste a près l'avoir mis à 1 le problème c'est que ce booléen se trouve dans un tableau de cluster  et que dans ce cas ci je ne peux pas modifier son action

  • Transfer music from old laptop to new laptop

    I want to transfer music from my old laptop to a new one with Itunes for my Ipod touch, but it keeps saying the Apple id is already is in use. I deactivated it on old laptop. Can anybody help? When I plug the Touch into the new laptop and try to sync