correction: i replaced targets with elements.I am getting 'Error: bad srcObj for srcFunc: onchange' when calling method: [nsIDOMEventListener::handleEvent]" error .My ajax response has this
dojo.widget.byId("MyDialog").show(); tapestry.cleanConnect("yypeChanged", "onchange", "formEvent2604279"); tapestry.formEvent2604279=function(e){ var content={beventname:"onchange"}; tapestry.event.buildEventProperties(e, content, arguments); if (!content["beventtarget.id"]) content["beventtarget.id"]="typeChanged" var validateState=tapestry.form.forms["ListForm"].validateForm; var validateForm=false; tapestry.form.setFormValidating("ListForm", validateForm); tapestry.form.submit("ListForm"); tapestry.form.setFormValidating("LisForm", validateState); }; tapestry.connect("typeChanged", "onchange", "formEvent2604279"); any ideas/ abhilash wrote: > > No,still not working > > > Andy Pahne-3 wrote: >> >> >> Try >> >> <div jwcid="[EMAIL PROTECTED]"> >> >> instead of >> >> <div jwcid="@Any" id="updateParts"> >> >> >> >> Because you use the parameter "targets" in your @EventListener, you have >> to use a component id. >> >> >> Andy >> >> >> >> >> >> abhilash schrieb: >>> Hi all, >>> i am using tapestry4.1.5 >>> My eventListener is not getting called.This is my code. >>> <div jwcid="@Any" id="updateParts"> >>> <div jwcid="[EMAIL PROTECTED]" bgColor="white" >>> bgOpacity="0.5" hidden="ognl:dlHidden"> >>> <form jwcid="[EMAIL PROTECTED]" class="dialog" >>> delegate="ognl:validationDelegate" >>> updateComponents="ognl:{'updateParts'}" >>> clientValidationEnabled="false"> >>> >>> >>> <fieldset> >>> <legend></legend> >>> Choose Type : >>> >>> >>> <div jwcid="@Any" id="selectedType"> >>> >>> >>> <div jwcid = "@EditDetail"/> >>> >>> <div align="right"> >>> <input class="button" type="submit" >>> value="Save" name="save" >>> jwcid="@Submit" action="listener:saveDialog"/> >>> >>> <input type="button" class="button" >>> value="Cancel" >>> onclick="closeDialog();return false;"/> >>> >>> </div> >>> >>> </div> >>> >>> </fieldset> >>> </form> >>> >>> </div> >>> </div> >>> my @EventListenerMethos is >>> @EventListener(targets = "typeChanged", events = "onchange", submitForm >>> = >>> "ListForm") >>> public void watchText(IRequestCycle cycle) >>> { >>> // >>> // >>> cycle.getResponseBuilder().updateComponent("selectedType"); >>> >>> } >>> >>> typeField is a propertyselectionmodel.My Dialog is coming up properly >>> with >>> propertyselectionmodel.But when onchange occures the eventlistener is >>> not >>> getting called.I dont know whats wrong in my code.Please help me out >>> >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- View this message in context: http://www.nabble.com/%40EventListener-Issue-tp16744255p16759702.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]