[
https://issues.jboss.org/browse/RF-13192?page=com.atlassian.jira.plugin.s...
]
Juraj Húska commented on RF-13192:
----------------------------------
The reproducer can be found here:
*
[
facelet|https://github.com/richfaces/richfaces-qa/blob/master/metamer/app...]
*
[
bean|https://github.com/richfaces/richfaces-qa/blob/master/metamer/applic...]
In my reproducer, using render target {{tableId@rows[rowKeyVar]}} *does not render the
changed row*.
Please, have a look at the [particular render
target|https://github.com/richfaces/richfaces-qa/blob/master/metamer/appl...],
whether I understand you correctly.
Steps to reproduce the issue:
# deploy metamer and load:
http://localhost:8080/metamer/faces/components/richDataTable/rf-13192.xhtml
# delete the text from the e.g. first row
# make a BLUR on that input, see that an AJAX request was made
# the expected result is that input will become red, however, the row is still green
==> the row was not re-rendered
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
Assignee: Juraj Húska
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