I think my first suggestion would have worked if you had actually wrapped the select in a t:zone and not a <zone> tag and removed the argument from the handler... as i wrote there is no need to work with hidden submits etc. it works right out of the box, with dead simple code.
On Sat, Jan 24, 2015 at 1:33 PM, nhhockeyplayer nashua < nhhockeypla...@hotmail.com> wrote: > Thanks Geoff, > > I finally got a breakpoint using zones. Cant say too much for the OnEvent > annotations anymore. My code lived before inducing a javascript submit > without submit button but to make this fly I had to add the invisible > submit button just like your filterSubmit and emulate a click() on change. > > Much appreciated. > > nasty Slowwwww though... feel free to check it out > http://psinh.ddns.net:9011/psi/home > > > > <td width="10%" align="center" nowrap="NOWRAP"> > <t:Label for="itemsPerPageSelect">Items Per Page</t:Label> > <t:zone t:id="itemsPerPageSelectZone"> > <t:select > t:id="itemsPerPageSelect" > t:model="literal:5,10,15,25,50,100,250,500,1000,5000,10000" > t:value="itemsPerPage" > onchange="document.getElementById('gallerySubmit').click()" > secure="never" > zone="itemsPerPageSelectZone" > /> > </t:zone> > </td> > <td width="10%" align="center" nowrap="NOWRAP"> > <t:Label for="tableColumnsSelect">Table Columns</t:Label> > <t:zone t:id="tableColumnsSelectZone"> > <t:select > t:id="tableColumnsSelect" > model="literal:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,25,50,100" > value="tableColumns" > onchange="document.getElementById('gallerySubmit').click()" > secure="never" > zone="tableColumnsSelectZone" > /> > </t:zone> > </td> > > @InjectComponent > private Zone itemsPerPageSelectZone; > public void onValueChangedFromItemsPerPageSelect() > { > if (itemsPerPage < tableColumns) > { > tableColumns = itemsPerPage; > } else > { > int i = cursor + itemsPerPage; > while (i > (collection.size() - Math.min(collection.size(), > itemsPerPage + tableColumns))) > { > i--; > } > cursor = (i); > } > } > > @InjectComponent > private Zone tableColumnsSelectZone; > public void onValueChangedFromTableColumnsSelect() > { > onValueChangedFromItemsPerPageSelect(); > } >