Datatable update attribute not working

UI Components for JSF
Post Reply
toddc78
Posts: 11
Joined: 06 Oct 2010, 22:55
Location: SD, USA

06 Jan 2011, 23:47

I am working with a datatable in version 2.2.RC1 and cannot seem to get the update attribute to work. I have tried most of the formats for the value of the parameter such as "formName:resultCount", ":resultCount","resultCount", but none seem to work. Is there an issue around this attribute in 2.2.RC1?

<h:panelGroup id="resultCount">
<h:outputText value="Event Result Sets : #{deepWebHarvestsBean.harvestsBean.resultCount}" styleClass="resultLabel"> </h:outputText>
</h:panelGroup>
<p:dataTable id="resultsTable" var="harvest" value="#{deepWebHarvestsBean.lazyModel}" page="#{deepWebHarvestsBean.resultPage}" dynamic="true" lazy="true"
paginator="true" rows="17" emptyMessage="No Harvest Results" update="resultCount">


<p:column style="width:5px;text-align:center;">
<f:facet name="header">
</f:facet>

<h:commandButton styleClass="buttons" image="images/invalid.png" onclick="showWaitCursor();" action="#{deepWebHarvestsBean.validateHarvest}"
rendered='#{harvest.deleted == "T"}' title="Validate Harvest">
<f:param name="harvestId" value="#{harvest.harvestID}"/>
</h:commandButton>

<h:commandButton styleClass="buttons" image="images/valid.png" onclick="showWaitCursor();" action="#{deepWebHarvestsBean.invalidateHarvest}"
rendered='#{harvest.deleted != "T"}' title="Invalidate Harvest">
<f:param name="harvestId" value="#{harvest.harvestID}"/>
</h:commandButton>

</p:column>

</p:dataTable>
Todd Christensen

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

07 Jan 2011, 15:28

The update attribute is for row selection. So you want to display the resultCount each time the user selects a row in the dataTable?

toddc78
Posts: 11
Joined: 06 Oct 2010, 22:55
Location: SD, USA

07 Jan 2011, 16:03

Actually I was looking to update resultCount every time I reload the table with lazy data. I have tried embedding an ajax tag in the dataTable but it doesn't like that at runtime. Thanks for the reply!
Todd Christensen

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests