Re: tapestry.form.cancel not working

2006-11-21 Thread Bill Holloway

That's got it!  Thanks.

Bill

On 11/19/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:

Without quotes the javascript interpreter will treat your sampleForm
reference as being one to an object previously defined. I think you need to
do something more like tapestry.form.cancel('sampleForm') to make it get
treated as a string.

On 11/19/06, Bill Holloway <[EMAIL PROTECTED]> wrote:
>
> I have a very simple setup to reproduce a bug here.  Summary:
> invoking tapestry.form.cancel from the onclick handler of a form's
> button (any button) gives javascript error in FireFox that the form's
> id is not defined; e.g., "sampleForm is not defined".  Here's my
> template:
>
> 
> 
>
>  async="ognl:true">Show Dialog
>
> 
>
>  backgroundColor="black" opacity="0.7">
>
>  cancel="listener:doFormCancel"
> updateComponents="ognl:{'DialogContent', 'sampleForm'}">
>
> 
>
>  onclick="tapestry.form.cancel(sampleForm);" />
>
> 
>
> 
>
> 
> 
> 
>
>
> Use ((Dialog)getComponent("DialogContent")).show() and ...hide() in
> the showDialog and doFormCancel methods.  Clicking on the cancel
> method results in no action and a message in Firefox's javascript
> console that  "sampleForm" is not defined.
>
> Cheers,
> Bill
>
> --
> "Budgets are moral documents."
>
>  -- Ann Richards
>
> -
> 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





--
"Budgets are moral documents."

-- Ann Richards

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



tapestry.form.cancel not working

2006-11-19 Thread Bill Holloway

I have a very simple setup to reproduce a bug here.  Summary:
invoking tapestry.form.cancel from the onclick handler of a form's
button (any button) gives javascript error in FireFox that the form's
id is not defined; e.g., "sampleForm is not defined".  Here's my
template:




   Show Dialog

   

   

   



   

   

   






Use ((Dialog)getComponent("DialogContent")).show() and ...hide() in
the showDialog and doFormCancel methods.  Clicking on the cancel
method results in no action and a message in Firefox's javascript
console that  "sampleForm" is not defined.

Cheers,
Bill

--
"Budgets are moral documents."

-- Ann Richards

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