Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Little help with EL: concat static string and databound number

ILya CycloneJul 28 2010 — edited Jul 29 2010
Hi OTN,
I'm a bit stuck with a simple - as I thought - case: concatenating static string and databound number in EL:

I have a deffered expression like:

#{1 != 2 ? ('Number is ' bindings.SomeNumber.inputValue) : 'no number'}
1 and 2 are databound values too but the question is about showing "Number is 5" where 5 is a SomeNumber.

Expression editor shows error on 'Number is'. And the error dissapperars if I remove "bindings.SomeNumber.inputValue".
How can I concatenate them?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2010
Added on Jul 28 2010
4 comments
3,151 views