marți, 10 februarie 2015

[OmniFaces utilities (2.0)] Shortcut that returns the attribute of the given component on the given name



[OmniFaces utilities] The getAttribute() is a "shortcut" for the UIComponent.getAttributes() method. It returns the attribute of the given component on the given name

Method:
Usage:

import org.omnifaces.util.Components;
...
//a String attribute value
String myComponentAttributeValue = Components.getAttribute(myComponent, myComponentAttributeName);

Niciun comentariu:

Trimiteți un comentariu