incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer" <awi...@gmail.com>
Subject Re: Drop down list issue when using EL
Date Wed, 10 Jan 2007 00:19:20 GMT
A value expression like #{true ? ... : ...} is not writable -
if you call ValueBinding.isReadOnly(), it returns true.
As a result, Trinidad automatically turns the
selectOneChoice to readOnly mode.

For a writable EL expression, you have to just point
at a bean property.

-- Adam


On 1/9/07, magdolna holitska <mholitska3@hotmail.com> wrote:
> Hi all,
> I have a drop down list and I am trying to set the value selectively.
> Whenever I use EL in the code, the drop down list disappears and instead, it
> has the appearance of an output text.
> Any hints?
>
> Thank you,
> Magdolna
>
>
> Here is a simple example:
> <tr:selectOneChoice id="ex" label="Example" value="#{true ? 'L1' : 'L2'}">
>         <tr:selectItem label="L1" value="L1"/>
>         <tr:selectItem label="L2" value="L2"/>
>         <tr:selectItem label="L3" value="L3"/>
> </tr:selectOneChoice>
>
> _________________________________________________________________
> Buy what you want when you want it on Sympatico / MSN Shopping
> http://shopping.sympatico.msn.ca/content/shp/?ctId=2,ptnrid=176,ptnrdata=081805
>
>

Mime
View raw message