[OmniFaces utilities] The
getCurrentForm()method returns the currently submitted UI form component, or
nullif 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.
UIForm currentForm = Components.getCurrentForm();