Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1063

The single update block for hidden form input fields should only happen when updating individual items contained in a form, but not when the whole form itself needs to be rendered.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1
    • Fix Version/s: 4.1.1
    • Component/s: tapestry-core
    • Labels:
      None
    • Environment:
      tapestry 4.11 snapshot

      Description

      "The single update block for hidden form input fields should only happen when updating individual items
      contained in a form, but not when the whole form itself needs to be
      rendered. "

      Essentially, using updateComponent on a component that contains a form seems to cause a problem if that formin turn has form elements in it, at least in my example.

      My problem template is:

      <div jwcid="@Border">
      >
      > <a href= "#" jwcid="@DirectLink" async = "ognl:true" listener =
      > "listener:changePage" parameters = "ognl:0" updateComponents = "ognl:
      >

      {'res' > }

      ">0</a> |
      > <a href= "#" jwcid="@DirectLink" async = "ognl:true" listener =
      > "listener:changePage" parameters = "ognl:4" updateComponents = "ognl:
      >

      {'res' }

      " >4</a>
      >
      >
      > <div jwcid="res@Any">
      > ${new java.util.Date()}<br/>${search.pageNumber}<br/>${bookmarkablePage}
      > <br/>
      > <div jwcid="@For" value ="ognl:result" source = "ognl: results">
      > <form jwcid="xform@Form">
      > <input type="submit" jwcid="xf@Submit"/>
      > </form>
      > <br/>
      > </div>
      > </div></div>
      >

        Attachments

          Activity

            People

            • Assignee:
              jkuhnert Jesse Kuhnert
              Reporter:
              starbuxman Joshua Long
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: