duminică, 8 februarie 2015

[OmniFaces utilities (2.0)] Check whether the given UI component and all of its parents is rendered



[OmniFaces utilities] The isRendered() returns whether the given UI component and all of its parents is rendered. This thus not only checks the component's own rendered attribute, but also of all of its parents.

Method:
Usage:

import org.omnifaces.util.Components;
...
boolean isrendered = Components.isRendered(myComponent);

Niciun comentariu:

Trimiteți un comentariu