what type does getColumnCount return? i have code like that which works fine. in my case i have a bean that returns someone's total income but in a whole long number of cents.

so i have

<h:outputText id="total_income"
                        styleClass="boldFigures"
                        value="#{reportSummary.totalIncome / 100}">
        <f:convertNumber type="currency"
                        currencySymbol="�"/>
</h:outputText>

and it works fine.

dave


On 28/01/2005, at 9:00 AM, <[EMAIL PROTECTED]> wrote:


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





Reply via email to