0

Disabling components.

asked 2009-05-04 12:09:18 +0800

kkurt gravatar image kkurt
300 1 2

updated 2009-05-04 19:26:20 +0800

Hello;
I want to disable components with binding. When i use this code :

<checkbox label="label1" disabled="@{controller.disabled1}"/> 

it works, but when i want to use two boolean variable or not operation, it does not work:
<checkbox label="label1" disabled="@{controller.disabled1||controller.disabled2}"/> 

<checkbox label="label1" disabled="@{ !controller.disabled1}"/> 


any suggestion ?
Thanks.

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2009-05-05 01:28:18 +0800

RyanWu gravatar image RyanWu
533 2
about.me/flyworld

updated 2009-05-05 01:28:42 +0800

you cannot add "||" into the binding, maybe you can use a method to done that.

@{this.isDisable}

link publish delete flag offensive edit
Your reply
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

Follow

RSS

Stats

Asked: 2009-05-04 12:09:18 +0800

Seen: 149 times

Last updated: May 05 '09

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