From jira-events at lists.jboss.org Sun Aug 31 05:03:39 2008 Content-Type: multipart/mixed; boundary="===============6308447782006040922==" MIME-Version: 1.0 From: Oliver Freivogel (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Commented: (RF-4345) aj4:commandButton with immeadiate="true" does not rerender properly Date: Sun, 31 Aug 2008 05:03:39 -0400 Message-ID: <27662526.1220173419161.JavaMail.jira@cloud.prod.atl2.jboss.com> In-Reply-To: 32658423.1220032838679.JavaMail.jira@cloud.prod.atl2.jboss.com --===============6308447782006040922== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://jira.jboss.org/jira/browse/RF-4345?page=3Dcom.atlassian.jira.= plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12427475#a= ction_12427475 ] = Oliver Freivogel commented on RF-4345: -------------------------------------- I see, sorry for the trouble. = Thanks a lot! > aj4:commandButton with immeadiate=3D"true" does not rerender properly > ------------------------------------------------------------------- > > Key: RF-4345 > URL: https://jira.jboss.org/jira/browse/RF-4345 > Project: RichFaces > Issue Type: Bug > Affects Versions: 3.2.1 > Environment: Ubuntu 8.04 64bit, JDK 6 update 6, Jboss App-Server= 4.2.2. Firefox 3.0.1 > Reporter: Oliver Freivogel > Assignee: Tsikhon Kuprevich > > Resetting a list shuttle and re rendering the view, with the the immedia= te attribute of the commandButton set to "true" does not work properly; at = least testet with firefox 3.0.1. > Here the code used: > the facelets viw: = > > xmlns:h=3D"http://java.sun.com/jsf/html" > xmlns:f=3D"http://java.sun.com/jsf/core" > xmlns:ui=3D"http://java.sun.com/jsf/facelets" > xmlns:a4j=3D"http://richfaces.org/a4j" > xmlns:rich=3D"http://richfaces.org/rich"> > > > = > = > > > > = > targetValue=3D"#{attributeSelector2.selected}" var=3D"item" > sourceCaptionLabel=3D"Source" > targetCaptionLabel=3D"target" > showButtonLabels=3D"false" > listsHeight=3D"150" sourceListWidth=3D"250" targetListWidth=3D"250"> > > > > > > > > > > > > = > = > = > = > action=3D"#{attributeSelector2.back}" /> = > action=3D"#{attributeSelector2.reset}" immediate=3D"true" = > reRender=3D"wizard"/> = > > > > > > The backing bean: > import java.util.ArrayList; > import java.util.Collections; > import java.util.List; > import java.util.Map; > import javax.annotation.PostConstruct; > /** > * Backing Bean for selecting Attributes > * = > * @author Oliver Freivogel > * @version 1.0 > */ > public class AttributeSelectorBean = > { > public AttributeSelectorBean() > { > source =3D Collections.emptyList(); > target =3D Collections.emptyList(); = > } > = > @PostConstruct > public void init() > { > source =3D new ArrayList(); > source.add("test"); > source.add("bla"); > source.add("gugus"); > target =3D new ArrayList(); > = > } = > = > public List getAddable() > { = > return this.source; > } > public void setAddable(List addableProperties) > { > this.source =3D addableProperties; > } > public List getSelected() > { > return this.target; > } > public void setSelected(List selectedProperties) > { > this.target =3D selectedProperties; > } = > = > public void reset() > { = > init(); > System.out.println("init"); > } > = > public String back() > { = > return "back"; > } > = > public String done() > { > = > return "done"; > } > = > private List source; > private List target; = > } -- = 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 --===============6308447782006040922==--