[
https://issues.jboss.org/browse/RF-12489?page=com.atlassian.jira.plugin.s...
]
Tomasz Kurpios edited comment on RF-12489 at 10/1/12 5:47 AM:
--------------------------------------------------------------
I am using RF 4.0 and have a similar problem. I can create a new task if necessary. In my
case the problem is when the toggle request is fired when there is an AJAX request in
progress. In {{togglePanel.js}} method {{SwitchItems.execAjax}} sets active item to new
one, then calls {{rf.ajax}} and resets the value to the old one. It works if the call to
{{rf.ajax}} immediately produces request, but if there is an AJAX request in progress,
this request will be queued and the toggle panel will reset the value to the old one
before this request has a chance to gather form elements. I think the possible solution is
to not reset to the old value at all or to reset in beforedomupdate handler.
was (Author: tomkur):
I am using RF 4.0 and have a similar problem. I can create a new task if necessary.
The my case the problem is when the toggle request is fired when there is an AJAX request
in progress. In {{togglePanel.js}} method {{SwitchItems.execAjax}} sets active item to new
one, then calls {{rf.ajax}} and resets the value to the old one. It works if the call to
{{rf.ajax}} immediately produces request, but if there is an AJAX request in progress,
this request will be queued and the toggle panel will reset the value to the old one
before this request has a chance to gather form elements. I think the possible solution is
to not reset to the old value at all or to reset in beforedomupdate handler.
togglePanel with switchType="ajax" not working with queues
----------------------------------------------------------
Key: RF-12489
URL:
https://issues.jboss.org/browse/RF-12489
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 4.3.0.Milestone1
Environment: myfaces-2.1.8, Tomcat-7.0.30
Reporter: Milo van der Zee
rich:togglePanel does not work when the events are handled by a a4j:queue. If
switchType="client" there is no problem and when the queue is removed it also
works. It also fails in Mojarra.
--
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