Examples of JSFVersion


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

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

     * @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

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

     * @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

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

        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

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

   * @param newJSFVersion
   * <!-- end-user-doc -->
   * @generated
   */
  public void setJSFVersion(JSFVersion newJSFVersion) {
    JSFVersion oldJSFVersion = jsfVersion;
    jsfVersion = newJSFVersion == null ? JSF_VERSION_EDEFAULT : newJSFVersion;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, JSFLibraryRegistryPackage.JSF_LIBRARY__JSF_VERSION, oldJSFVersion, jsfVersion));
  }
View Full Code Here

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

     * @return the jsfVersion the dataType
     * <!-- end-user-doc -->
   * @generated
   */
  public JSFVersion createJSFVersionFromString(EDataType eDataType, String initialValue) {
    JSFVersion result = JSFVersion.get(initialValue);
    if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    return result;
  }
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.