Disabled components

hello,

in order to disabled a component i have to write something like-

<h:commandButton value="ok" disabled="#{myBean.okDisabled}"/>

should the bean "myBean" contain the method

public boolean isOkDisabled() {...}

or

public boolean getOkDisabled() {...}

?

thanks in advanced.

[338 byte] By [ppl1a] at [2007-11-26 13:00:15]
# 1
The both methods should work the same way.
amitteva at 2007-7-7 17:00:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
According to the "standard" JavaBean conventions, you should use the prefix "is" for boolean getters. But both just works, as you see :)
BalusCa at 2007-7-7 17:00:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
okthanks for the help
ppl1a at 2007-7-7 17:00:23 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...