JDeveloper 10.1.3.4.0: Controlling HTML formatting of ADF Faces components

I have been investigating the ADF Faces components, and some of them write a fairly substantial block of HTML to the browser.
The inputText, for example, renders an HTML table containing, among other things, an input, required field indicator, and a span for error display.
This would appear to limit the amount of control a page designer would have over the precise layout of these sub-elements.
We are en E-Commerce shop, so the ability to control the exact layout of our pages is critical to our business.
Are the ADF Faces components going to allow us the fine-grained UI control we need?
It could be a coincidence, but it seems as if all the real-world application examples in the ADF documentation seem to be business-type applications,
where the UI is right out of the box with minimal tweaking.
Thanks,
Jonathan

Jonathan,
For a label above the text you can use this:
            <af:group>
              <af:outputLabel value="outputLabel1"/>
              <af:inputText/>
            </af:group>You can also achieve a lot of other customization with skins for ADF Faces components.
But more to the point - since the JSF components offer you more then just basic HTML component I guess there might be a limit to the customization you can do to them.
At the end your company will need to make the call on what is more valuable - the ability to stick exactly to a style or the ability to use components with rich functionality that save you coding.
Think for example how much coding on the client you'll need to do in standard JSP/HTML to achieve what the ADF Table component gives you out of the box (sorting, range paging, detail disclosure, banding, etc). Maybe it is worthwhile to be a little more flexible on the layout issues instead of ending up wasting a lot of time writing these code.
In any case even if you choose to go with plain JSP and Struts or with plain JSF and the plain JSF components - the ADF framework will still enable you to do drag and drop binding to your UI.
The benefit of the ADF Faces components is the built in functionality they provide with things like partial page rendering, Ajax functionality etc...

