Re: @EventListener Issue
Hi, a don't see "typeChanged" element in your code, and javascript code ("tapestry.cleanConnect("yypeChanged", "onchange", "formEvent2604279"); ") has error, don't see yypeChanged element. Put all your code and use Target instead of Element, and put, if you have, a response when you use a Target in @EventListener. -- View this message in context: http://www.nabble.com/%40EventListener-Issue-tp16744255p16763402.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]
Re: @EventListener Issue
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 >> >> >> >> instead of >> >> >> >> >> >> 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. >>> >>> >> bgOpacity="0.5" hidden="ognl:dlHidden"> >>> >> delegate="ognl:validationDelegate" >>> updateComponents="ognl:{'updateParts'}" >>> clientValidationEnabled="false"> >>> >>> >>> >>> >>> Choose Type : >>> >>> >>> >>> >>> >>> >>> >>> >>> >> value="Save" name="save" >>> jwcid="@Submit" action="listener:saveDialog"/> >>> >>> >> value="Cancel" >>> onclick="closeDialog();return false;"/> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> 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]
Re: @EventListener Issue
No,still not working Andy Pahne-3 wrote: > > > Try > > > > instead of > > > > > > 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. >> >> > bgOpacity="0.5" hidden="ognl:dlHidden"> >> > delegate="ognl:validationDelegate" >> updateComponents="ognl:{'updateParts'}" >> clientValidationEnabled="false"> >> >> >> >> >> Choose Type : >> >> >> >> >> >> >> >> >> > value="Save" name="save" >> jwcid="@Submit" action="listener:saveDialog"/> >> >> > value="Cancel" >> onclick="closeDialog();return false;"/> >> >> >> >> >> >> >> >> >> >> >> 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-tp16744255p16758980.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]
Re: @EventListener Issue
Try instead of 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. delegate="ognl:validationDelegate" updateComponents="ognl:{'updateParts'}" clientValidationEnabled="false"> Choose Type : onclick="closeDialog();return false;"/> 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]
Re: @EventListener issue with submitForm and Upload component
https://issues.apache.org/jira/browse/TAPESTRY-1128 Peter Beshai From: "Jesse Kuhnert" <[EMAIL PROTECTED]> Reply-To: "Tapestry users" To: "Tapestry users" Subject: Re: @EventListener issue with submitForm and Upload component Date: Fri, 27 Oct 2006 11:54:04 -0400 It's possible. Don't know if I tested that particular component. Can you create a JIRA issue? On 10/25/06, Peter Beshai <[EMAIL PROTECTED]> wrote: Is it intended that if there is an Upload component in the form that is attached to an EventListener (via setting submitForm="myform"), the EventListener doesn't fire off? (I didn't see it documented anywhere, but I could have missed something). Peter Beshai _ Découvrez Live Search de votre PC ou de votre appareil mobile dès aujourd'hui. http://www.live.com/?mkt=fr-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com _ Découvrez Live Search de votre PC ou de votre appareil mobile dès aujourdhui. http://www.live.com/?mkt=fr-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: @EventListener issue with submitForm and Upload component
It's possible. Don't know if I tested that particular component. Can you create a JIRA issue? On 10/25/06, Peter Beshai <[EMAIL PROTECTED]> wrote: Is it intended that if there is an Upload component in the form that is attached to an EventListener (via setting submitForm="myform"), the EventListener doesn't fire off? (I didn't see it documented anywhere, but I could have missed something). Peter Beshai _ Découvrez Live Search de votre PC ou de votre appareil mobile dès aujourd'hui. http://www.live.com/?mkt=fr-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com