Uploaded image for project: 'MyFaces Tobago'
  1. MyFaces Tobago
  2. TOBAGO-2224

Ajax rendering for grid layout doesn't work correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.7.0
    • 5.10.0, 6.2.0
    • Core
    • None

    Description

      See the following example and notice that the ouput component has the attribute labelLayout="gridLeft" set:

      <tc:gridLayout id="grid" columns="100px auto">
        <tc:in id="input" label="Input" labelLayout="gridLeft" value="#\{gridLayoutTestController.value}">
          <f:ajax render="output"/>
        </tc:in>
        <tc:out id="output" label="Output" labelLayout="gridLeft" value="#\{gridLayoutTestController.value}"/>
      </tc:gridLayout>
      

      Steps to reproduce:
      1. select input field
      2. change value
      3. leave input field

      Expected result:
      An ajax event is executed and the value in the output field is changed.

      Actual result:
      The ajax event is executed. The old <label> element stays in DOM. The output field is replaced with a new output field and a second label. There is one <label> element too much.

      Attachments

        Activity

          People

            hnoeth Henning Nöth
            hnoeth Henning Nöth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: