*Bah*...mustn't work late on Friday nights!! Thanks for help.
Best Regards, Sanket On Sat, Jun 21, 2014 at 12:30 AM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 20 Jun 2014 18:03:12 -0300, Sanket Sharma <sanketsha...@gmail.com> > wrote: > > Hi, >> > > Hi! > > <t:textfield t:id="addressLineOne" t:mixins="OpenStreetMaps"/> >> >> In my component class, I have: >> >> Object onGeocodeAddressFromAddressLineOne(String input) { >> // Need to return JSON here >> logger.debug("********* returning JSON data******"); >> logger.debug("*********Input recevied as*********" + input); >> return null; >> } >> >> and in my mixin class I have: >> >> private static final String GEOCODE_REQUEST_EVENT = "geocodeAddress"; >> Link eventLink = resources.createEventLink(GEOCODE_REQUEST_EVENT); >> > > You created the event link without a context and our event handler method > has a context (the input parameter). That's why the event wasn't handled: > the method has more event context values (parameters) (one) then the > request (zero). Remove the parameter, pass anything you want from JS to > class through query parameters and it'll work. > > This isn't related to AJAX or mixins at all. > > -- > Thiago H. de Paula Figueiredo > Tapestry, Java and Hibernate consultant and developer > http://machina.com.br > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >