From jira-events at lists.jboss.org Thu Jan 21 10:08:19 2010 Content-Type: multipart/mixed; boundary="===============5271588343632390783==" MIME-Version: 1.0 From: Chris Simons (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Commented: (RF-5752) reRender of components inside modalPanel does not work Date: Thu, 21 Jan 2010 10:08:19 -0500 Message-ID: <1836541802.1264086499818.JavaMail.jboss@jira01.app.mwc.hst.phx2.redhat.com> In-Reply-To: 21180299.1232029812433.JavaMail.jira@cloud.prod.atl2.jboss.com --===============5271588343632390783== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://jira.jboss.org/jira/browse/RF-5752?page=3Dcom.atlassian.jira.= plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12507523#a= ction_12507523 ] = Chris Simons commented on RF-5752: ---------------------------------- Nick - Definitely, I actually just did so this morning. Thank you for cons= idering this issue again. I can link to other forums/sites where users had= similar issues. Note that I can easily build a modalPanel to *delete* the= selected object; something about the form - it's not refreshing the input = values to what's in the backing bean. Here is the RF Community Form link for my post: http://community.jboss.org/= thread/147103 I realize the code may not be that helpful; please understand that I have f= iddled with this issue for the better part of three days. I have tried to = follow the RF Component Showcase example, "DataTable - Edit with ModalPanel= " to a tee. I have tried everything, including wrapping the modalPanel in = an a4j:outputPanel, setting rendered =3D to the backing bean, and so forth. Here is some backing bean code that I did not include with the forum post. @Stateful @Scope(ScopeType.SESSION) @Name("responseManager") public class ResponseManager implements ResponseManagerLocal { // ... other code ... private ResponseParagraph currentResponseParagraph =3D new ResponseParagrap= h(); /** the method that is called when clicking the _responseParagraph object *= */ @Begin(join=3Dtrue) public void modifyParagraph(ResponseParagraph responseParagraph) { log.info("modifyParagraph: id=3D " + responseParagraph.getParaName(= )); currentResponseParagraph =3D entityManager.find(ResponseParagraph.c= lass, responseParagraph.getId()); } = > reRender of components inside modalPanel does not work > ------------------------------------------------------ > > Key: RF-5752 > URL: https://jira.jboss.org/jira/browse/RF-5752 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Affects Versions: 3.2.2 > Environment: Microsoft Windows XP, Tomcat 6.0.16 > Reporter: Juan Ignacio Garzon > Assignee: Nick Belaevski > > I have a table showing items and a button to edit them. When I click on t= he button, the entity is set on a session bean property, and a modal panel = appears, with a form to edit the selected entity (in the example, the entit= y has only a name). > The first time I select an entity, the modal panel shows an inputText wit= h the name of the entity, in order to edit it. After that first time, the i= nputText in the modal panel never changes again, it will show always the na= me of that first entity. > I also have an inputText outside the modalpanel that rerenders every time= the edit button is clicked, and It changes every time another entity is se= lected. > Here is a reduced version of the code that also shows the problem: > > PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > xmlns:ui=3D"http://java.sun.com/jsf/facelets" > xmlns:h=3D"http://java.sun.com/jsf/html" > xmlns:f=3D"http://java.sun.com/jsf/core" > xmlns:a4j=3D"http://richfaces.org/a4j" > xmlns:rich=3D"http://richfaces.org/rich" > xmlns:t=3D"http://myfaces.apache.org/tomahawk" > xmlns:bdrc=3D"http://www.pan-energy.com.ar/bdrc"> > > var=3D"msg" /> > var=3D"msgEntidad" /> > > > > > > > > > > > oncomplete=3D"javascript:Richfaces.showModalPanel('ventanaEditar');" > reRender=3D"nombre, nombre2"> > assignTo=3D"#{paisController.entidadSeleccionada}" > converter=3D"#{paisController.converterEntidad}" /> > style=3D"cursor:pointer; border: 0px" /> > > > > > > > resizeable=3D"false"> > = > > > > = > action=3D"#{paisController.guardarEntidadSeleccionada}" > reRender=3D"formListado" > oncomplete=3D"javascript:windowclose_ventanaEditar();" > style=3D"float:right" status=3D"statusGeneral" immediate=3D"false"> > style=3D"cursor:pointer; border: 0px" /> > > > action=3D"#{paisController.cancelarModificacion}" > reRender=3D"formListado" > oncomplete=3D"javascript:windowclose_ventanaEditar();" > styleClass=3D"botonLink" style=3D"float:right" status=3D"statusGenera= l" > immediate=3D"true"> > style=3D"cursor:pointer; border: 0px" /> > > > > > > > -- = 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 --===============5271588343632390783==--