well,
generell JSF EL is able to do:
-arithmetics (+, -, *, / or %)
<h:outputText value="#{100 * 1.16}"/>)
-relational (<, >, <=, >=, == or != -->)
<h:outputText value="#{backingBean.int!=42}"/>)
-logical (&&, || or !)
<h:outputText value="#{backingBean.bool1&&backingBean.bool2}"/>
-empty operator
<h:outputText value="#{empty bean.vector}"/>
and contrains:
<h:outputText value="#{backingBean.property ? 'TRUE' : 'FALSE'}"/>
HTH,
Matthias
No, I don't think so (being no expert for the JSF expression language)
it is not possible, as well as passing parameters to methods, which is
even more restricting, I would say.
regards,
Martin
On Thu, 27 Jan 2005 17:31:50 -0500, Srikanth Madarapu
<[EMAIL PROTECTED]> wrote:
Is this not possible ?
-----Original Message-----
From: Srikanth Madarapu
Sent: Thursday, January 27, 2005 9:30 AM
To: [email protected]
Subject: Math in the expressions.
Hi
How can I do some Math in the expressions, like the following...
<h:panelGrid cellspacing="3" id="command"
columns="#{(manageProfileFace.addressHelper.columnCount+1)}">
I am getting ClassCastException with this kind of expression. Is there any way
to achieve this ? I tried with and without parenthesis. I am using this
columnCount in couple of places, in one location I need whatever is returned by
getColumnCount and here I need to add one.
TIA
-Srikanth Madarapu
--
Matthias We�endorf
Aechterhoek 18
DE-48282 Emsdetten
Germany
phone: +49-2572-9170275
cell phone: +49-179-1118979
email: matzew AT apache DOT org
url: http://www.wessendorf.net
callto://mwessendorf (Skype)
icq: 47016183