Package org.araneaframework.jsp.support

Examples of org.araneaframework.jsp.support.FormElementViewSelector


      (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)
View Full Code Here


     * @param simpleElementId id of the simple element.
     * @param tag name of the tag that will be used to render the element.
     * @param attributes tag custom attributes.
     */
    public static void setFormElementTag(FormWidget form, String simpleElementId, String tag, Map attributes) {
      setFormElementViewSelector(form, simpleElementId, new FormElementViewSelector(tag, attributes));
    }
View Full Code Here

TOP

Related Classes of org.araneaframework.jsp.support.FormElementViewSelector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.