[OmniFaces utilities] The
getCurrentForm()
method returns the currently submitted UI form component, or null
if there is none, which may happen when the current request is not a postback request at all, or when the view has been changed by for example a successful navigation. If the latter is the case, you'd better invoke this method before navigation.Method:
import org.omnifaces.util.Components;
...
UIForm
currentForm = Components.getCurrentForm();
Niciun comentariu :
Trimiteți un comentariu