You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Lionel Touati <l....@expediacorporate.fr> on 2007/06/18 22:40:27 UTC

Tap 4.1.2 / Palette

Hi List,

It seems there's a bug in the form submission mechanism. When you have a 
page with the palette component it seems the onsubmit listener is never 
called when clicking on a submit button.

Does this tells anyone something ?

If not, I'll try to create a test case for it

Thanks



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


Re: Tap 4.1.2 / Palette

Posted by Igor Drobiazko <ig...@gmail.com>.
Actually you don't need to connect your method call to any event.
You only need to specify the required parameters: 'selected' and 'model'.
When you click on the button the list 'selected' is updated with new values
automatically.

On 6/18/07, Lionel Touati <l....@expediacorporate.fr> wrote:
>
> It looks like I can fix the issue by adding the following line
>
> dojo.event.connect(dojo.byId("${formName}"), "submit", tapestry,
> "${formSubmitFunctionName}");
>
> instead of
>
> dojo.event.connect(dojo.byId("${formName}"), "onsubmit" , tapestry,
> "${formSubmitFunctionName}");
>
> Any idea if I miss something ?
>
> L.
>
>
> Lionel Touati a écrit :
> > Hi List,
> >
> > It seems there's a bug in the form submission mechanism. When you have
> > a page with the palette component it seems the onsubmit listener is
> > never called when clicking on a submit button.
> >
> > Does this tells anyone something ?
> >
> > If not, I'll try to create a test case for it
> >
> > Thanks
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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: Tap 4.1.2 / Palette

Posted by Jesse Kuhnert <jk...@gmail.com>.
This sounds really weird.   I think I won't know what the problem is without
a test case.

On 6/18/07, Lionel Touati <l....@expediacorporate.fr> wrote:
>
> It looks like I can fix the issue by adding the following line
>
> dojo.event.connect(dojo.byId("${formName}"), "submit", tapestry,
> "${formSubmitFunctionName}");
>
> instead of
>
> dojo.event.connect(dojo.byId("${formName}"), "onsubmit" , tapestry,
> "${formSubmitFunctionName}");
>
> Any idea if I miss something ?
>
> L.
>
>
> Lionel Touati a écrit :
> > Hi List,
> >
> > It seems there's a bug in the form submission mechanism. When you have
> > a page with the palette component it seems the onsubmit listener is
> > never called when clicking on a submit button.
> >
> > Does this tells anyone something ?
> >
> > If not, I'll try to create a test case for it
> >
> > Thanks
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Re: Tap 4.1.2 / Palette

Posted by Lionel Touati <l....@expediacorporate.fr>.
It looks like I can fix the issue by adding the following line

dojo.event.connect(dojo.byId("${formName}"), "submit", tapestry, 
"${formSubmitFunctionName}");

instead of

dojo.event.connect(dojo.byId("${formName}"), "onsubmit" , tapestry, 
"${formSubmitFunctionName}");

Any idea if I miss something ?

L.


Lionel Touati a écrit :
> Hi List,
>
> It seems there's a bug in the form submission mechanism. When you have 
> a page with the palette component it seems the onsubmit listener is 
> never called when clicking on a submit button.
>
> Does this tells anyone something ?
>
> If not, I'll try to create a test case for it
>
> Thanks
>
>
>
> ---------------------------------------------------------------------
> 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