Package org.eclipse.jst.jsf.core

Examples of org.eclipse.jst.jsf.core.JSFVersion


        protected String getHandlerId(final IProject project)
        {
            IProjectFacetVersion projectFacet = JSFAppConfigUtils.getProjectFacet(project);
            if (projectFacet != null)
            {
                JSFVersion projectVersion = JSFVersion.valueOfFacetVersion(projectFacet);
               
                String defaultHandler = PRE_20_DEFAULT_VIEW_HANDLER_ID;
               
                // starting with JSF 2.0 a new view handler that first
                // processes as Facelet and then delegates to JSP is
                // used by default
                // TODO: check the web.xml flag that reverts things to 1.2 defaults
                if (projectVersion.compareTo(JSFVersion.V2_0) >= 0)
                {
                    defaultHandler = JSF_20_DEFAULT_VIEW_HANDLER_ID;
                }
                final String viewHandlerId = _propertyFileManager
                        .getProperty(PERSIST_PROPERTY_NAME_VIEW_HANDLER,
View Full Code Here


     * @return the jsf version of the project if it is valid JSF faceted
     * project or null otherwise.
     */
    public JSFUtils create(final IProject project)
    {
        final JSFVersion jsfVersion = JSFVersion.valueOfProject(project);
        if (jsfVersion != null)
        {
            return create(jsfVersion, ModelProviderManager.getModelProvider(project));
        }
        return null;
View Full Code Here

     * @throw {@link IllegalArgumentException} if version is not related
     * to a JSF facet.
     */
    public JSFUtils create(final IProjectFacetVersion version, final IModelProvider modelProvider)
    {
        final JSFVersion jsfVersion = JSFVersion.valueOfFacetVersion(version);
        if (jsfVersion != null)
        {
            return create(jsfVersion, modelProvider);
        }
        return null;
View Full Code Here

        Set<String> componentTags = null;
        Set<String> converterTags = null;
        Set<String> validatorTags = null;

        final JSFVersion jsfVersion = ServletBeanProxyContributor.getProjectVersion(project);

        if (jsfVersion == null){
          return null;
        }
        // v1.1(9.2.2): JSF component tags must sub-class one of these
View Full Code Here

TOP

Related Classes of org.eclipse.jst.jsf.core.JSFVersion

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.