When the user clicks on the action link, I want to get the currently selected value from select field and use that as the context when calling the event.
@Component private Zone myZone; @Component(parameters = {"context=selectedItem", "zone=myZone"}) private ActionLink showMyStuffLink; @Component private Form form; @Component (parameters = {"blankLabel=--Select--", "blankOption=ALWAYS", "model=mySelectModel", "encoder=myValueEncoder", "value=selectedItem"}) private Select mySelectField; @Property private Item selectedItem; @OnEvent(value = "action", component = "showMyStuffLink") Object showStuff(Item selectedItem) { someOtherComponent.setSelectedItem(selectedItem); return someOtherComponent; } But Tapestry does not use the showStuff(Item selectedItem) method and it throws an Exception in AjaxComponentEventRequestHandler saying it cannot find my event handler. Debugging AjaxComponentEventRequestHandler shows that EventContext is an empty one. If I make the method take no parameters, then showStuff() gets called, but I have no access to the mySelectField's selected value (selectedItem property is null). How do I grab the selected field value and pass it on to my event handler? Dave --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org