[richfaces-issues] [JBoss JIRA] (RF-13192) RF4: <rich:dataTable> re-render single cell with ajax is not possible

Alexey Shakov (JIRA) jira-events at lists.jboss.org
Thu Sep 12 06:12:03 EDT 2013


     [ https://issues.jboss.org/browse/RF-13192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Shakov updated RF-13192:
-------------------------------

    Forum Reference: https://community.jboss.org/message/837090

    
> RF4: <rich:dataTable> re-render single cell with ajax is not possible
> ---------------------------------------------------------------------
>
>                 Key: RF-13192
>                 URL: https://issues.jboss.org/browse/RF-13192
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.3.3
>            Reporter: Alexey Shakov
>              Labels: regression
>
> Following code
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html"
>   xmlns:c="http://java.sun.com/jsp/jstl/core"
>   xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en">
> <h:head>
> </h:head>
> <h:body>
>   <h:form>
>     <h:dataTable value="#{testBean.getData()}" var="row" id="table">
>       <h:column id="cell">
>         <h:inputText value="#{row[0]}" id="input" style="background-color:#{empty row[0] ? 'red' : 'green'}">
>           <f:ajax event="change" render="cell" />
>         </h:inputText>
>       </h:column>
>     </h:dataTable>
>   </h:form>
> </h:body>
> </html>
> {code}
> {code:java}
> @ManagedBean(name="testBean")
> @SessionScoped
> public class TestBean {  
>     private static String [][] initdata = {{"test"},{null},{null},{null},{null}};   
>     
>     private List<String[]> data = Arrays.asList(initdata);   
>   
>     public List<String[]> getData() {  
>         return data;  
>     }
> }
> {code}
> does not work: table cell getting not updated, when input field content is changed. Relacing render="cell" with render="input" fixes the problem. 
> See also the forum thread.
> Similar code works with RF3.3.3

--
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


More information about the richfaces-issues mailing list