Bind a checbox to an Integer

Hi,
I have some data in my database that I would consider as boolean, but whose are SMALL INTEGER (Oracle doesn't provide the BOOLEAN type). In my JSP page, I associate checkbox to these datas, but I don't know how I can make the link between a checked box and the value 1 (and between a no checked box and the value 0).
I know that I can bind a property, but I have a lot of checkbox on my page and I can't write a getter method for each one!
Can I use a kinf of converter, or similar?
Thanks
-- Prankster --

Creator is not very robust when it comes to Boolean values. We use MySQL and Creator only seems to respect values which are typed as Tinyint(1) as Boolean. This is a problem as we integrate from legacy systems which use Char, Integer and other data types which use business rules (ie non-zero = true) to manage Boolean states.
The only way around this that we have found is to code it the hardway:
[1] create a getter/setter paid such as getMyBooleanVal()/setMyBooleanVal() in the backing bean which returns a boolean and use the getter to interpret the value from a row-set using the getValue() method and any appropriate business transformations..
[2] set the value property of the check box to the getter/setter
[3] perform for each checkbox!!!!
You could also write a customer converter which performs the same functions. This is much less tiresome if (a) there are many instances of check boxes which have to be dealt with, and (b) your transformation is standardized across your application.
Customer converters are simple to create and integrate but Creator seems to complain if you attempt to put them into the attributes in the JSF and they are not properly registered. We find the best way is to set the converter property for the requisite controls in the backing bean's initialization code eg
checkbox1.setConverter(new myCustomConverter());
which we would put in the page constructor.
I hope this helps you. I posted a customer converter for uppercasing text somewhere on the forum which you could probably find and modify for your needs.

Similar Messages

  • 64 bits integer handling

    I can't find the way how to bind or define 64 bits integer using Oracle 8.1.7 OCI.
    Plz, tell me any effective way to handle 64 bits integer.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Shoaib ([email protected]):
    If 64-bit is the normal size of integer on your platform, then passing using SQLT_INT for data type and sizeof(int) should work for your bind and define calls.<HR></BLOCKQUOTE>
    Thank you for your comments.
    The normal size of integer in my current platform is 4 bytes, 32 bits. The current 64-bit type is "long long" type. The OS I tested are Compaq Tru64 Unix V5.1 and Linux . For "long long" type, SQLT_INT and sizeof(long long) has failed.
    As work around the 64-bits integer is fetched as string into SQLT_STR defined host variables. After that, conversion from string to integer is executed using atol().
    Any other good working alternative?

  • Could not find selected item matching value "New" warning message in ADF

    Hi,
    I have a selectOneChoice1 for a field which has the following fixed values in it. And while creating it, I selected the 'SelctionRequired' option so that this field will always have a value.
    New
    Pending
    Completed.
    While navigating to this page, I am trying to set the value to 'New' (Retrieved from the DB) in the backing bean. But when the page is rendered, the above field is empty with the above options in the list and jdev has the follwing error message in its log.
    WARNING: Could not find selected item matching value "New" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=selectOneChoice1]
    Can any one help me with this issue?
    Thanks,
    Priya

    The value of a list binding is the zero-based integer position in the list that is selected, not the actual underlying value.
    The simplest way to set the value of an attribute is to use an attribute binding (which can be bound to the same attribute as the list binding). When you set the value of an attribute binding, it sets the value as you supply it. Otherwise, you'd need to set the list binding's value to the numerical "slot" number of the one you want to change the value to.

  • Creating View Objects for complex query

    Hi All,
    I am trying to create a VO for inner query, but i am not able understand what type of bind variable to select.
    PFB the scenario:
    I have 2 tables, say orders, products
    I am supposed to execute the following query:
    Select * from Orders o, Products p where o.order_id = 123 and p.product_id in (111,222,333.....)
    In the VO when I try to create, I need to create 2 bind variables
    1 for order id and other for product id
    the problem i am facing is selecting the type of the bind variable
    I am selecting "Integer" type for order id bind variable but i am able to understand what should be the bind variable type for the product id.
    I tried to use "Array" type, but in the query it is "= : bindvariable" operator instead of "in (: bindvariable)"
    Also, please note that, the number of product_id is not fixed and is dynamic.
    So my question is:
    what should be bind variable type that should be used (for product_id case)?
    Also, please advice if it is the same way to apply the criteria in AMImpl class.
    Thanks in advance.
    Thanks,
    Varun

    Varun,
    this will not work as you can't use bind variables in sql IN queries.
    Jobinesh has bloged a solution
    http://jobinesh.blogspot.com/2010/12/using-oraclejbodomainarray-with.html and http://jobinesh.blogspot.com/2011/07/tips-on-using-oraclejbodomainarray-as.html
    or my 'trick' explained here http://tompeez.wordpress.com/2011/08/21/extending-viewcriteria-to-use-sql-contains-4/ might help to solve this.
    Timo

  • JSF & converters

    Hello, sorry for my bad english.
    I don't understand something.
    Use a outputText for example, and bind its value to an Integer for example, already instanciated in the backing bean.
    Then, set a DateConverter to this outputText and display the page, you will see that your inputText displays a Date, that have probably been instancied by JSF.
    I no really have problem with this, but when I look at the DateConverter code of the sun reference implementation, I don't see any new date instanciation. I even have the feeling that a ConverterException should be thrown.
    So, I would know where is this date create, and why.
    Do you know more about this?
    If no, do you know if there is "log mode" that could help me see which methods are called?
    Thanks in advance.

    But here, the converter is used to display something from the backing bean, not to convert a string as an object.
    So you say that, if the attribute is not of the correct type ( an Integer and not a Date), then the converter will first use getAsObject???
    In the getAsObject method, a parser is used to parse "value", and if value is not a date, this should send a ConverterError in my advice. Or parser.parse(value) could eventually send a new Date if value is not an instance of Date...
    I don't exactly know.
    Thanks for answers.

  • ADF Mobile: WebService data control method call with array

    JDev 11.1.2.3
    ADF Mobile deployed to Android emulator
    Hello All,
    I am trying to invoke a method in my Web Service data control and get the following exception
    Caused by: ERROR [oracle.adfmf.framework.exception.AdfInvocationRuntimeException] - Cannot serialize: [I@1dbae822
            at oracle.adfmf.dc.ws.soap.SoapTransportLayer.invokeSoapRequest(Lorg/ksoap2/SoapEnvelope;)Ljava/lang/Object;(Unknown Source)
            at oracle.adfmf.dc.ws.soap.SoapWebServiceOperation.invoke(Ljava/lang/String;Loracle/adfmf/dc/ws/soap/SoapGenericType;)Ljava/lang/Object;(Unknown Source)
            at oracle.adfmf.dc.ws.soap.SoapWebServiceOperation.invoke(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/Object;(Unknown Source)
            at oracle.adfmf.dc.JavaBeanOperation.execute(Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;(Unknown Source)
            at oracle.adfmf.dc.ws.WebServiceDataControlAdapter.invokeOperation(Ljava/util/Map;Loracle/adfmf/bindings/OperationBinding;)Z(Unknown Source)
            at oracle.adfmf.bindings.dbf.AmxMethodActionBinding.execute()Ljava/lang/Object;(Unknown Source) This method is an AppModule method exposed as a service interface and the parameter for this method is a List<oracle.jbo.domain.Number>. The schema definition for the input is as follows:
    <element name="acceptTask">
       <complexType>
         <sequence>
                <element maxOccurs="unbounded" minOccurs="0" name="taskID" type="decimal"/>
         </sequence>
       </complexType>
    </element>For the input to my binding, I have tried int[], Integer[] and List<Integer>. All of these result in similar errors.
    I have also tried invoking this through a regular ADF application and that works fine with an int[]. It looks like something specific to the ADF Mobile SOAP layer.
    Is this a bug or a restriction in the framework? Any workarounds that has worked for anyone?

    No luck. A WS DC method call with a simple parameter (java.lang.String or java.lang.Integer) works fine but I can't get it to work when there is an array input.
    I have tried WS methods with int arrays and simple string arrays without any luck. All of them result in a cannot serialize error.
    I can't figure out what I am doing wrong. Are there any working WS Datacontrol samples with array inputs?

  • OCI And Threading

    I have an OCI program running on NT. Things seem to run fine for
    a while, however, if I have multiple clients or one client with
    multiple threads, a situation occurs where although
    client/thread 'A' has a row locked (via a select for update in a
    stored procedure), client/thread 'B' can occassionally lock the
    row!!! At first I thought it may be due to client/thread 'B'
    caching information, so I tried completely
    disconnecting/connecting to the database between calls... and
    its still happening. What would cause a connection to release
    it's locks, other than a commit/rollback?

    All you need to do is out-bind a char buffer and integer status to a call to a PL/SQL statement that calls dbms_output.get_line(). When status == 0, there is a line in the buffer:
    char buffer[32767];
    int status = 0;
    sb2 indp = OCI_IND_NULL;
    char *sql =   "BEGIN DBMS_OUTPUT.GET_LINE(line=>:p1, status=>:p2); END;";
    OCIHandleAlloc(envhp, (dvoid **)&sth, (ub4)OCI_HTYPE_STMT, (size_t)0, (dvoid **)0);
    OCIStmtPrepare2 (svc, &sth, errhp, sql, strlen(sql), 0, 0, OCI_NTV_SYNTAX, OCI_DEFAULT);
    OCIBindByPos(sth, &bhp1, errhp, 1, (dvoid *)value, sizeof(value)+1, SQLT_STR, &indp, 0, 0, 0, 0, OCI_DEFAULT);
    OCIBindByPos(sth, &bhp2, errhp, 2, (dvoid *)&status, sizeof(status), SQLT_INT, &indp, 0, 0, 0, 0, OCI_DEFAULT);
    ret = OCIStmtExecute(svc, sth, errhp, (ub4)1, 0, NULL, NULL, OCI_DEFAULT);
    while( OCI_SUCCESS==ret && 1 != status ) {
    printf("%s\n", buffer);
    }

  • Button not submitting/ firing action code.

    Hi All.
    In Creator, I seem to be having problems with a specific page. It doesn't seem to matter how many buttons I try to drop on a page (with a number of databound controls on it), but the buttons just don't seem to fire off the backend code. according to the action property of the button, the backend code associated with that method should fire, but it just doesn't. I've tried just throwing a button on the page and putting something as simple as
    log("the code in the button got fired");
    return null;But even something so simple as that does not fire.
    In any other page, that code works fine (obviously). I just hate the idea of having to re-develop the page from scratch when I encounter such an issue (especially after how much time it took given all the data bound controls). If anyone can point me to someone having a similar issue, or could give some feedback on this one It would help a great deal (even though this is quite ambiguous.)

    you were 100% correct. I recieve the following message:
    Validation Error: {0}Value is not valid
    I recieve this on RadioLists that I have bound to a numerical column on an Oracle database. The String based bindings seem to work fine. Perhaps you can inform me of any mistakes I have made with the following when I expect the selection to bind to the numerical column:
    Integer zero = new Integer(0);
    Integer one = new Integer(1);
    listYesNo = new java.util.ArrayList();
    listYesNo.add(new SelectItem(one,"Yes",""));
    listYesNo.add(new SelectItem(zero,"No",""));
    // same error when using code as commented below too:
    //        listYesNo = new java.util.ArrayList();
    //        getListYesNo().add(new SelectItem("1","Yes",""));
    //        getListYesNo().add(new SelectItem("0","No",""));

  • Multicast on linux

    I can't understand why I can't receive multicast messages if I use MulticastSocket(SocketAddress addr) costructor instead of MulticastSocket(int port) costructor. This works fine in Windows while it doesn't works on Linux (Mandrake 9.1) or FreeBSD (5.0).
    I will be able to bind my process to specified address and to join a group to receive multicast messages too.
    Someone know the reason?

    No, the Address is correct. This code runs perfectly under windows Me and runs also on Linux but only if the address is 0.0.0.0 or the multicast address (in this case 225.0.0.1)
    Windows (and I think that is rigth) doesn't allow to assign multicast addresses (224.0.0.0-239.255.255.255) while Linux does.
    import java.net.*;
    public class receiver
         public static void main(String args[])
             try {
                  if (args.length!=2){System.out.println("Usage: receiver ip-bind port");}
                  int port =new Integer(args[1]).intValue();
                  InetAddress bind_ip=InetAddress.getByName(args[0]);
                   SocketAddress sa=new InetSocketAddress(bind_ip,port);
                  MulticastSocket s=new MulticastSocket(sa);  //instead of new MulticastSocket(port);
                   System.out.println(s.getLocalSocketAddress());
                   InetAddress group=InetAddress.getByName("225.0.0.1");
                   s.joinGroup(group);
                   DatagramPacket p=new DatagramPacket(new byte[512],512);
                    s.receive(p);
        }catch (Exception ex){System.out.println("Eccezione:"+ex.getMessage());ex.printStackTrace();}
        }//end main
    }(To run it on Linux)
    I have to compile the routing table adding
    route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
    the following code is the sender and should be correct.
    import java.net.*;
    public class multicast
         public static void main(String args[])
             try {
                  if (args.length!=2){System.out.println("Uso: multicast ip-bind porta");System.exit(1);}
                  int port =new Integer(args[1]).intValue();
                  InetAddress bind_addr=InetAddress.getByName(args[0]);
                  InetAddress group=InetAddress.getByName("225.0.0.1");
                   SocketAddress sa=new InetSocketAddress(bind_addr,port);
                   MulticastSocket s=new MulticastSocket(sa);
                  String message="Good bye!";
                   SocketAddress groupChannel=new InetSocketAddress(group,port);
                  DatagramPacket p=new DatagramPacket(message.getBytes(),message.length(),groupChannel);
                  s.send(p);
             }catch (Exception ex){System.out.println("Eccezione:"+ex.getMessage());ex.printStackTrace();}         
        }//end main
    }

  • How to bind SelectManyChoice to Integer array parameter

    Hi.
    I am using JDev TP4. I need to populate an integer array with the keys of the items selected in a SelectManyChoice.
    I have created a page with a parameter form for the three parameters and a readonly table for the result class from a data control for this method:
    public FreeGuaranteeModel[] getFreeGuarantees(Timestamp firstDate, Timestamp lastDate, Integer[] companyIds)
    In the parameter form i have created a SelectManyChoice which displays a list
    from a viewObject by dragging the companyIds parameter onto the parameter form, creating a SelectSingle component and then converted it to a SelectManyChoice.
    The page renders ok, I can select one or more items in the list, but when I press the button to execute the method, the companyIds array is empty.
    (The two date parameters are populated).
    What am I missing? Is the binding wrong? I am new to JDev so if there is some other way to do this, please let me know.
    This is the relevant part of the jspx:
    <af:selectManyChoice value="#{bindings.companyIds.inputValue}"
              label="#{bindings.companyIds.label}"
              shortDesc="#{bindings.companyIds.hints.tooltip}"
              binding="#{backing_ViewFinancialResult.selectOneListbox1}"
              id="selectOneListbox1">
    <f:selectItems value="#{bindings.companyIds.items}"
         binding="#{backing_ViewFinancialResult.selectItems1}"
         id="selectItems1"/>
    </af:selectManyChoice>
    The pagedef contains this:
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="11.1.1.49.49" id="ViewFinancialResultPageDef"
    Package="com.ispartner.gvg.pageDefs">
    <parameters/>
    <executables>
    <variableIterator id="variables">
    <variable Type="java.sql.Timestamp" Name="getFreeGuarantees_firstDate"
    IsQueriable="false"/>
    <variable Type="java.sql.Timestamp" Name="getFreeGuarantees_lastDate"
    IsQueriable="false"/>
    <variable Type="java.lang.Integer[]" Name="getFreeGuarantees_companyIds"
    IsQueriable="false"/>
    </variableIterator>
    <methodIterator Binds="getFreeGuarantees.result"
    DataControl="CapacityReader" RangeSize="25"
    BeanClass="com.ispartner.gvg.util.capacity.FreeGuaranteeModel"
    id="getFreeGuaranteesIterator"
    RefreshCondition="#{adfFacesContext.postback == true}"
    Refresh="renderModelIfNeeded"/>
    <iterator Binds="CompanyLOV1" RangeSize="-1"
    DataControl="ChoiceListAMDataControl" id="CompanyLOV1Iterator"/>
    </executables>
    <bindings>
    <methodAction id="getFreeGuarantees" RequiresUpdateModel="true"
    Action="invokeMethod" MethodName="getFreeGuarantees"
    IsViewObjectMethod="false" DataControl="CapacityReader"
    InstanceName="CapacityReader.dataProvider"
    ReturnName="CapacityReader.methodResults.getFreeGuarantees_CapacityReader_dataProvider_getFreeGuarantees_result">
    <NamedData NDName="firstDate" NDType="java.sql.Timestamp"
    NDValue="${getFreeGuarantees_firstDate}"/>
    <NamedData NDName="lastDate" NDType="java.sql.Timestamp"
    NDValue="${getFreeGuarantees_lastDate}"/>
    <NamedData NDName="companyIds" NDType="java.lang.Integer[]"
    NDValue="${bindings.getFreeGuarantees_companyIds}"/>
    </methodAction>
    <attributeValues IterBinding="variables" id="firstDate">
    <AttrNames>
    <Item Value="getFreeGuarantees_firstDate"/>
    </AttrNames>
    </attributeValues>
    <attributeValues IterBinding="variables" id="lastDate">
    <AttrNames>
    <Item Value="getFreeGuarantees_lastDate"/>
    </AttrNames>
    </attributeValues>
    <tree IterBinding="getFreeGuaranteesIterator" id="FreeGuaranteeModel">
    <nodeDefinition DefName="com.ispartner.gvg.util.capacity.FreeGuaranteeModel">
    <AttrNames>
    <Item Value="companyId"/>
    <Item Value="name"/>
    <Item Value="guaranteeRequired"/>
    <Item Value="guaranteeToDate"/>
    <Item Value="guaranteeAmount"/>
    <Item Value="bookedValue"/>
    <Item Value="freeGuarantee"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    <list IterBinding="variables" id="companyIds" DTSupportsMRU="false"
    StaticList="false" ListIter="CompanyLOV1Iterator"
    NullValueFlag="start" NullValueId="companyIds_null">
    <AttrNames>
    <Item Value="getFreeGuarantees_companyIds"/>
    </AttrNames>
    <ListAttrNames>
    <Item Value="CompanyId"/>
    </ListAttrNames>
    <ListDisplayAttrNames>
    <Item Value="ShortName"/>
    </ListDisplayAttrNames>
    </list>
    </bindings>
    <ResourceBundle>
    <PropertiesBundle xmlns="http://xmlns.oracle.com/adfm/resourcebundle"
    PropertiesFile="com.ispartner.gvg.gvg-webBundle"/>
    </ResourceBundle>
    </pageDefinition>
    Regards,
    TL

    Hi,
    Thank you for your answer.
    Following the example I was able to get the selected entries into an Integer array property with accessors which I created in a managed bean.
    But I have not been able to get the values into the companyIds parameter of the method to execute.
    Is there a way to bind directly to this parameter, or do I have to collect all parameters through separate properties and then call my method manually when the button is pressed?
    TL

  • Unable to bind integer value to VO in OAF

    Hi all,
    I was trying to bind a integer value to a VO using setWhereClauseParam(1, myId); but it gave error while compiling.
    Can anyone please tell me the reason why i got error?
    Thanks,
    Sukesh

    Three things:
    1) OAF has it'S own forum!
    2) which exception you got?
    3) which exact version?
    Timo

  • How do you bind a 64bit integer for input?

    Is there any way to get oracle to deal with 64 bit integer bind values or must I bind
    them as strings?
    This is on intel linux.
    Thanks,
    Alex.

    SQLT_INT would be sufficent on a 64bit platform.

  • Null value in List Binding (enumeration mode)

    Hi,
    how can I declare a NULL value in a List binding with enumeration mode?
    A user should be able to select an empty entry in a combobox to update an attribute with a null value.
    I'm using JDev9052 and JClient.
    Any hints?
    Thanks,
    Markus

    Adding '-1' in JComboBox (addItem(new Integer(-1))) or in the control binding does not change the picture. Sorry.
    While play with different List bindings I have discovered that a Button LOV Binding works when using a "select * UNION select null from dual" view object. It does not work with a Combobox LOV binding. Why?
    Still, my problem List binding in enumeration mode (with Combobox) is unsolved. any hints or samples?
    My current combobox binding:
    <DCControl
    id="Job"
    DefClass="oracle.jbo.uicli.jui.JUComboBoxDef"
    SubType="DCComboBox"
    BindingClass="oracle.jbo.uicli.jui.JUComboBoxBinding"
    IterBinding="EmpView1Iterator"
    ApplyValidation="false"
    isDynamic="false"
    ListOperMode="0"
    StaticList="true"
    Editable="false" >
    <AttrNames>
    <Item Value="Job" />
    </AttrNames>
    <ValueList>
    <Item Value="ANALYST" />
    <Item Value="CLERK" />
    <Item Value="MANAGER" />
    <Item Value="PRESIDENT" />
    <Item Value="SALESMAN" />
    <Item Value="-1" />
    </ValueList>
    </DCControl>
    My current Button LOV binding:
    <DCControl
    id="Job2"
    DefClass="oracle.jbo.uicli.jui.JULovButtonDef"
    SubType="DCLovButton"
    BindingClass="oracle.jbo.uicli.jui.JULovButtonBinding"
    IterBinding="EmpView1Iterator"
    DTClass="oracle.adf.dt.objects.JUDTCtrlListLOV"
    ApplyValidation="false"
    isDynamic="false"
    ListOperMode="0"
    ListIter="JobListView1Iterator" >
    <AttrNames>
    <Item Value="Job" />
    </AttrNames>
    <ListAttrNames>
    <Item Value="Job" />
    </ListAttrNames>
    <ListDisplayAttrNames>
    <Item Value="Job" />
    </ListDisplayAttrNames>
    </DCControl>

  • Slow performance when using cursor with bind variable

    i'm facing the problem mentioned in the subject.
    whenever i use the bind variable it would take more than 5mins to fetch 157 records, but if i hardcode the value ( not using variable ) it would take only 10sec to fetch 157 records.
    can anyone give me some guide to solve this problem? thank you..
    Code :
    DECLARE
    cursor cur1(l_startdate IN varchar2,l_enddate IN varchar2) IS
    select * from shipment ship where ship.insertion_date >= to_date(l_startdate,'DD-MM-YYYY HH24:MI:SS') and ship.insertion_date < to_date(l_enddate ,'DD-MM-YYYY HH24:MI:SS')
    TYPE shipment_aat IS TABLE OF cur1%ROWTYPE INDEX BY PLS_INTEGER;
    l_shpt shipment_aat;
    limit_in INTEGER := 100;
    BEGIN
    v_startdate := '10-06-2008 14:00:00';
    v_enddate := '10-06-2008 17:00:00';
    OPEN C_shpt(v_startdate,v_enddate);
    LOOP --start shipment loop   
    FETCH C_shpt BULK COLLECT INTO l_shpt LIMIT limit_in;
         FOR indx IN 1 .. l_shpt.COUNT
    LOOP
    DBMS_OUTPUT.PUT_LINE('l_shpt value ' || l_shpt(indx).ship_number || '/' || l_shpt(indx).insertion_date);
    END LOOP;
    EXIT WHEN l_shpt.COUNT < limit_in;
    END LOOP; -- end of shipment loop
    CLOSE cur1;
    END;

    When your query takes too long ...

  • Create dynamic table at runtime and bind it with ViewObject

    Hi everyone.
    I have the following task.
    I need to create a multiple ViewObjects at runtime (using different constructed sql queries) and then bind ViewObjects with created (also in runtime) tables.
    Tables are to be created on PanelTabbed component. Each tab contains one table.
    So the problem - is there a way to perform this task?
    A portion of code:
    ApplicationModule am = ADFUtils.getApplicationModule("AppModule");
    ViewObjectImpl vo = null;
    if (am.findViewObject("SQLVo") != null)
    am.findViewObject("SQLVo").remove();
    System.out.println("object removed!");
    vo = am.createViewObjectFromQueryStmt("vo", "select ...");
    RichTable newTable = new RichTable();
    newTable.setVar("row");
    newTable.setVarStatus("rowStat");
    RichShowDetailItem newDetItem = new RichShowDetailItem();
    newDetItem.setText("New Detail");
    newTable.setInlineStyle("width:100%;height:180px");
    newTable.setRowSelection("single");
    DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    String iterBindingName = vo.getName() + "Iterator";
    JUIteratorBinding iterBinding =
    (JUIteratorBinding)dcBindings.findIteratorBinding(iterBindingName);
    if (iterBinding != null) {
    dcBindings.removeIteratorBinding(iterBindingName);
    BindingContext bcc = (BindingContext)JSFUtils.resolveExpression("#{data}");
    iterBinding =
    new JUIteratorBinding(bcc.findDataControl("AppModuleDataControl"), vo);
    String ctrlBindingName = vo.getName() + "Binding";
    FacesCtrlHierBinding clonedHierBinding =
    (FacesCtrlHierBinding)dcBindings.findCtrlBinding(ctrlBindingName);
    if (clonedHierBinding != null) {
    dcBindings.removeControlBinding(ctrlBindingName);
    =======================================
    Please, look here!
    What's the best practices to create a new FacesCtrlHierBinding?
    What a parameter _nodeBindings (type JUCtrlHierTypeBinding[]) should be?
    =======================================
    clonedHierBinding =
    new FacesCtrlHierBinding(null,
    iterBinding,
    new String[]{
    "BUILDING_ID"
    // "BUILD_NAME",
    // "FUNCTIONALITY_NAME",
    // "CITY_NAME",
    // "STREET_NAME",
    // "FLOORS"
    _nodeBindings
    dcBindings.addControlBinding(ctrlBindingName, clonedHierBinding);
    newTable.setValue(clonedHierBinding.getCollectionModel());
    for (int g=0; g < vo.getAttributeCount(); g++){
    RichColumn col = new RichColumn();
    col.setId("c" + Integer.toString(g));
    col.setHeaderText(vo.getAttributeDef(g).getProperty(AttributeHints.ATTRIBUTE_LABEL).toString());
    ValueExpression valExp =
    facesContext.getApplication().getExpressionFactory().createValueExpression(facesContext.getELContext(),
    "#{row." + vo.getAttributeDef(g).getName() + "}",String.class);
    RichOutputText text = new RichOutputText();
    text.setId(vo.getAttributeDef(g).getName() + "txt");
    text.setValueExpression("value", valExp);
    col.getChildren().add(text);
    newTable.getChildren().add(col);
    newDetItem.getChildren().add(newTable);
    myBean.panelTabbed.getChildren().add(newDetItem);
    ...

    Shay, good day!
    You answer is good, but - it use only one dynamic view (and one table, iterator and FacesModel).
    I have task like topic started have - i need to create some unknows numbers of ViewObject (created by demad) and i must have a FacesModel for each created ViewObject.
    How can we do it?

Maybe you are looking for

  • Callouts and anchored objects - there must be a better way to do this

    I've spent a lot of time in the last six months rebuilding PDF files in InDesign. It's part of my ordinary responsibilities, but I'm doing a lot more of it for some reason. Because I'm sending the text of these rebuild documents out for translation,

  • Oracle 11.2.0.3 - Lob space usage

    Hi Everyone, I would like some advise about how to interrupt LOB space usage given the following statistics. And would appreciate any feedback on whether my understanding of the following is correct: We have a table with BLOB column which is located

  • List of invoices

    Hi, how can I mark has solved a thread that has been locked ? The case in point is the following: List of invoice Yours sincerely

  • Accounting entry of payment after execute F110

    Hi experts, It's purchase to pay process. When execute invoice processing, an A/P entry should be booked in SAP... Dr: expense      Cr: A/P Finance team should run disbursement once the payment meet the due date, we should entry transaction code F110

  • Convert from Premiere Pro

    I did my son's graduation in an old version of Premiere Pro (2.0, I think).  I now have Premiere Elements 7.  I have all of the project files from a backup.  I would like to convert the project to PPE7 so I can burn a DVD.  How do I convert the proje