[OmniFaces utilities] The
hasSubmittedValue()
method returns whether the given editable value holder component has a submitted value.Method:
JSF Page
<h:form
id="myForm">
<h:inputText
id="nameId" value="..."/>
...
</h:form>
Programmatically:
import
org.omnifaces.util.Components;
...
UIInput
uiinput =
(UIInput)Faces.getViewRoot().findComponent("myForm:nameId");
boolean hasSubmittedValue =
Components.hasSubmittedValue(uiinput);
Niciun comentariu :
Trimiteți un comentariu