[
https://jira.jboss.org/jira/browse/RF-6862?page=com.atlassian.jira.plugin...
]
Brendan Farragher updated RF-6862:
----------------------------------
Attachment: TestRichFacesPicklistWithoutBinding.tar
TestRichFacesPicklistWithBinding.tar
I tried two variations with the ajaxSingle="true" attribute added to the
a4j:support tag, but neither one worked for me. The first variation tried to reRender an
a4j:outputPanel that wraps the picklist, and the other just tries a straight re-rendering
of the picklist itself (you'll see one version commented out in the jsp).
I am attaching my test applications (exported from RHDS as Eclipse archive files,
compressed, and in .tar format). The "WithoutBinding" version does not work. The
"WithBinding" version is functional, and contains the workaround that I have
described.
I also receive an UnsupportedOperationException in the "WithoutBinding" version
when I select from the selectonelistbox the *second* time. This is probably due to the
fact that I need to clear the select items (target) list when the selectonelistbox
selection changes.
Thank you.
RF picklist does not update target list after onchange event
------------------------------------------------------------
Key: RF-6862
URL:
https://jira.jboss.org/jira/browse/RF-6862
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2, 3.3.0
Environment: JBoss AS 4.2.3 (Ubuntu Linux 8.04)
Reporter: Brendan Farragher
Attachments: TestRichFacesPicklistWithBinding.tar,
TestRichFacesPicklistWithoutBinding.tar
The RichFaces picklist component does not re-load it's pre-selected (target) data
correctly when an onchange event of a dependent selectonelistbox component is raised. If a
valuechangelistener method is set on the selectonelistbox, and that method loads the
picklist's source and target lists with new data, the target list is not populated
when the page is re-displayed (in this case, the target list in the backing bean maps to
the value attribute of the picklist tag). I even tried wrapping the picklist in an
a4j:outputPanel with an a4j:support event=onchange reRender=pickListName tag placed inside
of the selectonelistbox tag, but the target list is never populated.
I have a JSF test application developed that I can provide you with that demonstrates the
problem, and a second JSF test application that contains a workaround using a bound
HtmlPickList (the workaround is not really appropriate for Seam integration, though).
(Please update the JIRA with a forwarding address if you would like my test apps)
Please note that this bug has more important implications for Seam integration, since JSF
component binding is discouraged. As a result, the value attribute of the picklist (the
target data) needs to be refreshed via the picklist tag value attribute (or via some a4j
help).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira