[JBoss JIRA] Created: (RF-1609) a4j:commandLink and h:commandButton doesn't work in data iteration components (rich:dataTable, rich:scrollableDataTable)
by Ivelin Velkov (JIRA)
a4j:commandLink and h:commandButton doesn't work in data iteration components (rich:dataTable, rich:scrollableDataTable)
------------------------------------------------------------------------------------------------------------------------
Key: RF-1609
URL: http://jira.jboss.com/jira/browse/RF-1609
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.2
Environment: richfaces-3.1.2.SP1, apache-tomcat 6.0.14, mozilla-firefox-2.0.0.8-1mdv2008.0
Reporter: Ivelin Velkov
Priority: Critical
There is a bug in the data iteration components, the bug can be reproduced by following these steps:
1. open a page in your browser with an empty datatable in it.
I use the following datatable definition in the page:
(the currencyRatesBean#getRates method returns an empty list at this step)
<rich:dataTable id="rateTable" value="#{currencyRatesBean.rates}"
var="rate" rows="50" style="align:center; text-align:center"
rowClasses="align:center; text-align:center">
<f:facet name="header">
<h:outputFormat value="Currency rates" />
</f:facet>
<rich:column id="actionColumn">
<f:facet name="header">
<h:outputText value="Action" />
</f:facet>
<a4j:commandLink id="remove" action="#{currencyRatesBean.remove}"
value="delete" reRender="rateTable" />
</rich:column>
</rich:dataTable>
2. Rerender the datatable component and populate it.
I do it this way:
<a4j:commandButton styleClass="button"
value="Fetch" reRender="rateTable"/>
(the currencyRatesBean#getRates does not return an empty list at this step)
Clicking on the commandLinks in the populated datatable doesn't invoke their action methods.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 5 months