3 Replies Latest reply: Oct 28, 2003 5:11 AM by 331500 RSS

    Complex Data Binding

    331500
      My UIX provider looks like below.
        static public Object getList( RenderingContext context, String ns, String name){
          TestBean testBean = new TestBean();
          testBean.setMyCode("0001");
          testBean.setMyName("Senthoor");
          UsersDTO usersDTO = new UsersDTO();
          usersDTO.setUserID(10);
          usersDTO.setLoginName("88Pro");
          testBean.setUsersDTO(usersDTO);
          ArrayList myList = new ArrayList();
          myList.add(testBean);
          return myList;
        }
      I have a table in a UIX page
                              <table name="testTable"
                                     data:tableData=".@testList"
                                     width="300" nameTransformed="false">
                                <tableFormat tableBanding="rowBanding"
                                             bandingInterval="1">
                                </tableFormat>
                                <columnFormats>
                                  <columnFormat columnDataFormat="textFormat"
                                                width="20"/>
                                  <columnFormat columnDataFormat="textFormat"
                                                width="150"/>
                                  <columnFormat columnDataFormat="iconButtonFormat"
                                                width="150"/>
                                </columnFormats>
                                <columnHeaderData>
                                  <col text=" "/>
                                  <col text=" Login Name "/>
                                  <col text=" Access Level "/>
                                </columnHeaderData>
                                <columnHeaderStamp>
                                  <text data:text="text"/>
                                </columnHeaderStamp>
                                  <contents>
                                  <!-- the first column stamp, a text node -->
                                  <text data:text="myName"/>
                                  <text data:text="myCode"/>
                                  <text data:text="loginName@usersDTO"/>
                                </contents>
                              </table>
      In the UIX page I have the Data Provider
              <data name="testList">
                <method class="lk.informatics.infopro.provider.UIXProvider"
                        method="getList"/>
              </data>
      However I am getting the output of

      <text data:text="myName"/>
      <text data:text="myCode"/>
      on my UIX page but I am NOT getting the output of <text data:text="loginName@usersDTO"/>

      Can someone help me resolve this issue?