tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Andreou (JIRA)" <...@tapestry.apache.org>
Subject [jira] Resolved: (TAPESTRY-2225) tapestry.form.refresh is broken
Date Tue, 11 Mar 2008 09:36:46 GMT

     [ https://issues.apache.org/jira/browse/TAPESTRY-2225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andreas Andreou resolved TAPESTRY-2225.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.1.6

Was caused by the fix for TAPESTRY-1775 :( at least there are some more
selenium tests now... A new 4.1.6-SNAPSHOT is already deployed for you to try.

> tapestry.form.refresh is broken
> -------------------------------
>
>                 Key: TAPESTRY-2225
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2225
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.1.5
>         Environment: fedora core 6, firefox 2.0.0.12, jetty 6.1.5
>            Reporter: Robert Binna
>            Assignee: Andreas Andreou
>            Priority: Critical
>             Fix For: 4.1.6
>
>
> An image button cannot refresh the form because the submitmode is resetted before the
form gets actually submitted.
> As a solution it is suggested to change form.refresh to the following form. So only after
an async commit the state of the form is resetted:
> tapestry.form.refresh = function(form, submitName, parms) {
>     form = dojo.byId(form);
>     if (!form) {
>         dojo.raise("Form not found with id " + form);
>         return;
>     }
>     var formName = form.getAttribute("id");
>     var validateState = tapestry.form.forms[formName].validateForm;
>     tapestry.form.setFormValidating(formName, false);
>     var previous = form.submitmode.value;
>     form.submitmode.value = "refresh";
>     if (parms && !dj_undef("async", parms) && parms.async) {
>         this.submitAsync(form, null, submitName, parms);
>         form.submitmode.value = previous;
>         tapestry.form.setFormValidating(formName, validateState);
>     } else {
>         this.submit(form, submitName, parms);
>     }    
> };

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message