Hi,

We have got a problem with the Tree component.

In our tree element, we want to have a form included to allow to add a
new child to the current element. We have used the p:label attribute
to customize the rendering of the element, and we have included a form
inside, which must submit in XHR to a zone.

The problem all but the last item on the tree triggers a plain old
form submission with a full reload.
The last item trigger a XHR submit but for all the displayed items in
the tree at the time the page loads (so not taking into account the
dynamically expanded elements).

If you look at the source code generated at the bottom of the page,
you can see the linkId is always the same for each form element :

  "linkZone" : [
    {
      "linkId" : "form_2",
      "url" : "/index.form/Pets",
      "zoneId" : "zone"
    },
    {
      "linkId" : "form_2",
      "url" : "/index.form/Games",
      "zoneId" : "zone"
    },
    {
      "linkId" : "form_2",
      "url" : "/index.form/Numbers",
      "zoneId" : "zone"
    },
    {
      "linkId" : "form_2",
      "url" : "/index.form/Last$0020element",
      "zoneId" : "zone"
    }
  ],

I've setup a sample project on github at
https://github.com/bouil/tapestry-tree-test

The problem can be live tested at http://tapestry-tree-test.cloudfoundry.com/

Thank you for any help and workaround you could provide to solve this problem.

Nicolas.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to