ADF Faces af:table support java.util.Set

I was using a java.util.Set in my model classes, as implementation of the Collection interface. And wanted to show the Set using a <af:table> after a while I discoverded that the documentation did not mention support of java.util.Set, only List.
Now I have to convert my collection to List in the backing beans of my view.
Is there a better approch than converting every Set in the view using
new Arraylist(set)?
And what is the reason of the missing Set support (or General Colelction support)?
Thank you

Deepak, I don't think you know what you're writing about.
No, we do not support java.util.Set in <af:table>. For that matter, neither does <h:dataTable>.
The "why" of it is that we require indexed access into the table for operations like "Display rows 526-550". java.util.Set does not offer indexed access.
By the way, one corollary - do not use java.util.LinkedList with tables (ADF Faces or the JSF data table). If the list is small, then it won't be a problem, but with a large list, you'll get brutal performance.

Similar Messages

  • Getting compilation error: java.util.Set is an interface. This interface is not supported.

    Hi Folks,
    Is there a limitation in BEA's web services implementation? I have a simple web
    service that returns an array of java objects. However I am calling another middle
    tier API that returns a Set. I convert this Set into array of object and return
    it via the web service.
    However the .jws file that implements the webservice does not compile. I get the
    following error message:
    java.util.Set is an interface. This interface is not supported.
    Is there a limitation on using Collections within the .jws file? If that is the
    case it is a severe limitation.
    Note my Web Service API returns an array of java objects with no collections in
    them.
    Sanjay

    Hello,
    Generic java collections can only be handled in a very generic, weakly
    typed manner.
    Take a look at the
    http://workshop.bea.com/xmlbeans/guide/conXMLBeansSupportBuiltInSchemaTypes.html
    and also
    http://workshop.bea.com/xmlbeans/guide/conJavaTypesGeneratedFromUserDerived.html
    You might also ask your question to the XMLBeans newsgroup:
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.xmlbeans
    Regards,
    Bruce
    Sanjay wrote:
    >
    Hi Folks,
    Is there a limitation in BEA's web services implementation? I have a simple web
    service that returns an array of java objects. However I am calling another middle
    tier API that returns a Set. I convert this Set into array of object and return
    it via the web service.
    However the .jws file that implements the webservice does not compile. I get the
    following error message:
    java.util.Set is an interface. This interface is not supported.
    Is there a limitation on using Collections within the .jws file? If that is the
    case it is a severe limitation.
    Note my Web Service API returns an array of java objects with no collections in
    them.
    Sanjay

  • ADF Faces Core Table, TableSelectOne question

    Greetings
    I am using ADF Faces Core Table to display a list and I have it setup with TableSelectOne, it works great. My question is this, I set required = true on the select button and it works. If I dont select one it no longer submits. My question is how do i get the error message back out I tried adding an af:message tag with from = tableSelectOne1 and I dont get anything back out. Is there a way to get this error message out so I can display it for the end user?
    Thanks
    tro

    Hi,
    Try using af:messages instead, as it displays all messages added to the FacesContext.
    Regards.
    Fábio

  • ADF Faces is not supported on IE running in compatibility mode

    hi
    In the blog post "Running ADF Faces applications with IE 9 in IE 8 compatibility mode "
    at https://blogs.oracle.com/jdevotnharvest/entry/running_adf_faces_applications_with_ie_9_in_ie_8_compatibility_mode
    Frank Nimphius explains about headers to make IE browsers behave like a previous version (in compatibility mode), but ends with this support information:
    Very Important(!)
    ADF Faces is not supported on IE running in compatibility mode. If using ADF Faces on IE in production, make sure IE is configured to run in native mode. Compatibility mode may only be used during development if your IE version is not certified with the JDeveloper version you work with. In production then you need to make sure the IE version matches the JDeveloper certification matrix.Reviewing the Release 1 "Certification and Support Matrix "
    at http://www.oracle.com/technetwork/developer-tools/jdev/index-091111.html#Browsers
    it currently says
    "For Internet Explorer 8 and 9, only Native mode is supported. View Compatibility mode should be disabled. "
    But there currently are no hits when searching for "compatibility" in the Release 2 "Certification and Support Matrix "
    at http://www.oracle.com/technetwork/developer-tools/jdev/jdev11gr2-cert-405181.html#Browsers
    - (q1) ADF Faces is not supported on IE running in compatibility mode, how much of that applies to JDeveloper Release 2 and where has it been documented?
    many thanks
    Jan Vervecken

    Thanks for your reply Frank.
    Frank Nimphius wrote:
    its bug 13906617 "ADD ADF FACES NOT SUPPORTED ON IE COMPATIBILITY MODE TO THE DOCUMENTATION"
    I was unable to find bug 13906617 on My Oracle Support. Has bug 13906617 been published?
    thanks
    Jan

  • Puzzled by the redefinition of the methods in java.util.Set

    Hi all,
    I don't understand why those methods in java.util.Set redefined since their counterparts have alrealdy been defined in java.util.Collection and java.util.Set extends java.util.Collection. I agree to redefine boolean add(Object o) because its contract has been modified, but what about the rest like
    size() and iterator() ?
    Thanks.

    Hi all,
    I don't understand why those methods in
    in java.util.Set redefined since their counterparts
    have alrealdy been defined in java.util.Collection
    and java.util.Set extends java.util.Collection. I
    agree to redefine boolean add(Object o) because its
    contract has been modified, but what about the rest
    like
    size() and iterator() ?Completeness's sake?
    ~Cheers

  • Failed to unmarshal interface java.util.Set

    I am trying to get all mbeans using getAllMBeans() method after
    getting MBeanHome successfully. The method fails with the following
    error.
    Any clues ?
    Thanks
    karthik
    >>>>
    weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception -
    with nested exception:
    [java.rmi.UnmarshalException: failed to unmarshal interface
    java.util.Set; nested exception is:
         java.io.InvalidClassException: javax.management.MBeanAttributeInfo;
    local class incompatible: stream classdesc serialVersionUID =
    7043855487133450673, local class serialVersionUID =
    8644704819898565848]
         at weblogic.management.internal.AdminMBeanHomeImpl_WLStub.getAllMBeans(Unknown
    Source)

    I am trying to get all mbeans using getAllMBeans() method after
    getting MBeanHome successfully. The method fails with the following
    error.
    Any clues ?
    Thanks
    karthik
    >>>>
    weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception -
    with nested exception:
    [java.rmi.UnmarshalException: failed to unmarshal interface
    java.util.Set; nested exception is:
         java.io.InvalidClassException: javax.management.MBeanAttributeInfo;
    local class incompatible: stream classdesc serialVersionUID =
    7043855487133450673, local class serialVersionUID =
    8644704819898565848]
         at weblogic.management.internal.AdminMBeanHomeImpl_WLStub.getAllMBeans(Unknown
    Source)

  • TestNG with java.util.Set

    hi, i want to test simple method:
    @Parameters({"lista"})
    @Test
    public GroupedFiles groupFiles(Set<File> p_files){
    }and i have definition of my xml:
    <suite name="My suite">
      <parameter name="first-name"  value="Cedric"/>
      <test name="Simple example">
      <-- ... -->and my testNG throws me uknown for me exception:
    java.lang.AssertionError: Unsupported type parameter : interface java.util.Set
    could anyone help me with this case, thanks for any knowledge

    'little code modification'
    hi, i want to test simple method:
    @Parameters({"lista"})
    @Test
    public GroupedFiles groupFiles(Set<File> p_files){
    }and i have definition of my xml:
    <suite name="My suite">
      <parameter name="lista"  value="java.util.Set"/>
      <test name="Simple example">
      <-- ... -->and my testNG throws me uknown for me exception:
    java.lang.AssertionError: Unsupported type parameter : interface java.util.Set
    could anyone help me with this case, thanks for any knowledge

  • ADF FACES: af:table not rendering all columns

    I'm using ADF EA 17 with myFaces 1.0.9 on JBoss 4.0.1/JVM 1.4.2_07-b05. The af:table is embedded within an af:panelgroup (being body of af:panelbox).
    The af:table is not rendering all columns (only last 2 out of 8 cols total). The model behind the af:table is a java.util.List. Debugging shows that the list is filled up with beans correctly and that each of the properties of such a bean corresponding to a table column are also set correctly.
    Strange thing is that sometimes all columns are rendered ok. Especially if i make heavy changes on the jsp (e.g. removing all but 2 cols from the af:table) and dropping it into the .../jboss/server/../tmp/deploy/tmpXYZ-exp.war directory. Restarting JBoss results in the old behaviour. Also closing browser and re-opening it yields to the missing columns again.
    I've set breakpoints on the bean properties representing on table column and i can see, that the getter methods aren't called (all but those 2 that get rendered finally)
    Table has multiselection enabled with 1 command button.
    This happens with both IE 6 and Firefox 1.0.4; no oracle, myFaces exceptions visible on console or any log file.
    Has anybody made same experiences so far or an idea what the problem really is ?
    best regards,
    Christoph.

    I've tried it also with a plain af:table without any surrounding af:panelgroup or/and af:panelbox. Same result.
    The bean holding the table-model (the java.util.List) is in session-scope. the table-model is update by an actionListener fetching values from an EJB. Could the session-scope be a problem ?
    Potential candidates from my point of view, that might cause trouble here:
    --) Caching (i've seen that sort of "CachedRenderers" are used
    --) partial page rendering
    --) multi-threading issue.
    --) or any silly mistake of mine :-)
    best regards,
    Christoph

  • Bug ADF Faces: af:table

    Hello,
    I found a new bug while working with ADF Faces. If you have a form on a page as well as a table and one of the field in the form is flagged required, then the table won't be sortable unless a value is put in the required field. The same holds true for row navigation.
    I already thought about flagging the table as immediate. That fix the row navigation but not the sorting.
    Regards,
    Simon Lessard

    Hello Frank,
    Thank you for the reply. Here's the complete project.
    It's only a little example to show ADF Faces components without any specific model technology. Therefore, the project is a single project with any well defined separation. As you can see, the table is based on a collection completely separated from the form.
    Note: I agree that sorting should fail with a required field if the table is not immediate. However, if it's I see no reason why it wouldn't work since the table and the form are not linked.
    Anyway, here's the case.
    1. A "shop" managed bean:
    import java.util.ArrayList;
    import java.util.List;
    public class ShopBean {
        private Product newProduct;
        private List products;
        public ShopBean() {
            products = new ArrayList();
            newProduct = new Product();
        public String addNewProduct() {
            products.add(newProduct);
            newProduct = new Product();
            return null;
        public Product getNewProduct() {
            return newProduct;
        public void setNewProduct(Product newProduct) {
            this.newProduct = newProduct;
        public List getProducts() {
            // I also tried to return a CollectionModel here, but it didn't change anything
            return products;
        public void setProducts(List products) {
            this.products = products;
    }2. A product class:
    public class Product {
        private String name;
        private String description;
        private Double price;
        public Product() {
        public String getName() {
            return name;
        public void setName(String name) {
            this.name = name;
        public String getDescription() {
            return description;
        public void setDescription(String description) {
            this.description = description;
        public Double getPrice() {
            return price;
        public void setPrice(Double price) {
            this.price = price;
    }3. A single page:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces"
              xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
      <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
                  doctype-system="http://www.w3.org/TR/html4/loose.dtd"
                  doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <f:loadBundle basename="com.dmr.cours.jsf.resources.messages" var="msg"/>
        <afh:html>
          <afh:head title="#{msg['page.title']}">
            <meta http-equiv="Content-Type"
                  content="text/html; charset=windows-1252"/>
          </afh:head>
          <afh:body>
            <h:form>
              <af:panelPage title="#{msg['title.page']}">
                <f:facet name="menu1">
                  <af:menuTabs>
                    <af:commandMenuItem text="#{msg['menu1.application.label']}"
                                        selected="true"/>
                  </af:menuTabs>
                </f:facet>
                <f:facet name="menu2">
                  <af:menuBar>
                    <af:commandMenuItem text="#{msg['menu2.welcome.label']}"/>
                    <af:commandMenuItem text="#{msg['menu2.products.label']}"
                                        selected="true"/>
                  </af:menuBar>
                </f:facet>
                <f:facet name="branding">
    <- Using SRDemo branding because no one sane want to
    see a branding made by me, using no branding works as well ->
                  <af:objectImage source="/images/SRBranding.gif"/>
                </f:facet>
                <af:panelHeader text="#{msg['title.new']}">
                  <af:panelForm>
                    <f:facet name="footer">
                      <af:panelButtonBar>
                        <af:commandButton text="#{msg['action.add']}"
                                          action="#{shop.addNewProduct}"/>
                      </af:panelButtonBar>
                    </f:facet>
    <- Removing the required attribute here makes sorting
    and row navigation functional again. ->
                    <af:inputText label="#{msg['product.name']}"
                                  value="#{shop.newProduct.name}" required="true"/>
                    <af:inputText label="#{msg['product.price']}"
                                  value="#{shop.newProduct.price}">
                      <f:convertNumber minFractionDigits="2"
                                       maxFractionDigits="2"/>
                      <f:validateDoubleRange minimum="0"/>
                    </af:inputText>
                    <af:inputText label="#{msg['product.description']}"
                                  value="#{shop.newProduct.description}" rows="5"/>
                  </af:panelForm>
                </af:panelHeader>
                <af:panelHeader text="#{msg['title.list']}">
                  <af:table value="#{shop.products}"
                            var="product" rows="5" banding="row"
                            bandingInterval="1" emptyText="#{msg['list.empty']}"
                            immediate="true">
                    <af:column sortProperty="name" sortable="true"
                               headerText="#{msg['product.name']}">
                      <af:outputText value="#{product.name}"/>
                    </af:column>
                    <af:column sortable="false"
                               headerText="#{msg['product.description']}">
                      <af:outputText value="#{product.description}"/>
                    </af:column>
                    <af:column sortProperty="price" sortable="true"
                               headerText="#{msg['product.price']}">
                      <af:outputText value="#{product.price}">
                        <af:convertNumber type="currency"/>
                      </af:outputText>
                    </af:column>
                  </af:table>
                </af:panelHeader>
              </af:panelPage>
            </h:form>
          </afh:body>
        </afh:html>
      </f:view>
    </jsp:root>4. A property files
    page.title = Test shop page
    menu1.application.label = MyShop.com
    menu2.products.label = Product management
    menu2.welcome.label = Home
    title.page = Product management
    title.new = New product's data
    title.list = Existing product list
    action.add = Add to product list
    product.name = Product's name
    product.price = Price
    product.description = Description
    list.empty = No product yet.5. The /images/SRBranding.gif file.
    EDIT: Forgot to add the required field and "fixed" the comment that the forum was erasing. =P
    EDIT: Added a note.
    Message was edited by:
    Simon Lessard

  • ADF FACES, AF:TABLE

    Hello all
    I am just trying to put two tables in a JSP in a different section each one.
    I can't display the two at the same time..., each one works when i delete the other one. I mean...i can see in the desing window the two tables...but when i run it i just see in the explorer one table.
    The rows to be displayed are taken from a LIST of values, as I said before, the results are correct but there is just one table in execution run time.
    I will put the jsp code...I hope somebody could help me
    Thanks
    &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "[http://www.w3.org/TR/html4/loose.dtd]"&gt;
    &lt;%@ page contentType="text/html;charset=windows-1252"%&gt;
    &lt;%@ taglib uri="[http://java.sun.com/jsf/html]" prefix="h"%&gt;
    &lt;%@ taglib uri="[http://java.sun.com/jsf/core]" prefix="f"%&gt;
    &lt;%@ taglib uri="[http://xmlns.oracle.com/adf/faces]" prefix="af"%&gt;
    &lt;%@ taglib uri="[http://xmlns.oracle.com/adf/faces/html]" prefix="afh"%&gt;
    &lt;f:view&gt;
    &lt;f:loadBundle basename="mx.com.uaem.htb.sspoc.portal.resources" var="bundle"/&gt;
    &lt;afh:html&gt;
    &lt;afh:head title="Consulta Referencia"&gt;
    &lt;meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/&gt;
    &lt;/afh:head&gt;
    &lt;afh:body&gt;
    &lt;h:form&gt;
    &lt;af:page title="Expediente Electr&oacute;nico"&gt;
    &lt;f:facet name="branding"&gt;
    &lt;af:objectImage source="/images/logo.jpg"/&gt;
    &lt;/f:facet&gt;
    &lt;f:facet name="brandingApp"&gt;
    &lt;af:outputLabel value="#{bundle[\'header.title\']}"
    inlineStyle="font-weight:bold; margin-left:8.0px;"/&gt;
    &lt;/f:facet&gt;
    &lt;f:facet name="appCopyright"&gt;
    &lt;af:outputFormatted value="#{bundle[\'footer.copyright\']}"/&gt;
    &lt;/f:facet&gt;
    &lt;f:facet name="appPrivacy"&gt;
    &lt;af:panelGroup layout="horizontal"
    inlineStyle="margin-bottom:16.0px;margin-top:8.0px;"&gt;
    &lt;af:outputFormatted value="#{bundle[\'login.loginText\']} #{sessionScope.connectionInfos.username}"/&gt;
    &lt;af:objectSpacer width="10" height="10"/&gt;
    &lt;af:commandLink text="#{bundle[\'page.logout\']}"
    action="#{LoginBean.logout}" immediate="true"/&gt;
    &lt;/af:panelGroup&gt;
    &lt;/f:facet&gt;
    &lt;f:facet name="appAbout"/&gt;
    &lt;af:messages inlineStyle="layout=\'table\'"/&gt;
    &lt;afh:rowLayout width="80%"&gt;
    &lt;afh:cellFormat width="20%" valign="top" halign="left"
    inlineStyle="padding:3.0px;"&gt;
    &lt;af:panelBox text="Paciente" width="100%"
    background="transparent"&gt;
    &lt;af:outputLabel value="#{bundle[\'showResults.patientName\']}"
    inlineStyle="font-weight:bold;"/&gt;
    &lt;af:objectSeparator/&gt;
    &lt;af:outputText value="Nombre: #{mostrarResultado1.patient.firstName}"
    inlineStyle="font-size:10.0pt;"/&gt;
    &lt;af:outputText value="Apellido: #{mostrarResultado1.patient.lastName}"
    inlineStyle="font-size:10.0pt;"/&gt;
    &lt;af:outputText value="G&eacute;nero: #{mostrarResultado1.patient.genderValue}"
    inlineStyle="font-size:10.0pt;"/&gt;
    &lt;af:outputText value="fecha: #{mostrarResultado1.patient.birthdayValue}"
    inlineStyle="font-size:10.0pt;"/&gt;
    &lt;af:outputText value="Educaci&oacute;n: #{mostrarResultado1.patient.nivelEdu}"
    inlineStyle="font-size:10.0pt;"/&gt;
    &lt;af:outputText value="Religi&oacute;n: #{mostrarResultado1.patient.religion}"
    inlineStyle="font-size:10.0pt;"/&gt;
    &lt;af:outputText value="CURP: #{mostrarResultado1.patient.curp}"
    inlineStyle="font-size:10.0pt;"/&gt;
    &lt;af:objectSpacer width="10" height="10"/&gt;
    &lt;af:outputLabel value="#{bundle[\'showResults.patientAddress\']}"
    inlineStyle="font-weight:bold;"/&gt;
    &lt;af:objectSeparator/&gt;
    &lt;af:outputText value="Calle: #{mostrarResultado1.patient.streetAddressValue}"
    inlineStyle="font-size:10.0pt;"/&gt;
    &lt;af:outputText value="Ciudad: #{mostrarResultado1.patient.cityValue}"
    inlineStyle="font-size:10.0pt;"/&gt;
    &lt;af:outputText value="Estado: #{mostrarResultado1.patient.stateValue}"
    inlineStyle="font-size:10.0pt;"/&gt;
    &lt;af:outputText value="Pa&iacute;s: #{mostrarResultado1.patient.countryValue}"
    inlineStyle="font-size:10.0pt;"/&gt;
    &lt;af:outputText value="CP. #{mostrarResultado1.patient.zipCodeValue}"
    inlineStyle="font-size:10.0pt;"/&gt;
    &lt;/af:panelBox&gt;
    &lt;/afh:cellFormat&gt;
    &lt;afh:cellFormat width="30%" valign="top" halign="left"
    inlineStyle="padding:3.0px;"&gt;
    &lt;af:panelBox text="Referencia M&eacute;dica" width="100%"
    background="light"&gt;
    &lt;af:panelGroup/&gt;
    &lt;af:panelHorizontal&gt;
    &lt;af:panelForm&gt;
    &lt;f:facet name="footer"/&gt;
    &lt;h:graphicImage url="/images/p2.jpg" height="88"
    width="119"/&gt;
    &lt;/af:panelForm&gt;
    &lt;af:panelForm&gt;
    &lt;f:facet name="footer"&gt;
    &lt;h:panelGroup&gt;
    &lt;af:commandButton text="#{bundle[\'mostrarResultados1.nuevo\']}"
    action="nuevaReferencia"/&gt;
    &lt;/h:panelGroup&gt;
    &lt;/f:facet&gt;
    &lt;af:table emptyText="No hay registros de Referencia Medica"
    banding="row" bandingInterval="1" width="40%"
    binding="#{ExpedienteListBean.dataTable}"
    value="#{ExpedienteListBean.resultListRefe}"
    var="referencia"&gt;
    &lt;af:column sortable="false"
    headerText="#{referencia.refFecha}"&gt;
    &lt;af:commandLink text="#{referencia.refFecha}"
    action="showReferencia"&gt;
    &lt;f:param name="hola" value="#{referencia.id}"/&gt;
    &lt;/af:commandLink&gt;
    &lt;/af:column&gt;
    &lt;/af:table&gt;
    &lt;af:commandLink text="REF 1, 01-Nov-2007"
    action="#{mostrarResultado1.mostrarReferencia}"/&gt;
    &lt;/af:panelForm&gt;
    &lt;/af:panelHorizontal&gt;
    &lt;/af:panelBox&gt;
    &lt;af:objectSpacer width="10" height="10"/&gt;
    &lt;af:panelBox text="Diagn&oacute;stico M&eacute;dico" width="100%"
    background="light"&gt;
    &lt;af:panelGroup/&gt;
    &lt;af:panelHorizontal&gt;
    &lt;af:panelForm&gt;
    &lt;f:facet name="footer"/&gt;
    &lt;h:graphicImage url="/images/op3.jpg" height="88"
    width="119"/&gt;
    &lt;/af:panelForm&gt;
    &lt;af:panelForm&gt;
    &lt;f:facet name="footer"&gt;
    &lt;h:panelGroup&gt;
    &lt;af:commandButton text="#{bundle[\'mostrarResultados1.nuevo\']}"
    action="nuevo"/&gt;
    &lt;/h:panelGroup&gt;
    &lt;/f:facet&gt;
    &lt;af:table emptyText="No hay registros de Referencia Medica"
    banding="row" bandingInterval="1" width="40%"
    binding="#{ExpedienteListBean.dataTable}"
    value="#{DiagListBean.resultListDiag}"
    var="diagnostico"&gt;
    &lt;af:column sortable="false"
    headerText="#{diagnostico.refFecha}"&gt;
    &lt;af:commandLink text="#{diagnostico.refFecha}"
    action="mostrarDiag"&gt;
    &lt;f:param name="hola" value="#{diagnostico.id}"/&gt;
    &lt;/af:commandLink&gt;
    &lt;/af:column&gt;
    &lt;/af:table&gt;
    &lt;af:commandLink text="REF 1, 01-Nov-2007"
    action="mostrarDiag"/&gt;
    &lt;/af:panelForm&gt;
    &lt;/af:panelHorizontal&gt;
    &lt;/af:panelBox&gt;
    &lt;/afh:cellFormat&gt;
    &lt;/afh:rowLayout&gt;
    &lt;af:commandButton text="Cancelar" action="regresar" immediate="true"/&gt;
    &lt;/af:page&gt;
    &lt;/h:form&gt;
    &lt;/afh:body&gt;
    &lt;/afh:html&gt;
    &lt;/f:view&gt;Thanks again
    Edited by: user743004 on Nov 21, 2008 7:43 AM
    Edited by: user743004 on Nov 21, 2008 7:47 AM

    Hello all
    The problem is fixed now
    What I did is the following...
    I used a afh:cellFormat (inside I put two af:PanelHorizontal at the same level each one)
    ------------->af:PanelHorizontal (containing one Table)
    ------------->af:PanelHorizontal (containing one Table)
    At the beginning I had one bean with two methods returning a List each one (one method for the first table and the second method for the second table), but the problem here is tha de BINDING element of the two table was the same (binding="#{DiagListBean.dataTable}") even when te value element was different for both tables...it didin't work
    So I cread two different beans, one for each table...and then i selected a different binding element for each table (because having two beans i can have two binding elements)
    I will put the code here, but i don't know how to put it with xml format (including spaces). I hope this can help some ppl
    TABLE 1
    <af:table emptyText="No hay registros de Referencia Medica"
    banding="row" bandingInterval="1" width="40%"
    binding="#{ExpedienteListBean.dataTable}"
    value="#{ExpedienteListBean.resultListRefe}"
    var="referencia">
    <af:column sortable="false"
    headerText="#{referencia.refFecha}">
    <af:commandLink text="#{referencia.refFecha}"
    action="showReferencia">
    <f:param name="hola" value="#{referencia.id}"/>
    </af:commandLink>
    </af:column>
    </af:table>
    TABLE 2
    <af:table emptyText="No hay registros de Referencia Medica"
    banding="row" bandingInterval="1" width="40%"
    binding="#{DiagListBean.dataTable}"
    value="#{DiagListBean.resultListDiag}"
    var="diagnostico">
    <af:column sortable="false"
    headerText="#{diagnostico.refFecha}">
    <af:commandLink text="#{diagnostico.refFecha}"
    action="mostrarDiag">
    <f:param name="hola" value="#{diagnostico.id}"/>
    </af:commandLink>
    </af:column>
    </af:table>
    Thanks

  • ADF Faces af:table partialTriggers update column footer

    I have table based on SortableModel (stored in session) with one column as input & other column as formula based on input field both as numeric.
    I have ValueChangeEvent on input field,which calculate new value for formula column. It is updated on page immediately. I am also computing summary for both column & store it sessionbean. But ValueChangeEvent does not update these values, I have to refresh page manually to see new totals. I have linked both the outputText field to inputText by partialTriggers property.
    If I move these outputText out of tablefooter they get updated immediately.
    I tried to link af:table & columns to inputText by partialTriggers but do not work.
    How I can update coulmn footer immediately if one of the field in table changed?
    Thanks, Yogesh
    -- Column footer : Does not update immediately
    <f:facet name="footer">
    <af:outputText value="#{PartyTableBean.newTotalBalance}"
    binding="#{backing_FinancialClose.newTotalBalance}"
    id="newTotalBalance" partialTriggers="newInvoiced">
    <af:convertNumber currencySymbol="$" type="currency"/>
    </af:outputText>
    </f:facet>
    -- outputText outside of table : updates immediately
    <af:outputText value="#{PartyTableBean.newTotalBalance}" id="newTotalBalance22"
    partialTriggers="newInvoiced" binding="#{backing_FinancialClose.outputText7}">
    <af:convertNumber currencySymbol="$" type="currency"/>
    </af:outputText>

    I was mistakenly believing that you couldn't use a selectOneChoice in an af:table given some experimentation where they simply failed to render at all.
    It turns out that I had a hadn'e created the appropriate setter method for the property. However, instead of making the data readOnly (as most of the ADF FACES controls do) it just didn't render anything. Thus making me think it just didn't work inside of a table.
    FYI - in case this happens to anyone else.

  • ADF FACES: af:table and complex column data

    Using EA15.
    I want to use an af:table to allow the in-place editing of the data. However, I have some fields that are not simple text entry fields. Two of them would ideally use af:selectOneList elements. This doesn't work given the limitations of how af:column elements work.
    Is there anyone out there creating complex, in-place edit tables? If so, how are you doing it?
    Thanks.

    I was mistakenly believing that you couldn't use a selectOneChoice in an af:table given some experimentation where they simply failed to render at all.
    It turns out that I had a hadn'e created the appropriate setter method for the property. However, instead of making the data readOnly (as most of the ADF FACES controls do) it just didn't render anything. Thus making me think it just didn't work inside of a table.
    FYI - in case this happens to anyone else.

  • ADF Faces RC browser support and browser market share

    hi
    Given the current browser support in JDeveloper 11g (ADF (Faces RC)), for IE 7.0 (not IE 6), FF 2.0, FF 3.0, ...
    http://download.oracle.com/docs/cd/E12839_01/install.1111/e13666/OJDIG.htm#BDCJBGBC
    http://www.oracle.com/technology/products/jdev/htdocs/jdeveloper11gfaq.html#P0
    (Why Oracle has chosen to do so has been discussed before, in threads ADF 11g: Browser support for Internet Explorer 6, Browser certificaion clarification JDev 11gr1, ...)
    Given some information available online about browser market share ...
    http://marketshare.hitslink.com/browser-market-share.aspx?qprid=3
    http://www.w3schools.com/browsers/browsers_stats.asp
    http://www.w3counter.com/globalstats.php
    http://www.thecounter.com/stats/
    ... it looks like about 20 to 30 percent is still Internet Explorer 6 (which is not supported by ADF Faces Rich Client components).
    Which role should this play in a decision to choose for ADF Faces Rich Client components to build an internet application today?
    Maybe some can share their experience in making such choice.
    many thanks
    Jan Vervecken

    Hi Jan,
    (e1) That's a really good example, but the deciding point is different than browser version imho.
    In that example, the hospital control its technological infrastructure so I would say it's safe to ask the users to upgrade as the hospital team is actually going to do it. In this case it depends if the hospital itself is willing to upgrade its apps, not the users. However, the patients are a special kind of users of which at least a small amount will be physically disabled to some point so you'll have to evaluate the accessibility potential of ADF Faces RC and, as most rich libraries, it's not that awesome. So, in that example, I think you would have to use pure Trinidad instead as its accessibility support is a bit better or at least reduce the usage of rich features in RC (like no drag-drop since it's a nightmare for both blind and mobility reduced users).
    (e2) imho, no it wouldn't be safe to use RC if the target date is within 1 year since you don't control the user base in that example and not supporting a browser might cut your customer base and thus reduce your revenue.
    Regards,
    ~ Simon

  • HOW to add Dynamic Columns in ADF Faces CORE Table

    In ADF im going to display the dynamic column in Coretable,
    Header are displaying very fine. but im unable to display rows sucessfuly,how to resolve.
    Second thing is that JSF page isn't getting the value from dataList, whats wrong in JSF code.
    // JSF PAGE CODE
         <af:table binding="#{backing_test1.table1}" id="table1"
    value="{backing_test1.dataList}" var="myRec"/>
         public void setTable1(CoreTable table1) {
         this.table1 = table1;
         public CoreTable getTable1() {
    //create this table
    table1 = new CoreTable();
    CoreColumn dynamicCol;
    CoreOutputText outText;
    Application app=FacesContext.getCurrentInstance().getApplication();
    DCIteratorBinding iter = (DCIteratorBinding)bindings.get("listAllMonthsIter");
    RowSetIterator rsIter = iter.getRowSetIterator();
    rsIter.reset();
    Row row;
    while (rsIter.hasNext()) {
    row = rsIter.next();
    String header = (String)row.getAttribute("element");
    // element contain the value JAN, FEB...
    dynamicCol = new CoreColumn();
    dynamicCol.setHeaderText(header);
    String currRec = table1.getVar();
    outText = new CoreOutputText();
    ValueBinding vb = app.createValueBinding("#{myRec.value}");
    outText.setValueBinding("value",vb);
    outText.setRendererType("Text");
    dynamicCol.getChildren().add(outText);
    table1.getChildren().add(dynamicCol);
    public void setDataList(List dataList) {
    this.dataList = dataList;
    public List getDataList() {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("listAllMonths");
    if (operationBinding == null)
    return null;
    List dataList = (Vector)operationBinding.execute();
    return dataList;
    }

    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.

  • Java.util.set: problem with duplicate keys

    Hello, everybody,
    i have implemented a custom class C with its own equals()-method. I have two instances I1 and I2 of C with
    I1.equals(I2) = true
    if I add I1 and I2 to a set
    Set S = new HashSet();
    S.add(I1);
    S.add(I2);
    there are two elements I1 and I2 in the set. How is this possible?

    You must override the method hashCode() of your class C to be consistent with the comparison by equals() method.
    http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#hashCode()

Maybe you are looking for