There is actually another solution (again, exactly like Select component does): handle internal (private) event using @RequestParameter annotation and trigger an external (public) event with server-side encoded context. It works, but that's an extra step.
On Sun, Apr 13, 2014 at 4:13 PM, Ilya Obshadko <ilya.obsha...@gmail.com>wrote: > I'm working on a mixin which allows selection handling in jQuery > AutoComplete (analogous to zone update on changing value in Select > component). I need to pass selected value to an event handler via event > context. However, I cannot find any JS method to encode selected value > using Tapestry conventions for URL encoding. > > Is there anything available to achieve the desired goal? > > There is a workaround: I can encode context into a request parameter > (similarly to what Select component does). But it doesn't look like an > elegant solution: you need to use @RequestParameter annotation and explicit > parameter name in all event handlers. > > -- > Ilya Obshadko > > -- Ilya Obshadko