Re: OGNL expression problem

Christian Sell <[email protected]>
Newsgroups gmane.comp.java.tapestry.devel
Message-ID <[email protected]>
figured it out myself. I was using the expression for an 
in/out binding (option/selected), and OGNL was refusing to 
let the write go through (InappropriateExpressionException).

I wasnt expecting that the (boolean) "selected" parameter was 
also written to.

thanks,
Christian

---- Original message ----
>Datum: Wed, 18 Dec 2002 18:41:28 -0700
>Von: Drew Davidson <[email protected]>  
>Betreff: Re: [Tapestry-developer] OGNL expression problem  
>An: [email protected]
>
>Christian Sell wrote:
>
>>Hello,
>>
>>I am encountering problems using OGNL expressions of the 
following form:
>>
>><binding name="some" expression="selectedValue == 
previousValue"/>
>>
>>the first time this binding is invoked it executes OK, but 
the second time
>>it throws an exception, stating something about an invalid 
OGNL expression,
>>pointing at some "Eq" token. It seems "Eq" is an OGNL-
internal
>>representation of the parsed "==" token.
>>
>>I also tried the form
>>
>><binding name="some" expression="[selectedValue == 
previousValue]"/>
>>
>>but that didnt help either.
>>  
>>
>May I see the stack trace?  That would help enormously.
>
>- Drew
>
>-- 
>+---------------------------------+
>< Drew Davidson | OGNL Technology >
>+---------------------------------+
>|  Email: [email protected]          /
>|    Web: http://www.ognl.org   /
>|    Vox: (520) 531-1966       <
>|    Fax: (520) 531-1965        \
>| Mobile: (520) 405-2967         \
>+---------------------------------+
>
>
>
>
>
>-------------------------------------------------------
>This SF.NET email is sponsored by: Order your Holiday Geek 
Presents Now!
>Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, 
Caffeinated Soap,
>MP3 Players,  XBox Games,  Flying Saucers,  WebCams,  Smart 
Putty.
>T H I N K G E E K . C O M       http://www.thinkgeek.com/sf/
>_______________________________________________
>Tapestry-developer mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/tapestry-
developer
-- 
[email protected]


-------------------------------------------------------
This SF.NET email is sponsored by: Geek Gift Procrastinating?
Get the perfect geek gift now!  Before the Holidays pass you by.
T H I N K G E E K . C O M      http://www.thinkgeek.com/sf/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.