You want to use targets="" . Elements = "" is strictly for pure html elements and not tapestry components.
If you use the 4.1.2-SNAPSHOT version it will also automatically figure out which form your targeted components are attached to and submit that as part of the event so that you can do things like get the current value of the field. 4.1.2 should be released very soon, just holding out for ognl stability. On 4/30/07, Tony Nelson <[EMAIL PROTECTED]> wrote:
I am attempting to use @EventListener to submit the value of a TextField onChange. So, I have an input defined: <input jwcid="myField" value="ognl:text" displayName="Text" /> In the page class I have: @Component(bindings = {"validators=validators:required"}) public abstract TextField getMyField(); @EventListener(events={"onchange"}, elements="myField") public void testEvent(IRequestCycle cycle) { logger.debug("LOOKHERE... " + getText()); } But I'll be darned if any of the events are firing. To rule out other problems, I copied the "big brother is watching" sample from: http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html to the same page, and it works just fine.. 30 Apr 2007 11:35:36,658 [http-8080-Processor24] DEBUG com.starpoint.instihire.web.tapestry.page.Test - User clicked on x/y coordinates 159/326 Am I barking up the wrong tree? My final goal is to have a dropdown update it's contents based on the text in the TextField, but until I can dynamically get it's value I'm stuck. Thanks in advance for all the help. Tony Nelson --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com