[
https://issues.apache.org/jira/browse/WICKET-4109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13121932#comment-13121932
]
Sven Meier commented on WICKET-4109:
------------------------------------
IMHO PageProvider#getStoredPage(int) is the culprit:
if (pageParameters != null)
{
storedPageInstance.getPageParameters().overwriteWith(pageParameters);
}
This code writes the autocomplete query parameter "q" into the page's original
parameters, although it was never involved in the creation of the page. In the
following the page's url is always appended with "q=...".
I'm not sure why this 'overwriteWith' is called here at all. WDYT?
> AutocompleteTextField after Submit does not work
> ------------------------------------------------
>
> Key: WICKET-4109
> URL: https://issues.apache.org/jira/browse/WICKET-4109
> Project: Wicket
> Issue Type: Bug
> Components: wicket-extensions
> Affects Versions: 1.5.1
> Reporter: Stefan Mandel
> Attachments: autocompletebug.zip
>
>
> I use an AutocompleteTextfield together with a submit-Button. After once
> submitting the content oft the AutocompleteTextField the parameter q is added
> to the URL. After that the autocompletion will only complete the parameter q
> in the url and not the parameter given by ajax.
> I tracked the problem down to the callbackURL.
> It contains a pattern looking as follows:
> ....&q=<paramproducedbysubmit>&q=<paramproducedbyajaxautocomplete>
> The callbackurl is build of the parameter q and the extraction of parameters
> only accepts the first parameter
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira