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.

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

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

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

  • 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

  • Problems while deploying a JSF/ ADF Faces App to Apps Server 10.1.3.0.1

    Dear All,
    I built a JSF based application (Using ADF Faces Components) developed in JDeveloper 10.1.3.1.0 (Application Configuration: [JSF, ADF BC]. The application is running fine with the embedded OC4J intance (automatically aunch by JDeveloper).
    I am now trying to deploy it on the installed Oracle Application Server (running on the same local machine). The details of the versioning for different components in this App server are as follows:
    1. OracleAS J2EE 10.1.3.0.0
    2. Oracle ADF 10.1.3.1.0
    The deployment steps I followed (as given in Chapter 34 of 'Oracle ADF - Developer's Guide for Forms/4GL Developers') seems to be running smoothly. This is because the deploy process ends up showing no erros in the message window.
    However when I tried to test the application with a browser using the Apps Server URL (HTTP://localhost:8888/<my-app>/<firstfile.jspx>), I am finding 'Page not found error'.
    I also tried a manual deployment (using deploy to a WAR file then copy the resulting war & ear files and the xml descriptor file to the Apps server's http root) and gives the war file URL in the browser.
    In this case now I am getting the following error page:
    =====================================================
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    An invalid character was found in text content. Error processing resource
    'http://localhost:8888/HousingWithADF.war'.
    =====================================================
    Any idea?
    Regards,
    Irfan Ilyas
    PS: I am doubtful about creation of Deployment Descriptors step as the documentation is not very clear about exactly which descriptors we need to create. Using my own idea, I tried to create J2EE descriptor, and one tld (taglibrary) file. However, the manual war deployment generates only the tld file in the deploy folder.

    Thanks for the hint.
    OBSERVATION #1:
    After looking through the administration console for OC4J instance, I found my application name with UP status. When drill-down further, the console gives me the URL which can be used to test the application.
    While using the URL, a different error message was found:
    URL: http://localhost:8888/KFUPMHousing/
    Error:
    ====================
    HTTP 403:(Forbidden)
    ================
    You are not authorized to view this page
    You might not have permission to view this directory or page using the credentials you supplied.
    From my experience of Microsoft IIS, I know here I may need to configure the folder permissions for a web-user. But exactly which user and where it is defined (at OS Level or in AS), I am not much sure.
    Can you elaborate?
    OBSERVATION #2:
    The log text for my application shows the following error (for the attempt I did with the URL shown above)
    Log Text
    07/01/05 22:43:38.62 HousingWithADF: JspServlet: unable to dispatch to requested page: Exception:java.io.FileNotFoundException: C
    :\product\10.1.3.1\OracleAS_1\j2ee\home\applications\HousingWithADF\HousingWithADF\HosReqInfo.jspx (The system cannot find the file specified)
    However, I can browse the file on my local disk in the path specified with a little change in the path. The file is found in 'pages' folder within the last folder,named HousingWIthADF. I tried to move the file in the exact path specified in the log and now finding the 'Page not found' error.
    Any idea?
    Irfan Ilyas

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

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

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

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

  • 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

  • Protocal between ADF Business Service (ADF -AM) and the ADF Faces Model.

    Hi,
    Anyone knows how the communication is happening between ADF-AM and the ADF Faces model ? I mean the protocol? Is it handling by the application server container with the help of ADF libraries?
    I knew in ADF Faces and EJB the communication is hap[ping via RMI/IIOP (standard EJB call). But in the ADF BC and application module i am bit confused about the access. I knew we can expose the AM as state full session bean. But by default how that is happening. Experts please help me to understand the architectural concept of this.
    -t                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi,
    the question is not basic and valid too. Just wanted to understand the motivation behind it
    For bc4j i am not sure. can we full fill the above deployment scenario?
    Yes, you can. ADF BC allows you to deploy the business service as an EJB 2.1 model and then have the Data Control hooking up to it (JNDI).
    Apart from this i would like to know the communication protocol (by default) between ADF BC application module and the view model which is the data control. In ejb when we create the data control we can specify that is Local or remote ( Some people said the EJB binding is not full supported in some cases but for ADF-bc it is). But how this is happening in the ADF-BC.
    It would work like a normal EJB client. The ADF BC client interface would reside on the web tier and access the remote business service. So there is nothing different here than when using EJB. However, not that it uses EJB 2.1 still and that we don't see customers using this approach in a web deployment. It made lots of sense (performance) in desktop application development with ADF BC, but in web application development a remote business service access doesn't seem to be state of the art (and even using straight EJB you would use the local interface and have the business service model reside on the same machine as the web module)
    Frank

  • 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

  • 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

Maybe you are looking for