You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Sam Gendler <sg...@ideasculptor.com> on 2006/08/28 18:24:29 UTC

cancel doesn't seem to work cross browser

According to the docs, calling document.formname.events.cancel()
should do whatever is necessary to disable client side validation and
call my cancel listener on the server.  However, when I do this in IE,
I am getting an error about the 'events' object not existing.

JS error - events is null or not an object

Surely I am not the first to encounter this problem.  Anyone got a
solution for cancelling a form submission in firefox AND ie? Looking
at Form.js

Maybe something like Tapestry.find(formname).events.cancel() would
work?  I haven't tried it yet, but that is how the events object is
assigned in Form.js:

Tapestry.register_form = function(formId)
{
  var form = this.find(formId);

  form.events = new FormEventManager(form);
}

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Re: Re: Re: Re: cancel doesn't seem to work cross browser

Posted by Sam Gendler <sg...@ideasculptor.com>.
I am guessing that frm.oncancel and frm.onrefresh only get defined if
it is actually an tacos supplied form, rather than a regular tapestry
supplied form.  So we have a situation where including any tacos
component causes the tacos.js file to force us to use the tacos
supplied methods, yet the tacos supplied methods don't actually
function on a regular Tapestry supplied form.  This is a great big
huge stinkin bug that I really need to figure out a fix for ASAP.  Any
guidance someone can give me would be great.  I don't, to be honest,
understand why the form specific code doesn't get included in a .js or
.script file that is only included when an AjaxForm is utilized.

--sam


On 8/28/06, Sam Gendler <sg...@ideasculptor.com> wrote:
> OK, so after pulling the latest tacos source and checking out
> tacos.js, I see that the mentioned methods are indeed newer than my
> current build.  So I ported all my changes to the latest tacos trunk
> AND I went ahead an upgraded to a custom build of dojo 0.3.1.  Aside
> from the (longstanding) problems I get when tacos.js calls
> field.focus() or field.select(), throwing an exception and causing
> other js to fail to execute (I put the two lines in a conditional
> statement which skips the affected browsers), everything works as it
> used to before.  I can no call tacos.cancelForm(), too, except that it
> still throws errors in FIrefox.  Now I am getting an error on the
> following line:
>
>         if (submitType == 'cancel') frm.oncancel(event);
>
> The message is:
>
>         frm.oncancel is not a function
>
> That is the only error I am getting.  Has anyone actually tested this
> code and seen it work in firefox?  I really need to be able to cancel
> a form that happens to be on a page with tacos components.
>
> --sam
>
>
> On 8/28/06, Sam Gendler <sg...@ideasculptor.com> wrote:
> > 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 <sg...@ideasculptor.com> 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 <an...@di.uoa.gr> 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 <an...@di.uoa.gr> 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 - andyhot@apache.org - http://andyhot.di.uoa.gr
> > > > >> Tapestry / Tacos developer
> > > > >> Open Source / J2EE Consulting
> > > > >>
> > > > >>
> > > > >> ---------------------------------------------------------------------
> > > > >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > >> For additional commands, e-mail: users-help@tapestry.apache.org
> > > > >>
> > > > >>
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> > > > Tapestry / Tacos developer
> > > > Open Source / J2EE Consulting
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > >
> > > >
> > >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Re: cancel doesn't seem to work cross browser

Posted by Sam Gendler <sg...@ideasculptor.com>.
On 8/28/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> Not to be rude but:
>
> -) This isn't the tacos mailing list.

well, yeah, but the problem started out as a problem with regular
tapestry forms and just happened to turn out to be a problem with
tacos.

>
> -) You ~are~ a tacos developer with full commit access.
>

True enough, but with no experience with the tacos forms stuff and no
time to work on it right now, anyway.

--sam

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: cancel doesn't seem to work cross browser

Posted by Jesse Kuhnert <jk...@gmail.com>.
Not to be rude but:

-) This isn't the tacos mailing list.

-) You ~are~ a tacos developer with full commit access.

Besides those obvious statements I'd have to agree that breaking normal
forms probably isn't the nicest thing to do.

