Re: How to do Tapestry 4.1 form cancel listener?

2006-07-23 Thread Jun Tsai
2006/7/15, Jesse Kuhnert [EMAIL PROTECTED]: Oh right, all of the items mentioned in this thread have been fixed/added and deployed. html: input jwcid=@Any type=Button value=message:button.Cancle onClick=javascript:tapestry.form.submit(this.form,'cancel')/ page: component type=Form id=AForm

Re: How to do Tapestry 4.1 form cancel listener?

2006-07-14 Thread Jesse Kuhnert
] Sent: Thursday, July 13, 2006 10:32 PM To: Tapestry users Subject: Re: How to do Tapestry 4.1 form cancel listener? sighh.. in the last example, this should be this.form. On 7/13/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: Oops...That doesn't help you as much

Re: How to do Tapestry 4.1 form cancel listener?

2006-07-13 Thread Jesse Kuhnert
Ah. You have got me there, I've failed to provide explicit function calls for cancel/refresh. For now, you can call: tapestry.form.submit(your form name/id, cancel); So, if your rendered page had a form element that looked like: form name=MyTapForm method=POST , the script would be:

Re: How to do Tapestry 4.1 form cancel listener?

2006-07-13 Thread Jesse Kuhnert
Oops...That doesn't help you as much in the context of the example you gave, you can also do it this way ~if~ the context is within an html onEvent attribute (such as your example.P.S. you don't need to add javascript: anymore): onClick=tapestry.form.submit(this,'cancel') The first parameter

Re: How to do Tapestry 4.1 form cancel listener?

2006-07-13 Thread Jun Tsai
Thank you! 2006/7/14, Jesse Kuhnert [EMAIL PROTECTED]: sighh.. in the last example, this should be this.form. On 7/13/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: Oops...That doesn't help you as much in the context of the example you gave, you can also do it this way ~if~ the context is

RE: How to do Tapestry 4.1 form cancel listener?

2006-07-13 Thread James Carman
: How to do Tapestry 4.1 form cancel listener? sighh.. in the last example, this should be this.form. On 7/13/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: Oops...That doesn't help you as much in the context of the example you gave, you can also do it this way ~if~ the context is within an html

Re: How to do Tapestry 4.1 form cancel listener?

2006-07-13 Thread Jun Tsai
html: input jwcid=@Any type=Button value=message:button.Cancle onClick=javascript:tapestry.form.submit(this.form,'cancel')/ page: component type=Form id=AForm binding value=ognl:beans.delegate name=delegate/ binding value=ognl:true name=clientValidationEnabled/ binding

Re: How to do Tapestry 4.1 form cancel listener?

2006-07-13 Thread Jesse Kuhnert
Hmm don't know. I guess I can look at that real quick while I'm doing the other things. On 7/13/06, Jun Tsai [EMAIL PROTECTED] wrote: html: input jwcid=@Any type=Button value=message:button.Cancle onClick=javascript:tapestry.form.submit(this.form,'cancel')/ page: component type=Form id=AForm

RE: How to do Tapestry 4.1 form cancel listener?

2006-07-13 Thread James Carman
13, 2006 10:56 PM To: Tapestry users Subject: Re: How to do Tapestry 4.1 form cancel listener? Yes: @EventListener(targets=your propertyselection component id, events=onChange, submitForm=your form component id, async=true/false) public void yourListenerMethod() { } But, as I said on IM, give me

Re: How to do Tapestry 4.1 form cancel listener?

2006-07-13 Thread Jesse Kuhnert
users Subject: Re: How to do Tapestry 4.1 form cancel listener? sighh.. in the last example, this should be this.form. On 7/13/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: Oops...That doesn't help you as much in the context of the example you gave, you can also do it this way

Re: How to do Tapestry 4.1 form cancel listener?

2006-07-13 Thread Jesse Kuhnert
users Subject: Re: How to do Tapestry 4.1 form cancel listener? Yes: @EventListener(targets=your propertyselection component id, events=onChange, submitForm=your form component id, async=true/false) public void yourListenerMethod() { } But, as I said on IM, give me about 30 more minutes before