[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
16 years, 8 months
[JBoss JIRA] Created: (RF-3806) suggestionBox: actionListener of a4j:htmlCommandLink doesn't call inside the component.
by Mikhail Vitenkov (JIRA)
suggestionBox: actionListener of a4j:htmlCommandLink doesn't call inside the component.
---------------------------------------------------------------------------------------
Key: RF-3806
URL: http://jira.jboss.com/jira/browse/RF-3806
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: IE6, IE7, FF 3.0, Opera 9.27, Safari 3.1
Reporter: Mikhail Vitenkov
Assigned To: Nick Belaevski
Step 1. Put a4j:htmlCommandLink inside suggestionBox:
h:column>
<a4j:htmlCommandLink actionListener="#{sb.selectValue}" value="Click me!"/>
</h:column>
Step 2. Create selectValue method:
public void selectValue(ActionEvent actionEvent){
System.out.println("----inside selectValue(ActionEvent actionEvent)-----");
}
Step 3. Call suggestionBox by enter a character into it's input.
Step 4. Click on "Click me!" link.
Actual behavior:
ActionListener isn't call.
--
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
16 years, 9 months