private <T2 extends YComponent> T2 findComponent(String attribute) {
T2 result = null;
if (this.isInitialized()) {
// lookup for parent YComponent which holds the model
HtmlYComponent cmp = null;
if (result == null && (cmp = getActionHtmlYComponent()) != null) {
result = (T2) cmp.getYComponent();
}
} else {
throw new YFacesException(
logId
+ " found no Component (got no FacesEvent; missing Action- or ValueChangeListener?)");