From jira-events at lists.jboss.org Mon Apr 20 13:27:22 2009 Content-Type: multipart/mixed; boundary="===============5711905057791219828==" MIME-Version: 1.0 From: Nick Belaevski (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Resolved: (RF-6862) RF picklist does not update target list after onchange event Date: Mon, 20 Apr 2009 13:27:22 -0400 Message-ID: <22987033.1240248442495.JavaMail.jira@cloud.prod.atl2.jboss.com> In-Reply-To: 13950270.1240081462552.JavaMail.jira@cloud.prod.atl2.jboss.com --===============5711905057791219828== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://jira.jboss.org/jira/browse/RF-6862?page=3Dcom.atlassian.jira= .plugin.system.issuetabpanels:all-tabpanel ] Nick Belaevski resolved RF-6862. -------------------------------- Resolution: Won't Fix Assignee: Tsikhon Kuprevich You have a bug in the page code, here is the working one: <%@ taglib uri=3D"http://java.sun.com/jsf/core" prefix=3D"f"%> <%@ taglib uri=3D"http://java.sun.com/jsf/html" prefix=3D"h"%> <%@ taglib uri=3D"http://richfaces.org/a4j" prefix=3D"a4j"%> <%@ taglib uri=3D"http://richfaces.org/rich" prefix=3D"rich"%> Picklist Test Page

Test Picklist Refresh

This page works ok with TestRichFacesPicklistWithoutBinding application; JS= F 1.2_12; RF 3.3.0.GA. Please ask at users forum in the future before posting JIRA issues if you a= re not 100% sure that's a bug. > 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 > Assignee: Tsikhon Kuprevich > Attachments: TestRichFacesPicklistWithBinding.tar, TestRichFacesP= icklistWithoutBinding.tar > > > The RichFaces picklist component does not re-load it's pre-selected (targ= et) data correctly when an onchange event of a dependent selectonelistbox c= omponent is raised. If a valuechangelistener method is set on the selectone= listbox, 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 (i= n this case, the target list in the backing bean maps to the value attribut= e of the picklist tag). I even tried wrapping the picklist in an a4j:output= Panel with an a4j:support event=3Donchange reRender=3DpickListName tag plac= ed inside of the selectonelistbox tag, but the target list is never populat= ed. > 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 approp= riate for Seam integration, though). (Please update the JIRA with a forward= ing address if you would like my test apps) > Please note that this bug has more important implications for Seam integr= ation, since JSF component binding is discouraged. As a result, the value a= ttribute of the picklist (the target data) needs to be refreshed via the pi= cklist 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: htt= ps://jira.jboss.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============5711905057791219828==--