[
https://issues.jboss.org/browse/RF-10756?page=com.atlassian.jira.plugin.s...
]
Juraj Húska updated RF-10756:
-----------------------------
Steps to Reproduce:
# checkout showcase from [
this|https://github.com/jhuska/richfaces/tree/RF-10756] branch.
# build it and deploy on any server
# load:
http://localhost:8080/showcase/richfaces/component-sample.jsf?demo=subTab...
# click on the render button
# see that the numbers are not increased
# see also the {{r:log}} output that the the client id of the table differs from the one
which is being updated
collapsibleSubtable: id set to tbody differs from component id and
break rendering.
-----------------------------------------------------------------------------------
Key: RF-10756
URL:
https://issues.jboss.org/browse/RF-10756
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-tables
Affects Versions: 4.0.0.Final
Reporter: Ilya Shaikovsky
Assignee: Juraj Húska
added to richfaces-showcase code:
{code}
<rich:column colspan="6">
<rich:collapsibleSubTableToggler for="sbtbl" />
<h:outputText value="#{list.vendor}" />
<a4j:commandButton value="render" render="sbtbl"
action="#{carsBean.incDaysLive}">
</a4j:commandButton>
</rich:column>
<rich:collapsibleSubTable value="#{list.vendorItems}"
var="item" id="sbtbl"
expandMode="client">
<rich:column>
<h:outputText value="#{item.daysLive}" />
</rich:column>
{code}
and
{code}
public void incDaysLive(){
for (InventoryVendorList vendor : inventoryVendorLists) {
for (InventoryVendorItem item : vendor.getVendorItems()) {
item.setDaysLive(item.getDaysLive()+1);
}
}
}
{code}
do not see values updated before refreshing the browser.
According to log update came fine for the subtable. just wrapper tbody has different id
than specified at component. so it can't be updated.
--
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