0

How to disable textbox 'on-the-fly'

asked 2010-12-08 04:26:41 +0800

lramellavotta gravatar image lramellavotta flag of Italy
200 1 8

Hello everyone, you can disable a textbox on runtime depending on the status of a field (in the .java that controls the file.zul)?

In file.zul I would like disable the key field when it appears on the db and re-enable it if the new key-press record.

Thanks for the help

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2010-12-08 11:36:03 +0800

lramellavotta gravatar image lramellavotta flag of Italy
200 1 8

Thanks caclark for your reply.

I'll try....

Luca

link publish delete flag offensive edit

answered 2010-12-08 08:13:49 +0800

caclark gravatar image caclark
1753 2 5
http://clarktrips.intltwi...

updated 2010-12-08 08:15:18 +0800

See the Javadoc: InputElement and look for setDisabled(boolean)...If you've used autowiring, you can reference the textbox and enable/disable it...If you haven't autowired, use the getFellow("mytextbox") method to get a reference to it...

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: 2010-12-08 04:26:41 +0800

Seen: 204 times

Last updated: Dec 08 '10

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