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
-

Similar Messages

  • ADF Faces - issue with Portal and af table

    I wonder if anybody could help me with a problem we are experiencing with running our ADF Faces app inside a portal (NOT Oracle Portal). We are using the af table tag with the rows attribute set as follows:
    <af:table emptyText="No items found"
    rows="10" banding="row"
    bandingInterval="1"
    binding="#{backing_ModuleSearchReg.table1}"
    id="table1"
    var="row">
    What this does is if we have more than 10 rows to display it will display
    a table header that has a label 'Previous 1-10 of nnn' Next 10. However, when you click on 'Next 10' it produces a Javascript error.
    When we run the app outside of the portal we do not get this problem.
    I believe this is related to known issues with JSF and Javascript inside a 'framed' web page. But if anybody help me with this or point me to a resource that can help it would be very much appreciated.
    Many Thanks in advance.
    Chris

    Hi,
    I remember a similar issue with inner frames that should be fixed in JDeveloper 10.1.3.3. The problem was that the ADF Faces JavaScript did not get the correct document root.
    Frank

  • 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

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

  • Oracle ADF Faces Components, Early Access Release 8 is now available

    Oracle ADF Faces is a rich set of user interface components based on the new JavaServer Faces JSR (JSR-127). Oracle has been actively involved in this JSR since its beginning. The Oracle ADF Faces Components provide various user-interface components with built-in functionality - such as data tables, hierarchical tables, and color and date pickers - that can be customized and re-used in your application.
    ADF Faces also includes many of the framework features most needed by JSF developers today:
    * File upload support is integrated at a component level.
    * Client-side validation is automatically derived from Validators and Converters for an improved user experience.
    * A pageFlow scope makes it easier to pass values from one page to another.
    * A new hybrid state saving strategy gives developers the best of both client and server-side state saving.
    ADF Faces ensures a consistent look and feel for your application, allowing you to focus more on user interface interaction rather than look and feel compliance. The components support multi-language and translation implementation as well as accessibility features. ADF Faces Components use Partial Page Rendering (PPR) offering superior runtime interactivity. PPR allow the browser to just render a piece of a page instead of the entire page.
    The intention with this early access release is to give developers/architects an opportunity to evaluate JSF and Oracle's JSF component offering.
    Oracle ADF Faces Components can be used in any IDE that support JSF, including Oracle JDeveloper 10g.
    Oracle ADF Faces Components, EA8

    Jonas,
    It works if I include the following:
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    The source is now:
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/EA8" prefix="af"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>untitled</title>
    </head>
    <body>
    <f:view>
    <af:outputText value="hello ADF Faces!"/>
    </f:view>
    </body>
    </html>
    Did I feel out something in my library entry?
    Thanks.

  • Consuming JSF & ADF Faces Components in Portal Page

    I am totally new to Oracle Portal environment and doing some analysis of using Portal in our application.
    I was reading that we can create JSP Portlets like adding scriptlets, expression and other JSP & HTML elements.
    Is it possible to consume JSF & ADF Faces components in Portal page? I mean, is it possible to create JSF Portlets?

    The WSRP provider, which is shipped with Portal 10.1.4, would provide this functionality through the JSF bridge. You need to install Webcenter to get the bridge. This makes me think whether you should use Oracle Portal or rather decide to go for Webcenter as development platform, especially if you have a J2EE background already.

  • ADF Faces Components Demo - Illegal Characters error

    Hi ,
    I downloaded the ADF Faces Components Demo for version 11.1.2.3.0 from http://www.oracle.com/technetwork/developer-tools/adf/downloads/index.html . I tried following instructions :ADF Faces Components Demo Install Instructions
    This is getting downloaded as rcf-dvt-demo.zip. I renamed it to rcf-dvt-demo.war.
    Then I tried to create a project from this war... and got following error :
    The project file "C:\rcf-dvt-demo.war!\Project.jpr" is not valid. The file name may contain illegal characters, it may be too long, or permissions for this file or one of it's parent directories may be restricted.
    Please help . Am i downloading from correct location and following the correct instructions.
    Thanks,
    Rajdeep

    Good Catch Timo ... Lot of thanks.
    Still I will put down the silly mistake of overlooking the wizard.
    I was doing the correct thing - "create a new application and inside this application workspace you add a new 'project from war'." But mistake was .. First step of wizard it is project name and path,, and then second step is war location... and in hurry I was giving the project name and war location in first step.
    Thanks,
    Rajdeep

  • Help with placement of div tags

    Hello.  I am sorry to ask what probably is a dumb question, but I'm new, using Dreamweaver CS5, and I need some help.  I'm sure I'll be posting here a few times during this process of building a new site, but I'm hoping it can be a good way for me to learn.  I've watched a lot of tutorial videos, and so here I am.
    I have my site, but I'm having problems being able to place div tags.  I set it up with a wrapper div, a header div, a content div, footer div, etc.  But, inside those divs I want to have other div's where I can place things like a client login box, etc.  So, I tried and tried to place them after one div, or before one, but I just can't get them to work right.  I'm very proficient at Photoshop, but web work is fairly new.  I've done a few sites, but in Golive and just basic bringing them in from Photoshop.  Now I want to learn correctly, so I'm trying all of this.
    I found a way to make a box, using AP Div tag, and then move that where I want it, but, it doesn't work right for me then.  I don't want it fixed in the same spot absolutely, but rather I want it to move with the page.  I'm going to post a link to the site I'm working on, in case that helps.  But, if you look at the site so far, you can see for example I want the text box that says client login to move as you make the page wider or smaller.  It's fixed now.  But, it's the only possible way I know how to put the box and div tag where I want it.  When I just try to insert a div tag (not an AP div) it just goes underneath the div above it.
    What I'm asking is, how do I place div's within div's?  Or, can I use this AP div to put it where I want, and then change it to a regular div, and it stay in the right spot?  I just don't understand how exactly to place divs where I want them, unless I use the AP div box and move it around the screen.  Also, if I have a div box setup, is there a way to drag it somewhere else or reposition it somewhere else on the screen just by dragging?  It's all a bit hard for me to figure out at this point, but I appreciate any help you can give me.
    The AP Div I used is at the top that says client login.  That's the box/table/div tag I'm trying to set up correctly, so it moves with the other elements, like the logo, as you make the page wider or less wide.
    Here is the link:
    http://www.gagephotography.com/boudoir/boudoirsite/index4.html
    Thank you again.

    DW is not drag & drop friendly like graphics or word processing apps.
    APDivs are NOT for primary layouts.  They are for special situations and should be handled with care or you'll end up with a mess.  Here is why:
    http://apptools.com/examples/pagelayout101.php
    The best advice I can offer is to familiarize yourself with HTML markup (content) and CSS (styles) before you even open Dreamweaver.   Without a working knowledge of code, you're not going to get good results.
    Start here:
    HTML & CSS Tutorials - http://w3schools.com/
    Learn CSS positioning in 10 Steps
    http://www.barelyfitz.com/screencast/html-training/css/positioning/
    How to Develop with CSS?
    http://phrogz.net/css/HowToDevelopWithCSS.html
    New DW Starter Pages --
    http://www.adobe.com/devnet/dreamweaver/articles/introducing_new_css_layouts.html
    Creating your first web site in DW CS5 -
    http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • ADF Faces Components in a Portal

    Hi,
    We have managed to use the ADF Faces components in a normal web environment, but have had problems when using the components in a portal environment. We are using the JSF portlet bridge classes for rendering portlets. We are getting a ClassCastException in the FacesServlet... Anyone used these components in a portal and know how to get around this problem?
    Thanks.

    what is the stack trace of the exception?

  • Advise on maximum number of Active data ADF faces components on one page

    How many active data ADF faces components (ADS configured in long polling transport mode) can we have on a page? Is there any restriction (eg: one factor could be max number of concurrent HTTP connections) ?

    Can you please tell us which JDev version you are using? A use case would be appreciated too.
    There has been a discussion on ADS here the last couple of days. Search the forum and you may find some useful info.
    Timo

  • Need some help with cfoutput and a tag

    hey there,
    got meself into some issues with <a> and <cfoutput> tags.
    Problem:
    myResult = <a href="http://www.mysite.co.uk" rel="nofollow">mysite</a>
    <cfoutput>#myResult#</cfoutput> outputs "<a href="http://www.mysite.co.uk" rel="nofollow">mysite</a>" (surprise isn't it?)
    now is there any way to output it as html so it would display a link to "mysite"???
    cheers,
    Simon

    thanks!
    I've missed the fact that it was xml data. Just added .xmlText at the end and that sorted my problems. However I'll write down cfsavecontent solution for the future reference.
    cheers,
    Simon

  • I just updated my Firefox browser to Firefox 8. I am a college student and practice with HTML and CSS for class assignments. The fonts in all my html documents are being overwritten online by your script typeface. How do I resolve this issue?

    I just updated my Firefox browser to Firefox 8. I am a college student and practice with HTML and CSS for class assignments. The fonts in all my html documents are being overwritten online by your script typeface. I did not have this issue in the older version. I use an iMAC running OS10.6.8. How do I resolve this issue?

    Starting with this, you have errors in your CSS code.
    body {
      margin-top: 0px;
      margin-right: 0px;
      margin-bottom: 0px;
      margin-left: 0px;
      color: 151515;
      font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
      background-color: EFF5F8;
    body {
      margin:0;
      color: #151515;
      font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
      background-color: #EFF5F8;
      font-size: 100%;
    Related links:
    Windows Chrome, why do my fonts look so bad? - Lee Green
    css3 - Bad font rendering Chrome - Stack Overflow
    Nancy O.

  • ADF Faces Table with a Total row calculated?

    Hi there OTN Community:
    I have another doubt.
    I have an EJB dataControl, and i use one of his collections to display the data in an ADF Faces Table. One of the columns of the Adf Faces Table is numeric, And i have to display the Total of that Column.
    I only shows 10 rows per screen, but i need to show the total of all the rows.
    How i can calculate it?

    Mmmmm..... You're right!...I will try that.
    Thanx :)
    Hey, and....You know? i was thinking, maybe i can get the iterator and then capture each object of the iterator to compute the total. That is a crazy idea?, its possible?, its not recommended? or its ok too? :P
    Thanx in advance.
    Dany

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

  • Flash embed tag does not obey percentage size, even with html and body at 100%

    For some reason i cannot get this swf file to show at 90% width and height. i have tried adding a style sheet in the header to explicity set the html and body to 100% but this still does not help. can anyone see if there is a problem in the code?
    <pre><nowiki><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title></title>
    <style type="text/css">
    html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    </style>
    </head>
    <body>
    <center>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="90%" height="90%" ID="Captivate1">
    <param name="movie" value="tutorial.swf">
    <param name="quality" value="high">
    <param name="menu" value="false">
    <param name="loop" value="0">
    <embed src='tutorial.swf' width='90%' height='90%' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'/>
    </object>
    <BR>
    <p>
    <align=center><a Href="javascript:window.close();">Close Window</a>
    </p>
    </center>
    </body>
    </html></nowiki></pre>

    That may happen because of the &lt;center&gt; element that doesn't have a height and width specified. Remember to specify dimensions for all containers if you use percentages, otherwise you may end up with 90% of 0 or a default value.

Maybe you are looking for