You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ken nashua <nh...@hotmail.com> on 2007/10/09 18:46:30 UTC
PropertySelection component - automatic submit
Folks,
Is there a way to get a PropertySelection component to automatically submit on selection event (I think it's onChange).
My javascript has no effect...
onChange="javascript:document.GalleryForm.submit()">
Best regards
Ken in nashua
_________________________________________________________________
Help yourself to FREE treats served up daily at the Messenger Café. Stop by today.
http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWLtagline
Re: PropertySelection component - automatic submit
Posted by Marcelo Lotif <ml...@gmail.com>.
Oh andy, i forgot to tell that i was using 4.0.2, so this code is not so up
to date
sorry about that
:)
2007/10/9, andyhot <an...@di.uoa.gr>:
>
> Just a note that
> this.form.events.refresh() has been deprecated for more than a year now
> and actually has been removed in 4.1.4
>
> Correct (as http://tapestry.apache.org/tapestry4.1/javascript/form.html
> states ) is
> onchange="tapestry.form.refresh(this.form)"
>
>
> Marcelo Lotif wrote:
> > Hi Ken,
> > i was using the @InvokeListener component + onChange to do this
> >
> > put this on outside your form
> > <span jwcid="@InvokeListener" listener="listener:updateData"/>
> >
> > then on the @PropertySelection, do like this
> > <span jwcid="@PropertySelection"
> > model="ognl:@foo@FOO_MODEL"
> > value="ognl:foo"
> > onchange="javascript:this.form.events.refresh();"/>
> >
> > it is working fine for me.
> > :)
> >
> > 2007/10/9, Igor Drobiazko <ig...@gmail.com>:
> >
> >> Try this.form.submit();
> >>
> >> On 10/9/07, Ken nashua <nh...@hotmail.com> wrote:
> >>
> >>> Folks,
> >>>
> >>> Is there a way to get a PropertySelection component to automatically
> >>> submit on selection event (I think it's onChange).
> >>>
> >>> My javascript has no effect...
> >>> onChange="javascript:document.GalleryForm.submit()">
> >>>
> >>> Best regards
> >>> Ken in nashua
> >>> _________________________________________________________________
> >>> Help yourself to FREE treats served up daily at the Messenger Café.
> Stop
> >>> by today.
> >>>
> >>>
> >>>
> >>
> http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWLtagline
> >>
> >>
> >
> >
> >
> >
>
> --
> Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Atenciosamente,
Marcelo Lotif
Re: PropertySelection component - automatic submit
Posted by andyhot <an...@di.uoa.gr>.
Just a note that
this.form.events.refresh() has been deprecated for more than a year now
and actually has been removed in 4.1.4
Correct (as http://tapestry.apache.org/tapestry4.1/javascript/form.html
states ) is
onchange="tapestry.form.refresh(this.form)"
Marcelo Lotif wrote:
> Hi Ken,
> i was using the @InvokeListener component + onChange to do this
>
> put this on outside your form
> <span jwcid="@InvokeListener" listener="listener:updateData"/>
>
> then on the @PropertySelection, do like this
> <span jwcid="@PropertySelection"
> model="ognl:@foo@FOO_MODEL"
> value="ognl:foo"
> onchange="javascript:this.form.events.refresh();"/>
>
> it is working fine for me.
> :)
>
> 2007/10/9, Igor Drobiazko <ig...@gmail.com>:
>
>> Try this.form.submit();
>>
>> On 10/9/07, Ken nashua <nh...@hotmail.com> wrote:
>>
>>> Folks,
>>>
>>> Is there a way to get a PropertySelection component to automatically
>>> submit on selection event (I think it's onChange).
>>>
>>> My javascript has no effect...
>>> onChange="javascript:document.GalleryForm.submit()">
>>>
>>> Best regards
>>> Ken in nashua
>>> _________________________________________________________________
>>> Help yourself to FREE treats served up daily at the Messenger Café. Stop
>>> by today.
>>>
>>>
>>>
>> http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWLtagline
>>
>>
>
>
>
>
--
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: PropertySelection component - automatic submit
Posted by Marcelo Lotif <ml...@gmail.com>.
Hi Ken,
i was using the @InvokeListener component + onChange to do this
put this on outside your form
<span jwcid="@InvokeListener" listener="listener:updateData"/>
then on the @PropertySelection, do like this
<span jwcid="@PropertySelection"
model="ognl:@foo@FOO_MODEL"
value="ognl:foo"
onchange="javascript:this.form.events.refresh();"/>
it is working fine for me.
:)
2007/10/9, Igor Drobiazko <ig...@gmail.com>:
>
> Try this.form.submit();
>
> On 10/9/07, Ken nashua <nh...@hotmail.com> wrote:
> >
> >
> > Folks,
> >
> > Is there a way to get a PropertySelection component to automatically
> > submit on selection event (I think it's onChange).
> >
> > My javascript has no effect...
> > onChange="javascript:document.GalleryForm.submit()">
> >
> > Best regards
> > Ken in nashua
> > _________________________________________________________________
> > Help yourself to FREE treats served up daily at the Messenger Café. Stop
> > by today.
> >
> >
> http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWLtagline
>
--
Atenciosamente,
Marcelo Lotif
Re: PropertySelection component - automatic submit
Posted by Daniel Jue <te...@gmail.com>.
I also do it using onChange.
"onchange = 'this.form.submit();'"
On 10/9/07, Igor Drobiazko <ig...@gmail.com> wrote:
> Try this.form.submit();
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: PropertySelection component - automatic submit
Posted by Igor Drobiazko <ig...@gmail.com>.
Try this.form.submit();
On 10/9/07, Ken nashua <nh...@hotmail.com> wrote:
>
>
> Folks,
>
> Is there a way to get a PropertySelection component to automatically
> submit on selection event (I think it's onChange).
>
> My javascript has no effect...
> onChange="javascript:document.GalleryForm.submit()">
>
> Best regards
> Ken in nashua
> _________________________________________________________________
> Help yourself to FREE treats served up daily at the Messenger Café. Stop
> by today.
>
> http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWLtagline