This page shows an example of how to do something when the selected items are added/removed/reordered in a Palette.

Anything can happen in your 'doMyStuff' method including submitting an Ajax request to do some calculations based on the contents of the select list or displaying other details related to what has been selected.

<script type="text/javascript">

  var _oldUpdateHidden = Tapestry.Palette.prototype.updateHidden;
  Tapestry.Palette.prototype.updateHidden=function()
  {
    var doOldStuff = _oldUpdateHidden.bind(this);
    var doNewStuff = doMyStuff.bind(this);
    
    doOldStuff();
    doNewStuff();
  }

  function doMyStuff()
  {
    // your stuff goes here
  }

</script>

Tapestry5PaletteEvents (last edited 2009-09-20 23:20:46 by localhost)