This content has been marked as final.
Show 4 replies
-
1. Re: DataTable - dynamic total
ilya_shaikovsky Aug 11, 2009 4:19 AM (in response to zelenka)just calculate it during submit in your update action. niot sure where the problem there. Sample of page here:
http://livedemo.exadel.com/richfaces-demo/richfaces/dataTable.jsf -
2. Re: DataTable - dynamic total
zelenka Aug 11, 2009 4:28 AM (in response to zelenka)I need to calculate before submit while user enters values
-
3. Re: DataTable - dynamic total
zelenka Aug 11, 2009 7:55 AM (in response to zelenka)"zelenka@mediaservis.cz" wrote:
I need to calculate before submit while user enters values
Maybe there is ajax way? -
4. Re: DataTable - dynamic total
zelenka Aug 12, 2009 9:01 AM (in response to zelenka)Finally I did it via javascript.
I marked "countable" inputTexts with class="count-me" and then just sum it's value
<rich:table ...>
<h:column>
<h:inputText value="#{sheet.amount}" class="count-me" onchange="calculate()">
</h:inputText>
</h:column>