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
]
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
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:
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
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
: 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
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
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
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
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
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
11 matches
Mail list logo