Similar Messages

  • ADF Faces Components and HTML/JSP Pages

    We would like to create HTML/JSP pages and include some of the ADF Faces Components; ie: date picker, radio buttons, etc.
    When we develop this type of page, upon running in the embedded OC4J, the HTML is processed first and then the ADF Faces Components are processed. In the design panel/editor, everything is in the correct sequence. Upon running in the OC4J, it doesn't matter where in the code we place the ADF Faces Components, these ADF Faces Components always appear at the end of the other HTML and JSF Faces components in the displayed page.
    How can we mix the two technologies? ADF Faces alone is not flexible enough for our needs. We want to use the JSP:include tag for reusable code which works fine in a HTML/JSP page, but not in a ADF Faces PanelPage or PanelBorder or anything similar.
    We're running the EA17 version of the tag library.
    Can we mix the technologies? What are we missing? Is this an issue with the embedded OC4J? Will it make a difference if we develop JSP pages as pure JSP or the JSPX option?
    Thank you.
    Message was edited by:
    [email protected]

    The following tag lib allowed me to mix HTML and JSF tags (not sure about other JSP tags though). Hope this helps:
    http://jsftutorials.net/htmLib/
    Chris

  • Controlling SelectManyCheckbox layout in ADF Faces

    Hi,
    The only possibilities for the layout for an ADF faces select many checkbox seem to be "horizontal" or "vertical". How can we control the layout to say - have 10 checkboxes laid out horizontally in two groups of 5 vertically laid out checkboxes ?
    If there is no such attribute to control the layout better, does anyone have any recommendations on how this can be accomplished in any alternative way?
    Thank you

    Hi,
    no, but what about using a scrollbar?
    <af:form inlineStyle="width:400px; height:200px; overflow:auto;">
              <af:selectManyCheckbox label="Departments" layout="vertical">
                <af:forEach items="#{bindings.DepartmentsView1.rangeSet}" var="li">
                  <af:selectItem label="#{li.DepartmentName}"
                                 value="#{li.DepartmentId}"/>
                </af:forEach>
              </af:selectManyCheckbox>
            </af:form>Frank

  • ADF Faces components are not rendered in Jdeveloper visual editor

    Hi!
    I'm using Jdeveloper 1013 Developer Preview. I found that the components of ADF Faces EA16 are not shown on the visual editor in Jdeveloper, but the ADF Faces EA15 components are shown. I'm just wondering if this is normal, and there is anything that can be done to fix this?
    Meen

    I know there's a recent release with a visual editor problem, but I'm not sure which one it is. This thread says you need a fresh install? Can you try that?
    Re: ADF Faces tutorial/code sample for data table?

  • Change the styling of the generated html markup in ADF Faces

    Dear All,
    I just have some question on the generated HTML markup of panelStretchLayout component.
    Supposed I have this layout
    <af:panelStretchLayout id="cntDiv" dimensionsFrom="children" topHeight="auto"
      startWidth="0" endWidth="0">
         <f:facet name="top"/>
         <f:facet name="center"/>
         <f:facet name="bottom"/>                                    
    </af:panelStretchLayout>If you look at the generated html markup it will create a div element with below styling
    <div id="pt1:cntDiv::t" style="position:relative;overflow:hidden;width:100%"/>
    <div id="pt1:cntDiv::c" style="position:relative;overflow:hidden;width:100%"/>
    <div id="pt1:cntDiv::b" style="position:relative;overflow:hidden;width:100%"/>My problem is with the overflow:hidden property. Is there a way or configuration to remove or override this property
    when the markup is generated?
    Use case:
    I wanted to use fancy Jquery sliding menu but everything gets messed up because of this css style property.
    I know you should not mix up JSF with client side components but I need to use those fancy javascript powered menu's.
    Is this possible? If so how?
    Thanks
    JDEV 11g PS5

    Hi there,
    You are saying that you want to use mouse-over. But I think you don't want to use that.
    I've been working with this, and I got it working. However........ Image this: "you have a table with 10 visible rows. You have some buttons below the table. After you select a row (lets say the third) , you might want to navigate to the details by "pushing" a button.
    What will happen with the selected row.......your mouse goes to the button... your mouse has to go over all the rows in the table.... The last row your mouse goes over will be selected.... and these details will be shown. Not the details of the row that you initially selected....
    If you still want this..... I might be able to help you.
    Luc Bors

  • ADF Faces components with HTML and DIV tags

    Hello all,
    I want to know if there a way to place a <div> tag within an adf faces component tag? eg. <af:table> tag and insert the div tag between </af:column>? I tried doing this by placing the div tag between columns and also enclosing it with verbatim tags, but a parsing exception occurs during run time. The purpose of this is to create frozen columns for horizontal scrolling.
    The code looks like:
    <af:table ...>
    <af:column headerText= ...>
    <f:facet name= ...>
    <h:outputText value= .../>
    </f:facet>
    </af:column>
    <f:verbatim>
    //DIV TAG
    </f:verbatim>
    <af:column headerText= ...>
    <f:facet name= ...>
    <h:outputText value= .../>
    </f:facet>
    </af:column>
    <af:column headerText= ...>
    <f:facet name= ...>
    <h:outputText value= .../>
    </f:facet>
    </af:column>
    <f:verbatim>
    //END DIV TAG
    </f:verbatim>
    </af:table>
    Thanks in advance.
    -Wes
    Message was edited by:
    zeoneozero

    repost
    -

  • How to add adf faces in component pallete of jdeveloper 11g?

    how to add adf faces in component pallete of jdeveloper 11g?

    Hi,
    the replacement of ADF Faces HTML components in JDeveloper 11 is Trinidad. For existing applications, a migration path will be provided in JDeveloper 11 production. I wouldn't recommend configuring ADF Faces in JDeveloper 11.
    You an configure ADF Faces Components in JDeveloper 11 by :
    - Tools --> Manage Libraries
    - Create a User Library
    - select ADF Faces adf-faces-impl.jar
    - Enure the namespace is not af or afh but something different to not cnflic with teh ADF Faces RC components
    Note that adding the ADF Faces components to the component palette will not make them show in the ADF binding context menu nor will it automaticaly set up the web.xml file. The components are available as any other JSF library set
    Again, I wouldn't go this way ;-)
    Frank

  • Jdeveloper 10.1.3.3.0.4157  ADF faces  Do not render in visual editor

    The ADF Faces Components do not display in the visual editor
    The code window shows all these features present and properly coded
    These components are from the ADF Faces Core page of the Component Pallete
    I tried quitting and re-starting jdeveloper , to no avail
    I placed an af:panelPage on h:form and typed in a title-(blank visual editor)
    I placed an ObjectImage and placed it on the branding facet
    I bound a logo.image to this component - (still blank visual editor)
    All of this insertions into the form are recorded in the code window
    but do not appear in the Visual Designer.
    Using jdeveloper10.1.2.2.0.4157
    JDK 1.5.0_15
    windows xp professional
    The example project is from the Book:
    Oracle JDeveloper 10g for Forms & PL/SQL Developers

    Thank you for your reply.
    On jdevelper startup I get the following message:
    ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader.
    For no Reason at all,(except for starting and shutting down jdeveloper)
    I am now getting a view: An Outline with tags in order , but not a simulation
    of a web page???But a correct development structure with tags/values identified.
    there are many libraries in the properties page , I'm a newbie so wouldn't
    know if any of these would help?

  • ADF Faces Application without using JDeveloper/TopLink/BC4J

    Hi,
    I want to make a small database driven application using ADF Faces Components without any hlp of JDeveloper, BC4J or Toplink.
    I could not see any document/ sample application which demonstrates creating J2EE application with ADF Faces by avoiding OC4J, JDeveloper IDE & TOPLINK.

    Hi, any luck trying to use adf faces in another IDE besides Jdeveloper?? Please let me know ;)
    thanx.
    T.

  • ADF-Faces and JDeveloper 11

    I have an application that already done and running, the JSPs of this application almost generated with JHeadStart,
    the components are ADF-Faces components with the ADF-Faces implementation of the release 10.1.3.3 of Jdeveloper.
    I'd like to find a way to migrate this application to new JDeveloper 11.
    so the tables becomes not fixed width and height columns, and also to be possible to use the new features in JDEV 11

    Saeed,
    this is really a JHeadstart Forum question (JHeadstart
    There is no JHeadstart 11g available yet.
    Migration should not be done without proper JHeadstart support.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

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

  • Where is ADF FACES HTML tags in JDeveloper 11g?

    I am using JDeveloper 11.1.1.2.0 for my project. I remembered in 10g I have a list of HTML tags such as, afh:tableLayout, afh:cellFormat, etc under ADF FACES HTML package. However, in new JDeveloper 11g, I could only see ADF Cores and there is no ADF Faces HTML tags. Are they still available in 11g? If so, how I could install those tags in JDeveloper 11g?

    Thanks for your quick response. Actually I am converting a Trinidad project into ADF 11g. In old one, I used a lot of tableLayout components. It seems impossible for me to convert all those tableLayout into ADF 11g layout components in a short period of time.

  • Hou to surpport the plug-ins in web browser with AIR mx.control.HTML

    My app used the google earth plug-in in browser, but when i use AIR mx.control.HTML in FB3, the plug-in can not take effect, the tooltip is "The Google Earth Plugin is not currently installed."
    It is always ok in IE, firefox

    The plugin works only on Windows (Firefox and IE).
         http://googlesystem.blogspot.com/2008/05/google-earth-browser-plugin.html
    HTH.

  • [svn:fx-trunk] 12865: Fix mx.controls.HTML and mx.core. FlexHTMLLoader so the participate in the current IME scheme

    Revision: 12865
    Revision: 12865
    Author:   [email protected]
    Date:     2009-12-11 13:51:27 -0800 (Fri, 11 Dec 2009)
    Log Message:
    Fix mx.controls.HTML and mx.core.FlexHTMLLoader so the participate in the current IME scheme
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-24391
    Reviewer: Corey
    API Change: No
    Is noteworthy for integration: No
    tests: checkintests mustella/apollo/HTML
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24391
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/airframework/src/mx/controls/HTML.as
        flex/sdk/trunk/frameworks/projects/airframework/src/mx/core/FlexHTMLLoader.as

    OK, Just changed the screen option in DEVICE... And now I'm getting this in my log files. When I try and install that package with pacman, it wants to remove the normal nvidia driver. Can I run one for each graphics card?
    Xorg.0.log
    (II) Module "ramdac" already built-in
    (WW) NVIDIA(0): The NVIDIA GeForce FX 5200 GPU installed in this system is
    (WW) NVIDIA(0): supported through the NVIDIA 173.14.xx Legacy drivers.
    (WW) NVIDIA(0): Please visit http://www.nvidia.com/object/unix.html for
    (WW) NVIDIA(0): more information. The 185.18.36 NVIDIA driver will ignore
    (WW) NVIDIA(0): this GPU. Continuing probe...
    (II) resource ranges after probing:
    [0] -1 0 0xffffffff - 0xffffffff (0x1) MX[b]
    [1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[b]
    [2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[b]
    [3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[b]
    [4] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[b]
    [5] -1 0 0x00000000 - 0x00000000 (0x1) IX[b]
    (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
    (==) NVIDIA(0): RGB weight 888

  • JDeveloper 10g, ADF Faces & BC: setVar method on CoreTable is not working

    Hi all,
    I am in the process of creating a custom tag library for our organization. I seem to be having problems with the setVar method on the CoreTable component. I created a simple reproducible example using the scott/tiger schema. Within my tabletest.jsp, I have a af:table which was created via dragging from the datacontrol pallet. Next, I add my custom tag and set the same value attribute. When I run the page, #{row.Deptno} does not evaluate to anything! However, I know that the value is set properly due to the same number of rows appearing within my custom table tag.
    Suggestions are appreciated.
    thanks,
    Wes
    Here is the screen shot of my example:
    http://www.flickr.com/photos/54652784@N03/5062690216
    jsp code:
    <!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/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <%@ taglib uri="http://acme.customtag" prefix="customtag"%>
    <f:view>
    <afh:html>
    <afh:head title="tabletest">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    </afh:head>
    <afh:body>
    <af:messages/>
    <h:form>
    <af:outputText value="below is the adf table"/>
    <af:table value="#{bindings.ViewObj1.collectionModel}" var="row">
    <af:column sortProperty="Deptno" sortable="false"
    headerText="#{bindings.ViewObj1.labels.Deptno}">
    <af:outputText value="#{row.Deptno}"/>
    </af:column>
    <af:column sortProperty="Dname" sortable="false"
    headerText="#{bindings.ViewObj1.labels.Dname}">
    <af:outputText value="#{row.Dname}"/>
    </af:column>
    </af:table>
    <af:objectSpacer width="10" height="50"/>
    <af:outputText value="Below is the custom table"/>
    </h:form>
    <customtag:customtable value="#{bindings.ViewObj1.collectionModel}"
    disabled="false"/>
    </afh:body>
    </afh:html>
    </f:view>
    CustomTable.java code:
    package customtag;
    import java.io.IOException;
    import javax.faces.application.Application;
    import javax.faces.component.UIComponentBase;
    import javax.faces.context.FacesContext;
    import javax.faces.el.ValueBinding;
    import oracle.adf.view.faces.component.core.data.CoreColumn;
    import oracle.adf.view.faces.component.core.data.CoreTable;
    import oracle.adf.view.faces.component.core.output.CoreOutputText;
    public class CustomTable extends UIComponentBase {
    public static final String COMPONENT_TYPE = "customtag.customtable";
    public static final String RENDERER_TYPE = null;
    private CoreTable table = new CoreTable();
    public CustomTable() {
    public void encodeChildren(FacesContext context) throws IOException {
    // Encode the top most component
    Application apps = context.getApplication();
    table.setVar("row");
    Object value = getAttributes().get("value");
    CoreColumn column = new CoreColumn();
    CoreOutputText cout = new CoreOutputText();
    if (value != null) {
    table.setValue(value);
    ValueBinding rowValueBinding =
    apps.createValueBinding("#{row.Deptno}");
    Object rowValue = resolveExpression("#{row.Deptno}");
    if (rowValue != null) {
    System.out.println("rowValue is reconized. " + rowValue);
    cout.setValue(rowValue);
    } else if (rowValueBinding.getValue(context) != null) {
    System.out.println("rowValueBinding is reconized." +
    rowValueBinding.getValue(context));
    cout.setValueBinding("Value", rowValueBinding);
    } else {
    System.out.println("row is not reconized.");
    cout.setValue("this is a hard coded row attribute value");
    column.getChildren().add(cout);
    table.getChildren().add(column);
    table.encodeAll(context);
    public static Object resolveExpression(String expression) {
    FacesContext ctx = FacesContext.getCurrentInstance();
    Application app = ctx.getApplication();
    ValueBinding bind = app.createValueBinding(expression);
    return bind.getValue(ctx);
    public boolean getRendersChildren() {
    return true;
    public String getFamily() {
    return COMPONENT_TYPE;
    }

    Hi,
    you don't mention a JDeveloper version. If you are not on a recent version, can you try one. If it reproduces, please provide steps required for a reproducible test case
    Frank

Maybe you are looking for

  • Sales order for a project

    Dear all Requirement : To get the list of  total sale orders (of a particular order type) for a specific project . e.g. : I would like to extract the list of all sale orders (only sale order type: OR) for a project. Plz guide. regards Sapshed

  • Break points set in an included script during debugging sporadically jump to the last line of the included script

    As I stated in the title, I use the ScriptInclude command quite extensively, because we have at our company a policy of maintaining one large-ish (roughly 7k lines) function library which is included by various individual evaluation scripts. Debuggin

  • Adobe Reader CPU Usage

    Hello All, The problem i'm having is that "acroread" process after being open for some time (many hours or even days) starts to use all the CPU without anyone touch the application. This causes lots of trouble because i'm using all the time simulatio

  • Blackbook shuts down while booting up

    So I buy a new Macbook a few weeks ago (three days before the upgrade, ha!) and while very pleased with the new machine I just started experiencing something very troublesome. After using it in target to disk mode the Macbook can't complete it's boot

  • 25p material recorgnised as 25i

    Hi, Shooting 25p using a Canon HF100 PAL. After import FCPX identify it as 25i. Looks like a incompatibility. What shall I do as workaround? Change the properties for each clip, project or both?  Or does it not matter. At first look the output from F