Package javax.faces

Examples of javax.faces.FacesException


        int oldScopeValue = scope.getScope();

        try {
          if (scope.containsBean(key))
            throw new FacesException(L.l("'{0}' is a circular managed bean reference.",
                                      key));

          scope.addBean(key);

          return managedBean.create(facesContext, scope);
View Full Code Here


      throw new NullPointerException();

    Class cl = getComponentClass(componentType);

    if (cl == null)
      throw new FacesException(L.l(
        "'{0}' is an unknown UI componentType to create",
        componentType));

    try {
      return (UIComponent) cl.newInstance();
    }
    catch (RuntimeException e) {
      throw e;
    }
    catch (Exception e) {
      throw new FacesException(e);
    }
  }
View Full Code Here

        return cl;

      String className = _componentClassNameMap.get(name);

      if (className == null)
        throw new FacesException(L.l("'{0}' is an unknown component type",
                                     name));

      try {
        ClassLoader loader = Thread.currentThread().getContextClassLoader();

        cl = Class.forName(className, false, loader);

        Config.validate(cl, UIComponent.class);

        _componentClassMap.put(name, cl);

        return cl;
      }
      catch (RuntimeException e) {
        throw e;
      }
      catch (Exception e) {
        throw new FacesException(e);
      }
    }
  }
View Full Code Here

    }
    catch (RuntimeException e) {
      throw e;
    }
    catch (Exception e) {
      throw new FacesException(e);
    }
  }
View Full Code Here

        return cl;

      String className = _converterIdNameMap.get(id);

      if (className == null)
        throw new FacesException(L.l("'{0}' is an unknown converter type",
                                     id));

      try {
        ClassLoader loader = Thread.currentThread().getContextClassLoader();

        cl = Class.forName(className, false, loader);

        Config.validate(cl, Converter.class);

        _converterIdMap.put(id, cl);

        return cl;
      }
      catch (RuntimeException e) {
        throw e;
      }
      catch (Exception e) {
        throw new FacesException(e);
      }
    }
  }
View Full Code Here

      }
      catch (RuntimeException e) {
        throw e;
      }
      catch (Exception e) {
        throw new FacesException(e);
      }
    }
  }
View Full Code Here

    }
    catch (RuntimeException e) {
      throw e;
    }
    catch (Exception e) {
      throw new FacesException(e);
    }
  }
View Full Code Here

    try {
      String validatorClass = _validatorClassMap.get(validatorId);

      if (validatorClass == null)
        throw new FacesException(L.l("'{0}' is not a known validator.",
                                     validatorId));

      Thread thread = Thread.currentThread();
      ClassLoader loader = thread.getContextClassLoader();

      Class cl = Class.forName(validatorClass, false, loader);

      return (Validator) cl.newInstance();
    }
    catch (FacesException e) {
      throw e;
    }
    catch (Exception e) {
      throw new FacesException(e);
    }
  }
View Full Code Here

                bytes = decompress(bytes);
            return getAsObject(bytes, ctx);
        }
        catch (UnsupportedEncodingException e)
        {
            throw new FacesException(e);
        }
    }
View Full Code Here

            gis = null;
            return moreBytes;
        }
        catch (IOException e)
        {
            throw new FacesException(e);
        }
    }
View Full Code Here

TOP

Related Classes of javax.faces.FacesException

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.