Ok after looking into this. It appears to be a conflict with DOJO and Prototypte. the isNode method in dojo check to see if Element is of type function and then compare it to the object. I am not willing to give up prototype for this, so i just commented out this section of the code in /dojo-0.4.3/src/dom.js and everything is working nicely. Is there any reason why I shouldn't do this?
Regards, LT lt wrote: > > Hello, > > Im having some trouble with the EventListener annotation and > PropertySelection component. I am using Tap 4.1.3. Here is the mappings. > > @Component(id="reportTypeSelect", type="PropertySelection", bindings={ > "displayName=literal:Report Type", > > "[EMAIL PROTECTED]@REPORT_TYPE_MODEL", > "value=reportType" > }) > public abstract PropertySelection getReportTypeSelect(); > > @EventListener(events={"onchange"}, targets="reportTypeSelect", > submitForm="reportForm") > public void onChangeReportType(IRequestCycle cycle) { > System.out.println("HERE"); > } > > > On the page, the JS is loaded and the event is mapped via dojo but when I > change the select from one value to another i get this JS exception. > > DEBUG: [Error: buildTargetProperties() Unknown target type:[object > HTMLSelectElement], file: > http://localhost:8081/assets/static/dojo-0.4.3/dojo.js, line: 96] when > calling formEvent1730950492$joinpoint$method on [object Object] with > arguments [object Object] > FATAL exception raised: buildTargetProperties() Unknown target > type:[object HTMLSelectElement] > > What am I missing? > -- View this message in context: http://www.nabble.com/EventListener-and-PropertySelection-tf4699964.html#a13444950 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]