Simple question

Hi all,

I have a question regarding JSF.

I have a h:dataTable which receives values (two doubles) from the bean like this:

<h:dataTable id="myId" value="#{myBean.data}" var="tables">

I want to print out in the output the division between the first double and the second double but i am having difficult in doing it so using the JSF tags.

Is it possible to divide in the JSP page using the tags or the dataTable needs to receive the value of the division straightforward?

Hope to hear from you. Thanks

[550 byte] By [thiago83a] at [2007-11-26 15:28:54]
# 1
This should work:<h:outputText value="#{tables.double1 / tables.double2}" />
BalusCa at 2007-7-8 21:45:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Nice it works :). Thanks a lot BalusC. The only problem now is finding a way to round the value so instead of 0.8534443423 i will have 0.85 for instance. There ain't any like system functions or tags that can be used right?
thiago83a at 2007-7-8 21:45:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Nest the following in the h:outputText:<f:convertNumber maxFractionDigits="2" />
BalusCa at 2007-7-8 21:45:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
thanks a lot BalusC. You've been helping me a lot with your answers to this and other topics I posted. Thanks a million
thiago83a at 2007-7-8 21:45:06 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...