(FormElement.ViewModel) UiWidgetUtil.traverseToSubWidget(form, id)._getViewable().getViewModel();
// Get control
controlViewModel = formElementViewModel.getControl();
FormElementViewSelector viewSelector =
(FormElementViewSelector) formElementViewModel.getProperties().get(
FormElementViewSelector.FORM_ELEMENT_VIEW_SELECTOR_PROPERTY);
if(viewSelector == null)
throw new JspException("The form element view selector was not passed!.");
TagInfo tagInfo = (TagInfo) tagMapping.get(viewSelector.getTag());
if(tagInfo == null)
throw new JspException("Unexistant tag was passed to form element view selector!.");
Class tagClass = Class.forName(tagInfo.getTagClassName());
controlTag = (UiFormElementTagInterface) tagClass.newInstance();
registerSubtag(controlTag);
initTagAttributes(tagClass, controlTag, viewSelector.getAttributes());
controlTag.setId(id);
if(events != null)
controlTag.setEvents(events);
if(validate != null)