Export adf faces to Excel

Hi All,
Does anybody how to export adf table records to excel without using DCIteratorBinding. i want to implement in Backing Bean is it possible?

Hi,
the ADF and ADF Faces classes are not shipped with JDeveloper 11. They become available later for production through customer support.
If you need to export data to Excel then you could use Apache POI or have a look at the file that gets generated by the export tag (the server side file) and create the same in Java
Frank

Similar Messages

  • Export adf table to Excel

    Hi All,
    Does anybody know how to export adf table records to excel sheet without using DCIteratorBinding.

    Hi Frank,
    Thanks for your suggestion.in the below method
    public void exportToExcel(ActionEvent actionEvent) throws
    IOException {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    Application application = facesContext.getApplication();
    // BindingContainer bindings = this.getCustomers();
    ValueBinding customerListBind =
    application.createValueBinding("#{CustomerViewBean}");
    customerView customer =
    (customerView)customerListBind.getValue(facesContext);
    customer.exportHtmlTableToExcel();
    in this method i need to send CustomerViewBean to the exportHtmlTableToExcel method.

  • Problem while exporting ADF table to excel

    Hello,
    I have some columns of random size which are left padded with 0.
    now the problem comes when I export the table containing these columns to excel, excel remove all those zeros from left.
    eg: 000000003726819563(table column value) after exporting to excel shows as 3726819563.
    Along with this I also want the footer part of table in excel.
    For some of the columns I have summary filed(i.e. sum) at the footer of the table which I want to show in excel.
    Can someone please guide me through these issues.
    Thanks in advance.

    Take a look at this: http://adfreusablecode.blogspot.com/2012/07/export-to-excel-with-styles.html
    With this code you can export the footer: http://dl.dropbox.com/u/22312971/adf-samples/ExportToExcelDemo/ViewController/src/view/ExcelBean.java
    Here is the entire demo project: http://dl.dropbox.com/u/22312971/adf-samples/ExportToExcelDemo.zip
    I a few days I will update the above post.
    Hope this help.
    AP

  • Export adf table to PDF

    Hi All,
    Does anybody knows how to write ADF Table records into pdf?
    Thanks in advance

    Hi user535777,
    Some ideas:
    http://technology.amis.nl/blog/?p=514
    http://iadvise.blogspot.com/2007/04/export-adf-table-to-excel.html
    http://wiki.apache.org/myfaces/Exporting_DataTable_To_MS-Excel
    Hope it helps,
    Regards,
    Tif

  • Reg: Exporting the data into excel in ADF 11g application.

    Hi All,
    We have developed an application in ADF 11g which retrieves the data from database in the form of table. Now we have a requirement to export that data into an excel sheet.
    Can anyone please help us regarding this.
    Thanks,
    Harsha

    Hi Harsha,
    you can use <af:exportCollectionActionListener /> component to do that. Set the exportedId property to point to of the table. You have options to export all rows or only selected rows.
    <af:commandToolbarButton text="Export All Rows to Excel" immediate="true"
                                                   id="exportAll">
    <af:exportCollectionActionListener type="excelHTML" exportedId="table"
                                                     filename="export.xls"
                                                     title="ADF Faces Export - All" exportedRows="all"/>
    </af:commandToolbarButton>
    <af:commandToolbarButton text="Export Selected Rows to Excel" immediate="true"
                                            id="exportSelected">
    <af:exportCollectionActionListener type="excelHTML" exportedId="table"
                                                     filename="export.xls"
                                                     title="ADF Faces Export - Selected Rows"
                                                      exportedRows="selected"/>
    </af:commandToolbarButton>Good Luck,
    Luc Bors

  • ADF Faces Export - All to CSV dose not export the table correctly

    Hi ,
    I followed the source code of this demo site( http://rcf.us.oracle.com:9008/faces-12.1.2.0.0/faces/components/table.jspx) to create two buttons to export a table to CSV file, one is to export all rows and one is to export the selected rows.
    The problem is the export all will generate a html file which dose not have the table content and the selected one works nicely except when I selected all rows than click export selected, it also generates the same html file as export all. The exception at the log on weblogic server and my source code are as below. Thank you!
    My jsff source code:
    <af:commandToolbarButton text="#{DataObjectBundle.EXPORTALL}" immediate="true" icon = "/images/export_all.png"
    id="exportAll">
    <af:exportCollectionActionListener type="CSV" exportedId="t8" filename="export.csv" title="ADF Faces Export - All"
    charset="utf-8" exportedRows="all"/>
    </af:commandToolbarButton>
    <af:commandToolbarButton text="#{DataObjectBundle.EXPORTSELECTED}" immediate="true" icon="/images/export.png"
    id="exportSelected">
    <af:exportCollectionActionListener type="CSV" exportedId="t8"
    filename="export.csv" title="ADF Faces Export - Selected Rows" charset="utf-8" exportedRows="selected"/>
    </af:commandToolbarButton>
    </af:toolbar>
    </f:facet>
    <f:facet name="statusbar"/>
    <af:table rowSelection="multiple" var="row" rowBandingInterval="0" partialTriggers="::addRow ::editRow"
    summary="#{DesignerBundle.EMPTY}" styleClass="AFStretchWidth"
    value="#{pageFlowScope.item.dataSupport.rows}"
    editingMode="clickToEdit" binding="#{pageFlowScope.item.dataSupport.table}"
    inlineStyle="border-color:Gray; border-style:solid; border-width:1.0px;" id="t8">
    Exception on WLS log:
    java.lang.ClassCastException: java.util.ArrayList cannot be cast to org.apache.myfaces.trinidad.model.CollectionModel
    at oracle.adfinternal.view.faces.export.TableContentProvider.getCollectionModel(TableContentProvider.java:42)
    at oracle.adfinternal.view.faces.export.CollectionExportDirector._renderAllDataRows(CollectionExportDirector.java:477)
    at oracle.adfinternal.view.faces.export.CollectionExportDirector._renderSelectedDataRows(CollectionExportDirector.java:559)
    at oracle.adfinternal.view.faces.export.CollectionExportDirector._renderDataRows(CollectionExportDirector.java:452)
    at oracle.adfinternal.view.faces.export.CollectionExportDirector._renderContent(CollectionExportDirector.java:127)
    at oracle.adfinternal.view.faces.export.CollectionExportDirector.export(CollectionExportDirector.java:109)
    at oracle.adfinternal.view.faces.export.ExportCollectionActionListener.processAction(ExportCollectionActionListener.java:199)
    at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:986)
    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:179)
    at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:123)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:107)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:101)
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:759)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:444)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:225)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.bi.nanserver.adf.servlet.BIADFServletFilter.doFilter(BIADFServletFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.beam.composer.BeamComposerFilter.doFilter(BeamComposerFilter.java:118)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:478)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:478)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:303)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:208)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:202)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:225)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3323)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3289)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2176)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2102)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2080)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1567)
    at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
    Edited by: 993119 on Apr 18, 2013 1:27 PM
    Edited by: 993119 on Apr 18, 2013 1:28 PM
    Edited by: 993119 on Apr 18, 2013 1:45 PM

    The url you provided tells me that you are an Oracle employee and that you using a version which is not available to the public.
    Please post your question in an internal forum.
    Timo

  • Exporting ADF Table Headers to an EXCEL sheet

    Hello,
    We have an adf table (Jdev10.1.3g). We need to export the Headers of the table to an excel sheet. I have hold on the headers and can put it in an array/arrayList. Basically, I need help with how to browse to the file where user wants to store the table headers._ I think once we can browse to the file location, we can use the POI HSSF API as we have for the task below. Any code examples are welcome.
    We are already SUCCESSFULLY uploading the contents of the excel sheet (using <af:inputFile> tag) and writing the contents to adf table. Lucas Jellema's article and code example was very helpful.
    Thanks,

    Hi,
    this thread is duplicate of this.... Exporting ADF table Headers to Excel
    Please be patience untill the reply comes.... dont duplicate the thread its meaningless
    Regards,
    Suganth.G

  • Dynamically reordering columns in ADF Faces Table

    The Rich UI components (see ADF Faces Rich Client Components - Marrying JSF and AJAX together) that the ADF Faces library will contain with the JDeveloper 11g release - and hopefully before that moment - will allow end-users to do all sorts of manipulations with Tables. They will be able to resize columns an drag & drop columns to change the order - much like you can do in Spreadsheet applications like Excel. However, those components are not yet available to us. Yesterday my customer asked me if he could have offer the option to re-order columns in a table to his end users. That means that in any table component, the user can decide which column should be displayed first, which one second and which one last. It happened to be the same customer who was after the feature to show/hide columns at run-time, a challenge easily resolved in a previous article: Having the end-user hide and display columns in a JSF Table Component (http://technology.amis.nl/blog/?p=1331).
    I have written an article that shows how we can implement this feature: have the end-user specify the order of the columns in the table. I have used ADF Faces for this demonstration, but any JSF implementation will do. See: http://technology.amis.nl/blog/?p=1334 for the article.
    best regards,
    Lucas

    Well issue is that
    I have a list of values that can be chnaged any time during application execution sya its list of Fav Fruits..
    and in an other page i need a data table having these fruits as coulmns and their details as rows...
    how to achieve this..
    we can not guess the number of columns before time.. so can make the estimate and hide them.

  • Adf faces on weblogic 8.1.5

    Hello,
    I am building an application using adf faces (10_1_3_0_4) on Weblogic 8.1.5.
    I have the application working under eclipse and Weblogic 8.1.5 on windows.
    However, when I try to deploy it Sun Solaris, I have problems.
    The Test App includes in WEB-INF/lib :
    adf-faces-api-10_1_3_0_4.jar jaxen-full.jar
    adf-faces-impl-10_1_3_0_4.jar jsf-api.jar
    adfshare-3549S.jar jsf-impl.jar
    commons-beanutils.jar jstl.jar
    commons-collections.jar saxpath.jar
    commons-digester.jar standard.jar
    commons-logging.jar
    The Weblogic java version and jvm are
    java.runtime.version = 1.4.2_08-b03
    java.specification.version = 1.4
    java.vendor = Sun Microsystems Inc.
    java.vendor.url = http://java.sun.com/
    java.version = 1.4.2_08
    When it compiles the jsp, I get the following error:
    error: Invalid class file format in /export/enterprise-docs/weblogic/8.1/user_projects/
    ipbDomain/ipbNode1/.wlnotdelete/extract/ipbNode1_ipb_ipb/jarfiles/WEB-INF/lib/adf-faces
    -impl-10_1_3_0_4.jar(oracle/adfinternal/view/faces/taglib/core/layout/CorePanelPageTag.
    class). The major.minor version '48.0' is too recent for this tool to understand.
    /export/enterprise-docs/weblogic/8.1/user_projects/ipbDomain/./ipbNode1/.wlnotdelete/ex
    tract/ipbNode1_ipb_ipb/jsp_servlet/__home.java:241: Class oracle.adfinternal.view.faces
    .taglib.core.layout.CorePanelPageTag not found.
    oracle.adfinternal.view.faces.taglib.core.layout.CorePanelPageTag afpanelPage0 =
    null;
    export/enterprise-docs/weblogic/8.1/user_projects/ipbDomain/./ipbNode1/.wlnotdelete/ex
    tract/ipbNode1_ipb_ipb/jsp_servlet/__home.java:1080: Class oracle.adfinternal.view.face
    s.taglib.convert.ConvertNumberTag not found.
    if (_af_convertNumber0 == null) afconvertNumber0 = new or
    acle.adfinternal.view.faces.taglib.convert.ConvertNumberTag(); //[ /home.jsp; Line: 93]
    ^
    62 errors
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:478)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:246)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:196)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:59
    8)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :406)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :526)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :348)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
    l.java:328)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:
    322)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:13
    0)
    at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHan
    dlerImpl.java:157)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java
    :87)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:1072)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :465)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfF
    The error major.minor version '48.0' is too recent for this tool to understand.- implies the adf jars are JDK 1.4, are different from Weblogic jvm, but they are both 1.4. The error occurs when the jsp compiler tries to generate the class from the jsp. It cannot resolve the adf jars which reside in WEB-INF/libs. The jsp works correctly when I use jsf components instead of adf faces components.
    Any help will be greatly appreciated.
    Thanks,
    Bal.

    Hi,
              When I deploy JSF app onto Weblogic 8.1 sp4, I am getting the following error. Any idea?
              weblogic.management.DeploymentException: javax/servlet/jsp/el/ELException - with nested exception:
              [java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException]
              at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2423)
              at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2138)
              at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2237)
              at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2132)
              at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2384)
              at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508)
              at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
              No Exception Messages
              Thanks for your help!!

  • Integrate ADF Faces RC with existing project

    Hi,
    I want to use ADF Faces RC components in my existing project but i could not find downloadable jar files to add.
    Is ADF Faces RC component available only with JDeveloper?
    My company dont use JDeveloper. Is that possible to use these excellent components in our applications?
    Thanks,
    ULAŞ

    You can just download JDev 11 and then use only the JAR files of the components.
    Currently we don't have a stand alone download of them.

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

  • ADF Faces useWindow attribute

    I am trying to open a Dialog window using an af:CommandLink. It is not opening a new window, only navigating to the page as normal. Is there anything obvious I am doing wrong? I have also seen this syntax
    useDialog="true"
    The IDE is rejecting this as not part of the tld. It may have been part of an earlier version of ADF Faces?
    Here is the script from the page
    <af:table   var="row"
                value="#{accountBacking.accounts}"
                rows="5"
                banding="row"
                styleClass="table.sample"
                binding="#{accountBacking.table}"
                >
    .......Trimmed for relevance.........
        <af:column formatType="icon">
            <f:facet name="header">
                <af:outputText value="Edit"/>
            </f:facet>                      
            <af:commandLink useWindow="true"
                            action="#{accountBacking.editAccountAction}"
                            partialSubmit="true">
                <af:objectImage source="/images/edit-blue.gif"/>
            </af:commandLink>
        </af:column>
    .......Trimmed for relevance.........
    </af:Table>

    I figured it out. In older examples where useDialog was used, the return value from the action was "process:something". This was also defined as a navigation rule in faces-config.xml
    I found an example from oracle that uses the useWindow attribute. Instead of "process:something" it should be "dialog:something"
    Here is the example
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtTopicFile.jsf_apps%7Cadfcreate%7Caf_acommandanddialog~html/

  • ADF Faces  IF statement available within the  page?

    I am making a page using ADF Faces.
    I want to create an IF statement in a page that will display some markup on one condition and on another display some other markup.
    For example, I am using an iterator to build a table. I would like to have the background color of the row alternate based on the iterator count % 2 ( also how can I get the count of the iterator).
    Also, I would want to make the text color highlight based on some condition such as is foo==bar make the text red etc.
    Anyone know how to do this simple simple task in ADF Faces?
    **Note the if from JSF core is not available in Jdeveloper for whatever reason. Any help would be appreciated.
    Also, I don't want to just set some property of some element based on a condition with EL.
    Lets say there is a whole section of the page that I only want to show is a condition is true. Is this impossible in ADF Faces? Is there something fundamental I am missing about this framework?
    Edited by: user2809800 on Dec 6, 2010 12:49 PM

    For conditional rendering of group of fragments, you can use switcher component.
    See the sample for switcher here: http://jdevadf.oracle.com/adf-richclient-demo/faces/components/switcher.jspx
    Code:
    <af:switcher id="s1" defaultFacet="#{<CONDITION> == 'true' ? 'two' : 'three'}">
    <f:facet name="two">
    <af:outputText id="ot2" value="Two"/>
    </f:facet>
    <f:facet name="three">
    <af:outputText id="ot3" value="Three"/>
    </f:facet>
    </af:switcher>
    For changing the text color based on the condition, you could use the EL expression in InlineStyle (it is a simple case) Otherwise, you can use skinning to change the same.
    Sample:
    <af:outputText id="ot4" value="#{bindings.FirstName.inputValue}"
    inlineStyle="#{bindings.FirstName.inputValue == 'Steven' ? 'color:red' : null}"/>
    Thanks,
    Navaneeth

  • How to develop web app by ADF Faces rich web client ?

    i want developer web app by adf face rich
    but have not adf rich tag library in jdev 10.1.3
    how to develop by adf rich?

    Hi,
    don't know what you mean by ADF Faces rich web client, but if you mean our Ajax component set, then this is not yet available outside of Oracle. If you mean ADF Faces as we have it in JDeveloper 10.1.3, create a JSF page and step through the creation process, toggle the ADF Faces libraries to make ADF Faces available
    Frank

  • ADF Faces - Which type of barcode scanner is recommended for ADF JSP?

    Hello everybody:
    1.- I'm trying to implement and adf faces app, with the functionality to get some
    data from a barcode reader.
    2.- I was reading about the different types of reader's interfaces: keyboard wedge,
    RS232, USB, bluetooth, etc.
    --- QUESTION' SECTION ---
    3.- First, the best thing is that my app could be compatible with all interfaces, I
    don't know if this is possible without any changes to the code.
    4.- If the previous point is not possible, I know that at least my app has to be
    compatible with the KB wedge and RS232, because I have read that the USB
    just emulate these two interfaces, but in an USB port.
    5.- I haven't read to much about this, but I need that my app do a post imediately
    after read the barcode, so the best thing my mind could imagine is add an
    <enter> char from the reader, I read too that this is only possible with the
    RS232, is the only way to modify the output of the scanner before send it to
    the app, and with the KB wedge is not possible.
    6.- But, the KB wedge is easier to use because my app does not require any extra-
    code to handle it, the only thing is: the cursor must be in the correct place in
    the correct time.
    I have read in this forum that some people has already implement this, if some of
    you guys have any suggestion, please let me know.
    Thnks in advance.
    Alex.

    Hi,
    thre is no specific certification between barcode readers and ADF Faces. So if you need a barcode reader, it s up to you testing which one can interact with the browser to fill in the form fields (and this basically is all it does)
    Frank

Maybe you are looking for