On 8/28/06, andyhot <an...@di.uoa.gr> wrote:
>
> Sam Gendler wrote:
> > I am sure the fix fixes AjaxForms.  Unfortunately, it breaks any
> > non-AjaxForms that are on the same page.
> I understand your problem, but to be exact,
> the fix fixed AjaxForms... it just didn't fix normal Forms cause no one
> was aware of that issue.
> You can add a new bug report.
>
> > I have a page with a number
> > of AjaxForms (included as part of a component) as well as a normal
> > tapestry @Form component.  Since tacos.js overrides functionality
> > globally, for all forms, it breaks the normal @Form component.
> >
> > --sam
> >
> >
> > On 8/28/06, andyhot <an...@di.uoa.gr> wrote:
> >> Initially, therre was this bug report:
> >> http://tacoscomponents.jot.com/BugReporter/Bug109
> >>
> >> You can try the demo page at
> >> http://opencomponentry.com:8080/tacos/bugs/Bug109.html
> >>
> >> Enter more than six letters (there's a min length validator), hit
> >> submit,
> >> then enter one letter and then click on 'Cancel form'
> >>
> >> Sam Gendler wrote:
> >> > OK, so after pulling the latest tacos source and checking out
> >> > tacos.js, I see that the mentioned methods are indeed newer than my
> >> > current build.  So I ported all my changes to the latest tacos trunk
> >> > AND I went ahead an upgraded to a custom build of dojo 0.3.1.  Aside
> >> > from the (longstanding) problems I get when tacos.js calls
> >> > field.focus() or field.select(), throwing an exception and causing
> >> > other js to fail to execute (I put the two lines in a conditional
> >> > statement which skips the affected browsers), everything works as it
> >> > used to before.  I can no call tacos.cancelForm(), too, except that
> it
> >> > still throws errors in FIrefox.  Now I am getting an error on the
> >> > following line:
> >> >
> >> >     if (submitType == 'cancel') frm.oncancel(event);
> >> >
> >> > The message is:
> >> >
> >> >        frm.oncancel is not a function
> >> >
> >> > That is the only error I am getting.  Has anyone actually tested this
> >> > code and seen it work in firefox?  I really need to be able to cancel
> >> > a form that happens to be on a page with tacos components.
> >> >
> >> > --sam
> >> >
> >> >
> >> > On 8/28/06, Sam Gendler <sg...@ideasculptor.com> wrote:
> >> >> 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 <sg...@ideasculptor.com> 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 <an...@di.uoa.gr> 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 <an...@di.uoa.gr> 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 - andyhot@apache.org -
> >> http://andyhot.di.uoa.gr
> >> >> > > >> Tapestry / Tacos developer
> >> >> > > >> Open Source / J2EE Consulting
> >> >> > > >>
> >> >> > > >>
> >> >> > > >>
> >> >>
> ---------------------------------------------------------------------
> >> >> > > >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> >> > > >> For additional commands, e-mail:
> >> users-help@tapestry.apache.org
> >> >> > > >>
> >> >> > > >>
> >> >> > > >
> >> >> > > >
> >> >>
> ---------------------------------------------------------------------
> >> >> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> >> > > > For additional commands, e-mail:
> users-help@tapestry.apache.org
> >> >> > > >
> >> >> > > >
> >> >> > >
> >> >> > >
> >> >> > > --
> >> >> > > Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> >> >> > > Tapestry / Tacos developer
> >> >> > > Open Source / J2EE Consulting
> >> >> > >
> >> >> > >
> >> >> > >
> >> >>
> ---------------------------------------------------------------------
> >> >> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> >> > > For additional commands, e-mail: users-help@tapestry.apache.org
> >> >> > >
> >> >> > >
> >> >> >
> >> >>
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> > For additional commands, e-mail: users-help@tapestry.apache.org
> >> >
> >> >
> >>
> >>
> >> --
> >> Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> >> Tapestry / Tacos developer
> >> Open Source / J2EE Consulting
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / J2EE Consulting
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
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

Re: cancel doesn't seem to work cross browser

Posted by andyhot <an...@di.uoa.gr>.
Sam Gendler wrote:
> I am sure the fix fixes AjaxForms.  Unfortunately, it breaks any
> non-AjaxForms that are on the same page.  
I understand your problem, but to be exact,
the fix fixed AjaxForms... it just didn't fix normal Forms cause no one
was aware of that issue.
You can add a new bug report.

> I have a page with a number
> of AjaxForms (included as part of a component) as well as a normal
> tapestry @Form component.  Since tacos.js overrides functionality
> globally, for all forms, it breaks the normal @Form component.
>
> --sam
>
>
> On 8/28/06, andyhot <an...@di.uoa.gr> wrote:
>> Initially, therre was this bug report:
>> http://tacoscomponents.jot.com/BugReporter/Bug109
>>
>> You can try the demo page at
>> http://opencomponentry.com:8080/tacos/bugs/Bug109.html
>>
>> Enter more than six letters (there's a min length validator), hit
>> submit,
>> then enter one letter and then click on 'Cancel form'
>>
>> Sam Gendler wrote:
>> > OK, so after pulling the latest tacos source and checking out
>> > tacos.js, I see that the mentioned methods are indeed newer than my
>> > current build.  So I ported all my changes to the latest tacos trunk
>> > AND I went ahead an upgraded to a custom build of dojo 0.3.1.  Aside
>> > from the (longstanding) problems I get when tacos.js calls
>> > field.focus() or field.select(), throwing an exception and causing
>> > other js to fail to execute (I put the two lines in a conditional
>> > statement which skips the affected browsers), everything works as it
>> > used to before.  I can no call tacos.cancelForm(), too, except that it
>> > still throws errors in FIrefox.  Now I am getting an error on the
>> > following line:
>> >
>> >     if (submitType == 'cancel') frm.oncancel(event);
>> >
>> > The message is:
>> >
>> >        frm.oncancel is not a function
>> >
>> > That is the only error I am getting.  Has anyone actually tested this
>> > code and seen it work in firefox?  I really need to be able to cancel
>> > a form that happens to be on a page with tacos components.
>> >
>> > --sam
>> >
>> >
>> > On 8/28/06, Sam Gendler <sg...@ideasculptor.com> wrote:
>> >> 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 <sg...@ideasculptor.com> 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 <an...@di.uoa.gr> 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 <an...@di.uoa.gr> 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 - andyhot@apache.org -
>> http://andyhot.di.uoa.gr
>> >> > > >> Tapestry / Tacos developer
>> >> > > >> Open Source / J2EE Consulting
>> >> > > >>
>> >> > > >>
>> >> > > >>
>> >> ---------------------------------------------------------------------
>> >> > > >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> >> > > >> For additional commands, e-mail:
>> users-help@tapestry.apache.org
>> >> > > >>
>> >> > > >>
>> >> > > >
>> >> > > >
>> >> ---------------------------------------------------------------------
>> >> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> >> > > > For additional commands, e-mail: users-help@tapestry.apache.org
>> >> > > >
>> >> > > >
>> >> > >
>> >> > >
>> >> > > --
>> >> > > Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
>> >> > > Tapestry / Tacos developer
>> >> > > Open Source / J2EE Consulting
>> >> > >
>> >> > >
>> >> > >
>> >> ---------------------------------------------------------------------
>> >> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> >> > > For additional commands, e-mail: users-help@tapestry.apache.org
>> >> > >
>> >> > >
>> >> >
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> > For additional commands, e-mail: users-help@tapestry.apache.org
>> >
>> >
>>
>>
>> -- 
>> Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
>> Tapestry / Tacos developer
>> Open Source / J2EE Consulting
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Re: cancel doesn't seem to work cross browser

Posted by Sam Gendler <sg...@ideasculptor.com>.
I am sure the fix fixes AjaxForms.  Unfortunately, it breaks any
non-AjaxForms that are on the same page.  I have a page with a number
of AjaxForms (included as part of a component) as well as a normal
tapestry @Form component.  Since tacos.js overrides functionality
globally, for all forms, it breaks the normal @Form component.

--sam


On 8/28/06, andyhot <an...@di.uoa.gr> wrote:
> Initially, therre was this bug report:
> http://tacoscomponents.jot.com/BugReporter/Bug109
>
> You can try the demo page at
> http://opencomponentry.com:8080/tacos/bugs/Bug109.html
>
> Enter more than six letters (there's a min length validator), hit submit,
> then enter one letter and then click on 'Cancel form'
>
> Sam Gendler wrote:
> > OK, so after pulling the latest tacos source and checking out
> > tacos.js, I see that the mentioned methods are indeed newer than my
> > current build.  So I ported all my changes to the latest tacos trunk
> > AND I went ahead an upgraded to a custom build of dojo 0.3.1.  Aside
> > from the (longstanding) problems I get when tacos.js calls
> > field.focus() or field.select(), throwing an exception and causing
> > other js to fail to execute (I put the two lines in a conditional
> > statement which skips the affected browsers), everything works as it
> > used to before.  I can no call tacos.cancelForm(), too, except that it
> > still throws errors in FIrefox.  Now I am getting an error on the
> > following line:
> >
> >     if (submitType == 'cancel') frm.oncancel(event);
> >
> > The message is:
> >
> >        frm.oncancel is not a function
> >
> > That is the only error I am getting.  Has anyone actually tested this
> > code and seen it work in firefox?  I really need to be able to cancel
> > a form that happens to be on a page with tacos components.
> >
> > --sam
> >
> >
> > On 8/28/06, Sam Gendler <sg...@ideasculptor.com> wrote:
> >> 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 <sg...@ideasculptor.com> 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 <an...@di.uoa.gr> 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 <an...@di.uoa.gr> 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 - andyhot@apache.org - http://andyhot.di.uoa.gr
> >> > > >> Tapestry / Tacos developer
> >> > > >> Open Source / J2EE Consulting
> >> > > >>
> >> > > >>
> >> > > >>
> >> ---------------------------------------------------------------------
> >> > > >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> > > >> For additional commands, e-mail: users-help@tapestry.apache.org
> >> > > >>
> >> > > >>
> >> > > >
> >> > > >
> >> ---------------------------------------------------------------------
> >> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> > > > For additional commands, e-mail: users-help@tapestry.apache.org
> >> > > >
> >> > > >
> >> > >
> >> > >
> >> > > --
> >> > > Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> >> > > Tapestry / Tacos developer
> >> > > Open Source / J2EE Consulting
> >> > >
> >> > >
> >> > >
> >> ---------------------------------------------------------------------
> >> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> > > For additional commands, e-mail: users-help@tapestry.apache.org
> >> > >
> >> > >
> >> >
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / J2EE Consulting
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: cancel doesn't seem to work cross browser

Posted by andyhot <an...@di.uoa.gr>.
Initially, therre was this bug report:
http://tacoscomponents.jot.com/BugReporter/Bug109

You can try the demo page at
http://opencomponentry.com:8080/tacos/bugs/Bug109.html

Enter more than six letters (there's a min length validator), hit submit,
then enter one letter and then click on 'Cancel form'

Sam Gendler wrote:
> OK, so after pulling the latest tacos source and checking out
> tacos.js, I see that the mentioned methods are indeed newer than my
> current build.  So I ported all my changes to the latest tacos trunk
> AND I went ahead an upgraded to a custom build of dojo 0.3.1.  Aside
> from the (longstanding) problems I get when tacos.js calls
> field.focus() or field.select(), throwing an exception and causing
> other js to fail to execute (I put the two lines in a conditional
> statement which skips the affected browsers), everything works as it
> used to before.  I can no call tacos.cancelForm(), too, except that it
> still throws errors in FIrefox.  Now I am getting an error on the
> following line:
>
>     if (submitType == 'cancel') frm.oncancel(event);
>
> The message is:
>
>        frm.oncancel is not a function
>
> That is the only error I am getting.  Has anyone actually tested this
> code and seen it work in firefox?  I really need to be able to cancel
> a form that happens to be on a page with tacos components.
>
> --sam
>
>
> On 8/28/06, Sam Gendler <sg...@ideasculptor.com> wrote:
>> 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 <sg...@ideasculptor.com> 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 <an...@di.uoa.gr> 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 <an...@di.uoa.gr> 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 - andyhot@apache.org - http://andyhot.di.uoa.gr
>> > > >> Tapestry / Tacos developer
>> > > >> Open Source / J2EE Consulting
>> > > >>
>> > > >>
>> > > >>
>> ---------------------------------------------------------------------
>> > > >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> > > >> For additional commands, e-mail: users-help@tapestry.apache.org
>> > > >>
>> > > >>
>> > > >
>> > > >
>> ---------------------------------------------------------------------
>> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> > > > For additional commands, e-mail: users-help@tapestry.apache.org
>> > > >
>> > > >
>> > >
>> > >
>> > > --
>> > > Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
>> > > Tapestry / Tacos developer
>> > > Open Source / J2EE Consulting
>> > >
>> > >
>> > >
>> ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> > > For additional commands, e-mail: users-help@tapestry.apache.org
>> > >
>> > >
>> >
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Re: Re: Re: cancel doesn't seem to work cross browser

Posted by Sam Gendler <sg...@ideasculptor.com>.
OK, so after pulling the latest tacos source and checking out
tacos.js, I see that the mentioned methods are indeed newer than my
current build.  So I ported all my changes to the latest tacos trunk
AND I went ahead an upgraded to a custom build of dojo 0.3.1.  Aside
from the (longstanding) problems I get when tacos.js calls
field.focus() or field.select(), throwing an exception and causing
other js to fail to execute (I put the two lines in a conditional
statement which skips the affected browsers), everything works as it
used to before.  I can no call tacos.cancelForm(), too, except that it
still throws errors in FIrefox.  Now I am getting an error on the
following line:

	if (submitType == 'cancel') frm.oncancel(event);

The message is:

        frm.oncancel is not a function

That is the only error I am getting.  Has anyone actually tested this
code and seen it work in firefox?  I really need to be able to cancel
a form that happens to be on a page with tacos components.

--sam


On 8/28/06, Sam Gendler <sg...@ideasculptor.com> wrote:
> 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 <sg...@ideasculptor.com> 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 <an...@di.uoa.gr> 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 <an...@di.uoa.gr> 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 - andyhot@apache.org - http://andyhot.di.uoa.gr
> > > >> Tapestry / Tacos developer
> > > >> Open Source / J2EE Consulting
> > > >>
> > > >>
> > > >> ---------------------------------------------------------------------
> > > >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > >> For additional commands, e-mail: users-help@tapestry.apache.org
> > > >>
> > > >>
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> > > Tapestry / Tacos developer
> > > Open Source / J2EE Consulting
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Re: Re: cancel doesn't seem to work cross browser

Posted by Sam Gendler <sg...@ideasculptor.com>.
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 <sg...@ideasculptor.com> 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 <an...@di.uoa.gr> 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 <an...@di.uoa.gr> 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 - andyhot@apache.org - http://andyhot.di.uoa.gr
> > >> Tapestry / Tacos developer
> > >> Open Source / J2EE Consulting
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > >> For additional commands, e-mail: users-help@tapestry.apache.org
> > >>
> > >>
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> >
> > --
> > Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> > Tapestry / Tacos developer
> > Open Source / J2EE Consulting
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Re: cancel doesn't seem to work cross browser

Posted by Sam Gendler <sg...@ideasculptor.com>.
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 <an...@di.uoa.gr> 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 <an...@di.uoa.gr> 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 - andyhot@apache.org - http://andyhot.di.uoa.gr
> >> Tapestry / Tacos developer
> >> Open Source / J2EE Consulting
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / J2EE Consulting
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: cancel doesn't seem to work cross browser

Posted by andyhot <an...@di.uoa.gr>.
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 <an...@di.uoa.gr> 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 - andyhot@apache.org - http://andyhot.di.uoa.gr
>> Tapestry / Tacos developer
>> Open Source / J2EE Consulting
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Re: Re: cancel doesn't seem to work cross browser

Posted by Sam Gendler <sg...@ideasculptor.com>.
I assume that submitType is also a 4.1'ism, since it isn't mentioned
anywhere in the tap 4.0 docs?

As it happens, I am not using a submit component.  I am using my own
component and trying to make it cancel a form and failing miserably.

--sam


On 8/28/06, Sam Gendler <sg...@ideasculptor.com> 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.
>
> --sam
>
>
> On 8/28/06, andyhot <an...@di.uoa.gr> 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 - andyhot@apache.org - http://andyhot.di.uoa.gr
> > Tapestry / Tacos developer
> > Open Source / J2EE Consulting
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Re: cancel doesn't seem to work cross browser

Posted by Sam Gendler <sg...@ideasculptor.com>.
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.

--sam


On 8/28/06, andyhot <an...@di.uoa.gr> 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 - andyhot@apache.org - http://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / J2EE Consulting
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Hidden component bug in tap 4.0.2

Posted by Jesse Kuhnert <jk...@gmail.com>.
Not sure if it's fixed in 4.1, but if you file something in JIRA I'll make
sure it is. (somehow)

On 8/28/06, Patrick Moore <pm...@yahoo.com> wrote:
>
> Hi there --
>
> I ran into a bug with Hidden and the way it assigns its id.
>
> If I put @Hidden in a @For loop, the Hidden component keeps the supplied
> id as
> the id for all the generated Hidden components. Hidden does not generate a
> unique id each time through the loop like other input types do (for
> example
> TextField). Hidden does generate a unique name but not the id.
>
> Should I file a bug or is this expected behavior?
>
> I don't have 4.1 up and running so I haven't check to see if the issue is
> fixed
> with 4.1. If anyone has a moment to drop a Hidden component into a For
> loop
> while they are doing other things and let me know I would appreciate it.
>
> -Pat Moore
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
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

Hidden component bug in tap 4.0.2

Posted by Patrick Moore <pm...@yahoo.com>.
Hi there --

I ran into a bug with Hidden and the way it assigns its id. 

If I put @Hidden in a @For loop, the Hidden component keeps the supplied id as
the id for all the generated Hidden components. Hidden does not generate a
unique id each time through the loop like other input types do (for example
TextField). Hidden does generate a unique name but not the id.

Should I file a bug or is this expected behavior?

I don't have 4.1 up and running so I haven't check to see if the issue is fixed
with 4.1. If anyone has a moment to drop a Hidden component into a For loop
while they are doing other things and let me know I would appreciate it. 

-Pat Moore



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: cancel doesn't seem to work cross browser

Posted by andyhot <an...@di.uoa.gr>.
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 - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: cancel doesn't seem to work cross browser

Posted by Jesse Kuhnert <jk...@gmail.com>.
If you are using any of the submit kind of components you only need to set
the submitType parameter:

submitType="literal:cancel"

I'm assuming you are working in 4.1 if this is the error you are getting.

There is also a rather exhaustive reference for the client side api wrt
forms here:

http://tapestry.apache.org/tapestry4.1/javascript/form.html

On 8/28/06, Sam Gendler <sg...@ideasculptor.com> wrote:
>
> According to the docs, calling document.formname.events.cancel()
> should do whatever is necessary to disable client side validation and
> call my cancel listener on the server.  However, when I do this in IE,
> I am getting an error about the 'events' object not existing.
>
> JS error - events is null or not an object
>
> Surely I am not the first to encounter this problem.  Anyone got a
> solution for cancelling a form submission in firefox AND ie? Looking
> at Form.js
>
> Maybe something like Tapestry.find(formname).events.cancel() would
> work?  I haven't tried it yet, but that is how the events object is
> assigned in Form.js:
>
> Tapestry.register_form = function(formId)
> {
>   var form = this.find(formId);
>
>   form.events = new FormEventManager(form);
> }
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
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