You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by tmarx <ma...@tapestryforums.com> on 2006/01/09 10:55:24 UTC
SubmitOnChange deprecated?
Why is SubmitOnChange deprecated and what is its successor?
Thanks!
Toby
-------------------- m2f --------------------
Sent from www.TapestryForums.com
Read this topic online here: <<topic_link>>
http://www.tapestryforums.com/viewtopic.php?p=12791#12791
-------------------- m2f --------------------
problem detecting the changed files when using the reset service
Posted by Andrei Chiritescu <an...@netrom.ro>.
Hi,
When using a development environment(use the reset service or disable
the cache) I have noticed that when the file size has not changed(but
the contents did) tapestry did not reloaded that resource(page/jwc/script).
So, I guess, that tapestry marks as changed and reloads a file if the
size differs. This can be very annoying when I have a typo or something
in the file and after the fix I have same size.
Is there any quick fix for this? However, if the fix would mean a loss
in performance I don t think it would be welcomed ;)
Regards,
Andrei Chiritescu
PS: I'm using tapestry 3.0.2. Does this make a difference? Is it fixed
in 3.0.3 or 4?
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: SubmitOnChange deprecated?
Posted by Leonardo Quijano Vincenzi <le...@dtqsoftware.com>.
The direct change is using Javascript onchange events. You can put
submit(), refresh() or cancel() AFAIK:
onchange="javascript:this.form.refresh();"
You can also use AjaxEventSubmit from the Tacos project if you want Ajax
for that.
http://tacos.sourceforge.net/components/AjaxEventSubmit.html
--
Ing. Leonardo Quijano Vincenzi
DTQ Software
Shing Hing Man wrote:
> Instead of using the parameter submitOnChange=true,
> you put in the piece of javascript manually :
>
> <select jwcid="periodsPS"
> onchange="javascript:this.form.submit();">
> <option>2004/2005 I</option>
> <option>2005/2006 I</option>
> <option>2005/2006 II</option>
> </select>
>
>
> I do not know why it has been deprecated.
> Shing
>
> --- tmarx <ma...@tapestryforums.com> wrote:
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: SubmitOnChange deprecated?
Posted by Shing Hing Man <ma...@yahoo.com>.
Instead of using the parameter submitOnChange=true,
you put in the piece of javascript manually :
<select jwcid="periodsPS"
onchange="javascript:this.form.submit();">
<option>2004/2005 I</option>
<option>2005/2006 I</option>
<option>2005/2006 II</option>
</select>
I do not know why it has been deprecated.
Shing
--- tmarx <ma...@tapestryforums.com> wrote:
> Why is SubmitOnChange deprecated and what is its
> successor?
>
> Thanks!
>
> Toby
>
>
> -------------------- m2f --------------------
>
> Sent from www.TapestryForums.com
>
> Read this topic online here: <<topic_link>>
>
>
http://www.tapestryforums.com/viewtopic.php?p=12791#12791
>
> -------------------- m2f --------------------
>
>
>
Home page :
http://uk.geocities.com/matmsh/index.html
___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org