[
https://issues.apache.org/struts/browse/WW-1589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39846
]
Dariusz Wojtas commented on WW-1589:
------------------------------------
I have just applied this patch to the latest 2.0.4 sources and tested it.
It makes some improvement but does not solve the problem.
I have 3 stacked autocompleters.
when the page is reloaded I can see that the dependent values are still
preselected (as they should).
Even resubmitting it again shows that the values are still correctly remembered.
But simple events focus/blur on an autocompleter reset the value of the
autocompleter and dependent (children) autocompleters.
Somehow it thinks that focus/blur changes the state - while it should not.
I can observe the same issue if I just press the 'dropDown' icon on the right
side.
No state change, just press it to open and click somewhere on the page to close
it. Preloaded values are lost.
> Linked autocompleter reset on page reload
> -----------------------------------------
>
> Key: WW-1589
> URL: https://issues.apache.org/struts/browse/WW-1589
> Project: Struts 2
> Issue Type: Bug
> Components: Views
> Affects Versions: 2.0.2
> Reporter: Musachy Barroso
> Priority: Minor
> Fix For: 2.0.x
>
> Attachments: WW-1589.patch
>
>
> If two autocompleters are linked using "notifyTopics" and "listenTopics",
> values are selected in both, and the page is submitted and reloaded, the
> value and caption on the dependent autocompleter (the one with
> "listenTopics") are reset.
> Solution:
> Do not publish the notifyTopics when the first request (on page load) is made
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira