Affects Version/s: 5.3, 5.2.0, 5.2.1, 5.2.2, 5.2.3, 5.2.4, 5.2.5, 220.127.116.11, 18.104.22.168, 22.214.171.124, 5.0.18
Fix Version/s: 5.3
Environment:affects Tapestry versions 5.0.x.x, 5.2.x and the current 5.3 version regardless of OS/browser
I'm experiencing a problem with tapestry's palette component. I'm using it with the reorder parameter set to true. Reordering the
selected values works fine and the values are sent to the server in the expected order. However, if the page reloads and I submit the
containing form again without changing the palette's values, the original order is restored and sent to the server resetting the
previously arranged order.
order of the selected options is changed. It is not called however when the Palette object is instantiated, so the hidden field keeps the
sorting that comes from the server.
I believe, this could be fixed by calling the updateHidden method at the end of the Tapestry.Palette.initialize method. The following patch
— palette.js (Revision 755168)
+++ palette.js (Arbeitskopie)
@@ -45,6 +45,7 @@
bindEvents : function()