[OmniFaces utilities] The
isEditable()
method returns whether the given UI input component is editable. That is when it is rendered, not disabled and not readonly.Method:
<h:inputText value="..."/> // uiinput_1
<h:inputText
value="..." readonly="true"/> // uiinput_2
<h:inputText
value="..." disabled="true"/> // uiinput_3
<h:inputText value="..." rendered="false"/> // uiinput_4
<h:inputText value="..." rendered="false"/> // uiinput_4
import
org.omnifaces.util.Components;
...
boolean is_1
= Components.isEditable(uiinput_1); // return true
boolean is_2
= Components.isEditable(uiinput_2); // return false
boolean is_3
= Components.isEditable(uiinput_3); // return false
boolean is_4 = Components.isEditable(uiinput_4); // return false
boolean is_4 = Components.isEditable(uiinput_4); // return false
Niciun comentariu :
Trimiteți un comentariu