I may have lead you astray in the other thread. tapestry.form.submit(form,
<submit name>) won't cause a specific listener type to be called, you have
to use:

tapestry.form.cancel(form) OR tapestry.form.refresh(form)


On 7/25/06, Jun Tsai <[EMAIL PROTECTED]> wrote:

hi,all
  I hadn't did a cancel listener in a form.I want to debug js.But I
coudn't
find a way to debug?

PS:
page:
<component type="Form" id="AForm">
    <binding value="ognl:beans.delegate" name="delegate"/>
    <binding value="ognl:true" name="clientValidationEnabled"/>
    <binding value="listener:doSaveEntityAction" name="success"/>
    <binding value="listener:doCancelEntityAction" name="cancel"/>
    <binding value="listener:false" name="focus"/>
  </component>
html:
<input jwcid="@Any" type="Button" value="message:button.Cancle" onClick="
tapestry.form.submit(this.form,'cancel')"/>

When I click the button ,it will call doSaveEntityAction method.

Thanks.
--
Welcome to China Java Users Group(CNJUG).
http://cnjug.dev.java.net




--
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.

Reply via email to