MyFaces Tomahawk
  1. MyFaces Tomahawk
  2. TOMAHAWK-1316

Element Id inside datalist do not render correctly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.1.6
    • Fix Version/s: None
    • Component/s: Data List
    • Labels:
      None
    • Environment:
      - jdk 1.6
      - Server: glassfish 2

      Description

      The element id were rendered incorrect the first time but render correctly from the second time.
      The first time:
      <span id="investorList">
      <span id="orderList[0]">
      <input type="checkbox" name="orderList[0]_6:unHoldCash" id="orderList[0]_6:unHoldCash" value="false" />
      </span>
      </span>

      The second time:
      <span id="form:investorList">
      <span id="form:investorList:0:orderList">
      <input type="checkbox" name="form:investorList:0:orderList:6:unHoldCash" id="form:investorList:0:orderList:6:unHoldCash" value="true">
      </span>
      </span>

      Source:
      <t:dataList id="investorList" layout = "simple" value="#

      {EODOrderSummary.investorOrders}

      " var="investorOrder" rowIndexVar="parentIndex" forceIdIndex="true" forceId="true">
      <t:dataList id ="orderList" layout="simple" value="#

      {investorOrder.placedOrders}

      " var="orderSummaryInfo" rowIndexVar="childIndex" forceIdIndex="true" forceId="true">
      <t:selectBooleanCheckbox id="unHoldCash" value="#

      {orderSummaryInfo.unHoldEnabled}

      " rendered="#

      {orderSummaryInfo.buyingOrder && orderSummaryInfo.diffAmount > 0 && EODOrderSummary.today}

      " />

      EODOrderSummary scope is request.

        Issue Links

          Activity

            People

            • Assignee:
              Leonardo Uribe
              Reporter:
              Nguyen Vu Tuan Nam
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development