CommandButton inside datatable runs many times

UI Components for JSF
Post Reply
seanye
Posts: 3
Joined: 11 Oct 2011, 13:46

11 Oct 2011, 15:14

Hi

I am using primefaces 3.0.M1 and Glassfish3.1.
When I try to put a command button inside a datatable, this commandbutton runs many times depending on the index of the collections of data of this datatable.
Here is my code:

<p tabview widgetVar="reportTabView" id="">
. . .

<p tab title="report">
<p:dataTable id="reportTable"
value="#{tenure.reportList}"
var="report"
rowIndexVar="reportIndex"
>
. . .
<p:column>
. . .
<p:commandButton id="toggleReportDetailseCommandButton"
actionListener="#{bean.showReportDetails}"
onclick="reportTabView.selectTab(2)">
<f:param value="#{reportIndex}"
name="reportIndex"/>

</p:commandButton>
. . .

Anyone got the same problem?

Cheers

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 50 guests