Actually, I still don't have a fix.  According to the FAQ entry you
referred me to earlier:

In ajax Forms you'll have to use tacos.refreshForm(document.form) or
tacos.cancelForm(document.form).

but neither function exists anywhere in the tacos object.  I get:

tacos.cancelForm is not a function

Looking at tacos.js, there is no mention of either method, and
grepping through the entire tacos source code, I never find the
strings cancelForm or refreshForm in any .js, .script, or .java file.
I'm thinking the faq is apparently way out of date (unless these
methods were added fairly recently.  I am dealing with a fairly old
version of tacos right now)

--sam


On 8/28/06, Sam Gendler <[EMAIL PROTECTED]> wrote:
Yeah, that definitely needs to be documented somewhere REALLY obvious.
 I am using other tacos components on the page, so tacos.js is being
loaded, even though it isn't using an AjaxForm.  As a result, tacos.js
is getting loaded and it is overloading the behaviour.

Really, if tacos is going to overload behaviour, wouldn't it be better
if it overloaded existing methods, so that it wouldn't break
functionality like this, rather than forcing a user to know about
internal data structure changes?

--sam


On 8/28/06, andyhot <[EMAIL PROTECTED]> wrote:
> Sam Gendler wrote:
> > Actually, I am on Tap 4.0.2 and it isn't an AjaxForm.  Unless you are
> > saying that merely the existence of tacos causes the overloaded
> > behaviour, even on regular tapestry forms.
> if tacos.js and form.js are included in a page, they indeed overload the
> cancel and
> refresh behaviour - they redefine some of Tapestry's javascript code...
>
> We might need a way to disable those overrides I guess. Perhaps Jesse
> can be of help
> here.
> >
> > --sam
> >
> >
> > On 8/28/06, andyhot <[EMAIL PROTECTED]> wrote:
> >> Jesse Kuhnert wrote:
> >> > I'm assuming you are working in 4.1 if this is the error you are
> >> getting.
> >> or tapestry 4.0 and tacos...
> >> http://tacos.sourceforge.net/faq.html#faq-N10080
> >>
> >> --
> >> Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
> >> Tapestry / Tacos developer
> >> Open Source / J2EE Consulting
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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]
> >
> >
>
>
> --
> Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / J2EE Consulting
>
>
> ---------------------------------------------------------------------
> 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