alright i'll give that a shot - does this mean it's a bug?

On 1/17/06, Ben Dotte <[EMAIL PROTECTED]> wrote:
> We had the same problem and found that using @Button or @Any
> type="button" with onclick="javascript:this.form.events.cancel();"
> instead of @Submit fixed the problem.
>
> Ben
>
> -----Original Message-----
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Emminger
> Sent: Tuesday, January 17, 2006 10:44 AM
> To: [email protected]
> Subject: form success and cancel both called?
>
> it seems from my log output that when i click my Form's cancel button,
> the success listener is being called after the cancel listener.
>
> i have a Form:
> <component id="form" type="Form">
>         <binding name="success" value="listener:onSuccess"/>
>         <binding name="cancel" value="listener:onCancel"/>
>         <binding name="delegate" value="bean:delegate"/>
> </component>
>
> and in the page template a cancel button:
>   <input type="submit"
>    value="Cancel"
>    jwcid="@Submit"
>    listener="listener:onCancel"/>
>
> in the .java file:
> public String onCancel() {
>         log.debug("onCancel");
>         return "Foo";
> }
> public String onSuccess() {
>         log.debug("onSuccess");
>         return "Bar";
> }
>
>
> is this the wrong way to do it?
>
> thanks,
> jeff
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to