JavaServer Faces - JSF 1.2 and JSTL...please help, i`m going nuts

Hey guys,

This is driving me up the wall. I`m running glassfish v2 b19 (i havent upgraded, because this one works for me).

But i have a problem using jstl in my jsf app. i`m trying to do the following :

<c:choose>

<c:when test="#{currentRow.value['dboSTANDBY_LOG.STANDBY_LOG_TYPE'] eq 'server'}">

<webuijsf:tableColumn binding="#{standby$Standby_Log.tableColumn19}" headerText="NAME"

id="tableColumn19" sort="dboSTANDBY_LOG.SBYN_HOST_NAME" width="40">

<webuijsf:staticText binding="#{standby$Standby_Log.staticText20}" id="staticText20" text="#{currentRow.value['dboSTANDBY_LOG.SBYN_HOST_NAME']}"/>

</webuijsf:tableColumn>

</c:when>

<c:otherwise>

<webuijsf:tableColumn binding="#{standby$Standby_Log.tableColumn17}" headerText="NAME"

id="tableColumn17" sort="dboSTANDBY_LOG.APPL_SYSTEMS_PROP_INNUMBER" width="40">

<webuijsf:staticText binding="#{standby$Standby_Log.staticText18}" id="staticText18" text="#{currentRow.value['dboSTANDBY_LOG.APPL_SYSTEMS_PROP_INNUMBER']}"/>

</webuijsf:tableColumn>

</c:otherwise>

</c:choose>

but the app server fails on building the page saying :

According to the TLD, the attribute test is not a deferred-value or deferred-method, but the specified value contains a #-expression

Now as far as i now, JSTL 1.2 should be included in J5EE, which is in glassfish already, correct?

and JSTL 1.2 supports using deferred expressions, correct?

So why for the love of my sanity is this not working?

aaaaaa.

Thanks

D

[2337 byte] By [withasiea] at [2007-11-26 23:22:29]
# 1
Why don't you just use the 'rendered' attribute of the JSF component?
BalusCa at 2007-7-10 14:27:35 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
mmm...ok, but how?I`m not to sure how to use it to bind to the current row`s value?Please explain.Thanks though.D
withasiea at 2007-7-10 14:27:35 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

It's simple:

webuijsf:tableColumn rendered="#{currentRow.value['dboSTANDBY_LOG.STANDBY_LOG_TYPE'] == 'server'}"

and

webuijsf:tableColumn rendered="#{currentRow.value['dboSTANDBY_LOG.STANDBY_LOG_TYPE'] != 'server'}"

BalusCa at 2007-7-10 14:27:35 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
...it`s working now, still trying to get use to JSF.ThanksDerick
withasiea at 2007-7-10 14:27:35 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...