textbox setValue unary operators

asked 2013-03-29 18:10:18 +0800

javiut gravatar image javiut flag of Venezuela, Bolivarian Republic of
90 1 5

hi guys i have a textbox all i wanna do is if the value of the property is null set null is not set other text please help..

i am trying the following without success.

<listcell><textbox value="@{d.c05}==null?null:*+*+*+*+"/></listcell>

if property c05 is null set null on the textbox ++++ otherwise thanks a lot.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-03-29 20:41:08 +0800

Matze2 gravatar image Matze2
773 7

updated 2013-03-29 20:41:31 +0800

First, you seem to use MVC data binding, which does not support complex EL constructs at all.

Second, data binding with a textbox works in two ways: display a value (that's what you talk about) and save the edited value back. But how should the second case work with your expression?

The only chance I see is that you move this code in the according getter/setter method of your composer.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2013-03-29 18:10:18 +0800

Seen: 14 times

Last updated: Mar 29 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More