— accordion.js (revision 32993)
+++ accordion.js (working copy)
@@ -183,6 +183,10 @@
} else {
//contents may have changed so get new ones or may be single pane MOBI-611
if (cached!=true)
{
+ cntr= cntr + 1;
+ //try to keep correct pane open despite caching
+ var submitted = subString +","+cntr;
+ updateHidden(clientId,submitted);
ice.se(null, clientId);
}
openPane( openElem, fixedHeight);
@@ -209,6 +213,18 @@
}
}
},
with this diff, the server is updated even though the selected id does not change, however the actionListener is not queued and a new selected id is not set (since it didn't change after all), however, the hash code is regenerated to trigger update properties.
toggle, works as it should and the panel is opened.
Renderer code puts class to "closed" to minimize size of updates.
updateProperties should then ensure the correct panel is opened. (sets class to "open"). this does give a bit of a flicker though, so have to come up with something better for 1.3 Beta.
since component does not submit itself in jsp this is for jsf version of component only.