Package javax.faces.application

Examples of javax.faces.application.Application.addComponent()


        final FacesContext facesContext = FacesContext.getCurrentInstance();
        final Application application = facesContext.getApplication();
        final RenderKit renderKit = facesContext.getRenderKit();

        application.addComponent(UIDataForm.COMPONENT_TYPE, UIDataForm.class.getName());
        addComponent("dataform", UIDataForm.COMPONENT_TYPE, UIDataForm.RENDERER_TYPE);
        renderKit.addRenderer(UIDataForm.COMPONENT_FAMILY, UIDataForm.RENDERER_TYPE, new DataFormRenderer());

        application.addComponent(UIDataArea.COMPONENT_TYPE, UIDataArea.class.getName());
        addComponent("dataarea", UIDataArea.COMPONENT_TYPE, UIDataArea.RENDERER_TYPE);
View Full Code Here


        application.addComponent(UIDataForm.COMPONENT_TYPE, UIDataForm.class.getName());
        addComponent("dataform", UIDataForm.COMPONENT_TYPE, UIDataForm.RENDERER_TYPE);
        renderKit.addRenderer(UIDataForm.COMPONENT_FAMILY, UIDataForm.RENDERER_TYPE, new DataFormRenderer());

        application.addComponent(UIDataArea.COMPONENT_TYPE, UIDataArea.class.getName());
        addComponent("dataarea", UIDataArea.COMPONENT_TYPE, UIDataArea.RENDERER_TYPE);

        application.addComponent(UIDataSection.COMPONENT_TYPE, UIDataSection.class.getName());
        addComponent("datasection", UIDataSection.COMPONENT_TYPE, UIDataSection.RENDERER_TYPE);
View Full Code Here

        renderKit.addRenderer(UIDataForm.COMPONENT_FAMILY, UIDataForm.RENDERER_TYPE, new DataFormRenderer());

        application.addComponent(UIDataArea.COMPONENT_TYPE, UIDataArea.class.getName());
        addComponent("dataarea", UIDataArea.COMPONENT_TYPE, UIDataArea.RENDERER_TYPE);

        application.addComponent(UIDataSection.COMPONENT_TYPE, UIDataSection.class.getName());
        addComponent("datasection", UIDataSection.COMPONENT_TYPE, UIDataSection.RENDERER_TYPE);

        application.addComponent(UIDataCell.COMPONENT_TYPE, UIDataCell.class.getName());
        addComponent("datacell", UIDataCell.COMPONENT_TYPE, UIDataCell.RENDERER_TYPE);
    }
View Full Code Here

        addComponent("dataarea", UIDataArea.COMPONENT_TYPE, UIDataArea.RENDERER_TYPE);

        application.addComponent(UIDataSection.COMPONENT_TYPE, UIDataSection.class.getName());
        addComponent("datasection", UIDataSection.COMPONENT_TYPE, UIDataSection.RENDERER_TYPE);

        application.addComponent(UIDataCell.COMPONENT_TYPE, UIDataCell.class.getName());
        addComponent("datacell", UIDataCell.COMPONENT_TYPE, UIDataCell.RENDERER_TYPE);
    }
}
View Full Code Here

        }

       
        for (String componentType : dispenser.getComponentTypes())
        {
            application.addComponent(componentType, dispenser.getComponentClass(componentType));
        }

        for (String converterId : dispenser.getConverterIds())
        {
            application.addConverter(converterId, dispenser.getConverterClassById(converterId));
View Full Code Here

        }


        for (String componentType : dispenser.getComponentTypes())
        {
            application.addComponent(componentType, dispenser.getComponentClass(componentType));
        }

        for (String converterId : dispenser.getConverterIds())
        {
            application.addConverter(converterId, dispenser.getConverterClassById(converterId));
View Full Code Here

        }

       
        for (String componentType : dispenser.getComponentTypes())
        {
            application.addComponent(componentType, dispenser.getComponentClass(componentType));
        }

        for (String converterId : dispenser.getConverterIds())
        {
            application.addConverter(converterId, dispenser.getConverterClassById(converterId));
View Full Code Here

        }


        for (String componentType : dispenser.getComponentTypes())
        {
            application.addComponent(componentType, dispenser.getComponentClass(componentType));
        }

        for (String converterId : dispenser.getConverterIds())
        {
            application.addConverter(converterId, dispenser.getConverterClassById(converterId));
View Full Code Here

        }

       
        for (String componentType : dispenser.getComponentTypes())
        {
            application.addComponent(componentType, dispenser.getComponentClass(componentType));
        }

        for (String converterId : dispenser.getConverterIds())
        {
            application.addConverter(converterId, dispenser.getConverterClassById(converterId));
View Full Code Here

    Application app = context.getApplication();
    UIComponent root = app.createComponent(UIViewRoot.COMPONENT_TYPE);
    if (root == null || (root.getClass() == UIViewRoot.class &&
        root.getClass().getAnnotation(PortletNamingContainer.class) == null))
    {
      app.addComponent(UIViewRoot.COMPONENT_TYPE, PortletNamingContainerUIViewRoot.class.getName());
      return UIViewRoot.class.getName();
    }
   
    return null;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.