your pasted code is a mess. But from what I can see your attempt to implement my suggestion was almost correct... except that you had an argument in your change handler:
was: onActionFromItemsPerPageSelect(Integer value) should be: onActionFromItemsPerPageSelect() [the property bound to the value of the select component has the newly selected value when this is triggered] On Fri, Jan 23, 2015 at 11:18 PM, nhhockeyplayer nashua < nhhockeypla...@hotmail.com> wrote: > the docs only reflect s <select> on a page > not a <select> on a component > My page is Home.JAVA > @Persist @Property private Integer itemsPerPage; > My Component is Gallery.JAVA @Property @Parameter(required = > true, value="literal:25", cache=true) private Integer itemsPerPage; > I go by the theory that paged have properties and components have > parameters > Havent I done sufficient enough to at least get an event generated and a > breakpoint? > Home.tml <t:form t:id="galleryForm" > t:context="collectionType"> <t:Gallery > collectionType="collectionType" > itemsPerPage="itemsPerPage" > tableColumns="tableColumns" > cursor="cursor"> </t:Gallery> > </t:form> > Gallery.java @Component(id = "itemsPerPageSelect", parameters = { > "value=itemsPerPage", "clientId=itemsPerPageSelect" }) private > Select itemsPerPageSelect; @OnEvent(value = > EventConstants.VALUE_CHANGED, component = "itemsPerPageSelect") > public Object onActionFromItemsPerPageSelect(Integer value) { > logger.debug("In onValueChangedItemsPerPageSelect : "); > if (itemsPerPage < tableColumns) { > tableColumns = itemsPerPage; } else { > /** * Use case, items is larger than columns, > need to back cursor off * if in endzone > */ int i = cursor + itemsPerPage; > while (i > (collection.size() - Math.min(collection.size(), > itemsPerPage + tableColumns))) { > i--; } cursor = (i); > } return homePage; } > @Component(id = "tableColumnsSelect", parameters = { > "value=tableColumns", "clientId=tableColumnsSelect" }) private > Select tableColumnsSelect; > @OnEvent(value = EventConstants.VALUE_CHANGED, component = > "tableColumnsSelect") public Object > onChangeFromTableColumnsSelect() { logger.info("In > tableColumnsChangeListener : "); > onActionFromItemsPerPageSelect(itemsPerPage); return homePage; > } > public Object galleryFormSubmit() { > logger.info("In galleryFormSubmit : "); > return homePage; } > > > >