javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-1978

wrong id for h:selectOneMenu inside composite in h:dataTable

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Works as designed
    • Affects Version/s: 2.0.4, 2.1.0
    • Fix Version/s: None
    • Component/s: facelets
    • Labels:
      None
    • Status Whiteboard:
      Hide

      size_medium importance_medium

      Show
      size_medium importance_medium

      Description

      <h:dataTable value="#

      {controller.authorizations}

      " var="authorization">
      <h:column>
      <my:auth value="#

      {authorization.authType}

      " />
      </h:column>
      </h:dataTable>

      Composite component implementation is just a f:selectOneMenu with hardcoded f:selectItem values (enum values).

      Behavior with composite component (wrong):

      Rendered output has same id for select on each row:
      <select id="j_idt25:j_idt48:j_idt72:_t73" ...

      When putting implementation of composite component directly in dataTable column (right):

      <select id="j_idt25:j_idt48:0:_t72" ...
      ...
      <select id="j_idt25:j_idt48:1:_t72" ...

        Activity

          People

          • Assignee:
            Ed Burns
            Reporter:
            ymajoros
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: