[ 
https://issues.apache.org/jira/browse/CLK-333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13647320#comment-13647320
 ] 

Bob Schellink commented on CLK-333:
-----------------------------------

Hi Malcolm,

Perhaps, but how will one handle the security check in an Ajax context? 
Generally one would do the security check and perform a redirect to another 
page. Using Ajax, one would post the form and "repaint" the result from the 
server. If there is a redirect, you won't repaint the form but the result of 
the redirected page. So you post the duplicate form and get back an HTML page 
which you probably do not want?

For duplicate submissions I think it's best if the client side handles it, ie 
show a loading indicator which blocks the form and duplicate submissions.

I don't object to the change in code though, just not sure how folk will handle 
the onSecurityCheck using Ajax.

Kind regards

Bob
                
> AutoCompleteTextField cannot be added on form. Form cannot be submited.
> -----------------------------------------------------------------------
>
>                 Key: CLK-333
>                 URL: https://issues.apache.org/jira/browse/CLK-333
>             Project: Click
>          Issue Type: Bug
>          Components: core, extras
>    Affects Versions: 1.4
>            Reporter: Ivan Furdi
>            Assignee: Malcolm Edgar
>             Fix For: 1.5 M1, 1.4.1
>
>
> When one is trying to use AutoCompleteTextField field on a form
> or a FieldSet which is added to the form then submitting a form is not 
> possible.
> Possible problem is in double post validation, that is - first you submit 
> form with auto complete field and if you try to submit with submit button 
> afterwards, submission fails (method form.onSubmitCheck(this, pagePath) 
> returns false).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to