Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-1081

id's for inputListOfValues in ui:repeat, tr:table, etc are stripped of unique parts of id in combination with facelet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.2.7-core
    • None
    • Facelets
    • None
    • Oracle Jdeveloper 10.1.3.3.0, windows XP proffesional,Facelets 1.1.14, Sun JSF 1.2_08-b06-FCS, Trinidad 1.2.7

    Description

      We have created a facelet that incorporates a LOV that we use in combination with and without a trinidad:table on the page.
      If we use this facelet without a table we experience no problems.
      If we use the facelet in a table we provide a unique id to the facelet so we can still show a message and outputlabel etc. The ID that we provide is stripped from the unique parts and the log display messages that the id cannot be found.
      The result is that error messages are not shown.

      example page using the facelet:
      <tr:table value="#

      {backingBean.listWithBeans}

      "
      var="bean" rows="10" id="ourTable">
      <tr:column>
      <hubview:inputListOfValues id="ourBeanLOV_#

      {bean.id}

      " value="#

      {bean.name}

      " backingBean="#

      {fixtureDetailBean}

      " />
      </tr:column>
      </tr:table>

      facelet content:
      <tr:inputListOfValues id="#

      {id}_lov" value="#{value}"
      action="#{backingBean[startDialogAction]}"
      useWindow="true"
      returnListener="#{backingBean.onReturnDialog}"
      required="true"
      simple="true"
      partialSubmit="true"
      icon="/images/select.gif">
      </tr:inputListOfValues>
      <tr:outputText value="#{id}

      _lov" />
      <tr:message for="#

      {id}

      _lov"/>

      In this example the log shows that Trinidad can not find the component with id ourBeanLOV__lov. Clearly the unique part is stripped. The outputText below however does show the correct value with the id still between ourBeanLOV and LOV part.

      Attachments

        Activity

          People

            Unassigned Unassigned
            andrepaap Andre Paap
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: