Calculating datatable input text value and showing result in a outputtextbox <p>I am new to primefaces. I have a problem and the issue is , i have a inputtextbox inside a datatable and if i enter any value inside a textbox the count should display in a outputTextbox called total. I am not finding any solution. my code is</p> <pre><code>&lt;p:dataTable id="venueNames" var="test" value="#{issueAdmitCardBean.venueNames}" paginator="false" rows="10" styleClass="dataTable" rowIndexVar="index"&gt; &lt;p:column headerText="Id"&gt; &lt;h:outputText value="#{test.id}" /&gt; &lt;/p:column&gt; &lt;p:column headerText="Name Of Venue"&gt; &lt;h:outputText value="#{test.name}" /&gt; &lt;/p:column&gt; &lt;p:column headerText="Maximum Capacity"&gt; &lt;h:outputText value="#{test.capacity}" /&gt; &lt;/p:column&gt; &lt;p:column headerText="Allot No. of Candidates" &gt; &lt;h:inputText value="#{issueAdmitCardBean.venueNames[index].allotCandaidate}" style="width:50px;" onkeyup="doWork(#{test.capacity}, this.value);" required="true"/&gt; &lt;/p:column&gt; &lt;p:column headerText="Exam Date"&gt; &lt;p:calendar value="issueAdmitCardBean.examDate" pattern="dd-MM-yyyy" navigator="true" style="width:10px;"/&gt; &lt;/p:column&gt; &lt;/p:dataTable&gt; </code></pre> <p>I want to display the total right after the datatable . please give any suggestion and help me.Thanks in advance </p>