incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "magdolna holitska" <>
Subject Re: Drop down list issue when using EL
Date Wed, 10 Jan 2007 16:52:05 GMT
Hi Adam,

Thanks a lot for the reply.
The reason I tried that is to actually do a check for null value.

In my code I have something like:

As I understood from the EL documentation - if a.b is null, a.b.c should 
automatically resolve to null.

However in my code, if a.b is null it fails with the error:
	Target Unreachable, 'b' returned null

What would be the best way to get around it?
Thanks again,


>From: "Adam Winer" <>
>Subject: Re: Drop down list issue when using EL
>Date: Tue, 9 Jan 2007 16:19:20 -0800
>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 <> 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, 
>>has the appearance of an output text.
>>Any hints?
>>Thank you,
>>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"/>
>>Buy what you want when you want it on Sympatico / MSN Shopping

Your opinion matters. Please tell us what you think and be entered into a 
draw for a grand prize of $500 or one of 20 $50 cash prizes.

View raw message