Package javax.faces.view.facelets

Examples of javax.faces.view.facelets.FaceletException


            {
                this.constructor = this.type.getConstructor(CONS_SIG);
            }
            catch (Exception e)
            {
                throw new FaceletException("Must have a Constructor that takes in a ComponentConfig", e);
            }
        }
View Full Code Here


                ComponentConfig ccfg = new ComponentConfigWrapper(cfg, componentType, renderType);
                return constructor.newInstance(new Object[] { ccfg });
            }
            catch (InvocationTargetException e)
            {
                throw new FaceletException(e.getCause().getMessage(), e.getCause().getCause());
            }
            catch (Exception e)
            {
                throw new FaceletException("Error Instantiating ComponentHandler: " + this.type.getName(), e);
            }
        }
View Full Code Here

            }
            return null;
        }
        else
        {
            throw new FaceletException("Attributes under "+JSF_NAMESPACE+
                " can only be used for tags under "+ XHTML_NAMESPACE +" or tags with no namespace defined" );
        }
    }
View Full Code Here

                return lastModified == 0 || lastModified > target;
            }
            catch (IOException e)
            {
                throw new FaceletException("Error Checking Last Modified for " + facelet.getAlias(), e);
            }
        }

        return false;
    }
View Full Code Here

            SAXParser parser = this.createSAXParser(handler);
            parser.parse(is, handler);
        }
        catch (SAXException e)
        {
            throw new FaceletException("Error Parsing " + alias + ": " + e.getMessage(), e.getCause());
        }
        catch (ParserConfigurationException e)
        {
            throw new FaceletException("Error Configuring Parser " + alias + ": " + e.getMessage(), e.getCause());
        }
        finally
        {
            if (is != null)
            {
View Full Code Here

                catch (PrivilegedActionException pae)
                {
                    Exception e = pae.getException();
                    if(e instanceof SAXException)
                    {
                        throw new FaceletException("Error Parsing " + alias + ": " + e.getMessage(), e.getCause());
                    }
                    else if(e instanceof IOException)
                    {
                        throw (IOException)e;
                    }
                }
            }
            else
            {
                parser.parse(is, handler);
            }
        }
        catch (SAXException e)
        {
            throw new FaceletException("Error Parsing " + alias + ": " + e.getMessage(), e.getCause());
        }
        catch (ParserConfigurationException e)
        {
            throw new FaceletException("Error Configuring Parser " + alias + ": " + e.getMessage(), e.getCause());
        }
        finally
        {
            if (is != null)
            {
View Full Code Here

                    is.close();
                }
            }
            catch (IOException e)
            {
                throw new FaceletException("Error Checking Last Modified for " + facelet.getAlias(), e);
            }
        }

        return false;
    }
View Full Code Here

      Object handler = makeCompilationHandler(mngr, alias);
      SAXParser parser = this.createSAXParser(handler);
      parser.parse(is, (DefaultHandler) handler);
    } catch (SAXException e) {
      throw new FaceletException("Error Parsing " + alias + ": " + e.getMessage(), e.getCause());
    } catch (ParserConfigurationException e) {
      throw new FaceletException("Error Configuring Parser " + alias + ": " + e.getMessage(), e.getCause());
    } finally {
      if (is != null) {
        is.close();
      }
    }
View Full Code Here

      Method m = getIncludeMethod(facelet);
      m.invoke(facelet, ctx, parent);

      hookApplyOver(faceletCtx, parent);
    } catch (Exception e) {
      throw new FaceletException(e);
    } finally {
      ctx.setVariableMapper(orig);
      ctx.popClient(this);
    }
  }
View Full Code Here

        String[] instanceClassPaths = entity.split(SEPARATOR);
        for (String oneEntityClassName : instanceClassPaths) {
          inspectClasses.add(Class.forName(oneEntityClassName));
        }
      } catch (ClassNotFoundException e) {
        throw new FaceletException("Class: " + entityClassName.getValue() + " not found");
      }
      // return array
      return inspectClasses.toArray(new Class<?>[inspectClasses.size()]);
    }
View Full Code Here

TOP

Related Classes of javax.faces.view.facelets.FaceletException

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.