| Author |
h:datatable, how multiply row cell A with row cell B and set value in row cell C
|
Milutin Markovic
Greenhorn
Joined: Mar 18, 2010
Posts: 12
|
|
I know how to multiply that in backing bean and show in third cell. Bat what is interesting me how can multiply two cell on client side in jsf page. Thanks for any halp.
|
 |
Greg Charles
Bartender
Joined: Oct 01, 2001
Posts: 2550
|
|
I believe EL (expression language) supports basic arithmetic, so what you'd do is: #{item.price * item.quantity}
Otherwise, you can always add another getter to item's class that returns the extended value.
|
 |
Milutin Markovic
Greenhorn
Joined: Mar 18, 2010
Posts: 12
|
|
|
Thanks
|
 |
 |
|
|
subject: h:datatable, how multiply row cell A with row cell B and set value in row cell C
|
|
|