vineri, 13 februarie 2015

[OmniFaces utilities (2.0)] Get the currently submitted UI form component


[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:
Usage:
import org.omnifaces.util.Components;
...
UIForm currentForm = Components.getCurrentForm();

Niciun comentariu:

Trimiteți un comentariu