Package com.sun.faces.mgbean

Examples of com.sun.faces.mgbean.BeanManager.create()


                associate.setContextName(getServletContextIdentifier(context));
                BeanManager manager = associate.getBeanManager();
                List<String> eagerBeans = manager.getEagerBeanNames();
                if (!eagerBeans.isEmpty()) {
                    for (String name : eagerBeans) {
                        manager.create(name, initContext);
                    }
                }
            boolean isErrorPagePresent = webXmlProcessor.isErrorPagePresent();
            associate.setErrorPagePresent(isErrorPagePresent);
            context.setAttribute(RIConstants.ERROR_PAGE_PRESENT_KEY_NAME,
View Full Code Here


                associate.setContextName(getServletContextIdentifier(context));
                BeanManager manager = associate.getBeanManager();
                List<String> eagerBeans = manager.getEagerBeanNames();
                if (!eagerBeans.isEmpty()) {
                    for (String name : eagerBeans) {
                        manager.create(name, initContext);
                    }
                }
                boolean isErrorPagePresent = webXmlProcessor.isErrorPagePresent();
                associate.setErrorPagePresent(isErrorPagePresent);
                context.setAttribute(RIConstants.ERROR_PAGE_PRESENT_KEY_NAME,
View Full Code Here

                associate.setContextName(getServletContextIdentifier(context));
                BeanManager manager = associate.getBeanManager();
                List<String> eagerBeans = manager.getEagerBeanNames();
                if (!eagerBeans.isEmpty()) {
                    for (String name : eagerBeans) {
                        manager.create(name, initContext);
                    }
                }
                boolean isErrorPagePresent = webXmlProcessor.isErrorPagePresent();
                associate.setErrorPagePresent(isErrorPagePresent);
                context.setAttribute(RIConstants.ERROR_PAGE_PRESENT_KEY_NAME,
View Full Code Here

                associate.setContextName(getServletContextIdentifier(context));
                BeanManager manager = associate.getBeanManager();
                List<String> eagerBeans = manager.getEagerBeanNames();
                if (!eagerBeans.isEmpty()) {
                    for (String name : eagerBeans) {
                        manager.create(name, initContext);
                    }
                }
                boolean isErrorPagePresent = webXmlProcessor.isErrorPagePresent();
                associate.setErrorPagePresent(isErrorPagePresent);
                context.setAttribute(RIConstants.ERROR_PAGE_PRESENT_KEY_NAME,
View Full Code Here

            String beanName = property.toString();
            if (manager.isManaged(beanName)
                && !manager.isBeanInScope(beanName, facesContext)) {

                // no bean found in scope.  create a new instance
                result = manager.create(beanName, facesContext);
                context.setPropertyResolved(result != null);
            }
        }
     
        return result;
View Full Code Here

                String beanName = property.toString();
                if (manager.isManaged(beanName)
                    && !manager.isBeanInScope(beanName, facesContext)) {

                    // no bean found in scope.  create a new instance
                    Object bean = manager.create(beanName, facesContext);
                    context.setPropertyResolved(bean != null);
                }
            }
        }
View Full Code Here

        if (manager != null
              && manager.isManaged(beanName)
              && !manager.isBeanInScope(beanName, facesContext)) {

            // no bean found in scope.  create a new instance
            result = manager.create(beanName, facesContext);
            context.setPropertyResolved(result != null);
        }
     
        return result;
    }
View Full Code Here

        if (manager != null
              && manager.isManaged(beanName)
              && !manager.isBeanInScope(beanName, facesContext)) {

            // no bean found in scope.  create a new instance
            manager.create(beanName, facesContext);
        }

    }

    public boolean isReadOnly(ELContext context, Object base, Object property)
View Full Code Here

            if (builder != null) {
                FacesContext facesContext = (FacesContext)
                    context.getContext(FacesContext.class);
                result = manager.getBeanFromScope(beanName, builder, facesContext);
                if (result == null) {
                    result = manager.create(beanName, builder, facesContext);
                }
                context.setPropertyResolved(markAsResolvedIfCreated && (result != null));
            }
        }
View Full Code Here

                associate.setContextName(getServletContextIdentifier(context));
                BeanManager manager = associate.getBeanManager();
                List<String> eagerBeans = manager.getEagerBeanNames();
                if (!eagerBeans.isEmpty()) {
                    for (String name : eagerBeans) {
                        manager.create(name, initContext);
                    }
                }
                boolean isErrorPagePresent = webXmlProcessor.isErrorPagePresent();
                associate.setErrorPagePresent(isErrorPagePresent);
                context.setAttribute(RIConstants.ERROR_PAGE_PRESENT_KEY_NAME,
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.