Package javax.faces

Examples of javax.faces.FacesException


         testMessageDestinationRefs(initCtx, myEnv);
      }
      catch (NamingException e)
      {
         log.debug("Lookup failed", e);
         throw new FacesException("Lookup failed, ENC tests failed", e);
      }
      catch (JMSException e)
      {
         log.debug("JMS access failed", e);
         throw new FacesException("JMS access failed, ENC tests failed", e);
      }
      catch (RuntimeException e)
      {
         log.debug("Runtime error", e);
         throw new FacesException("Runtime error, ENC tests failed", e);
      }
   }
View Full Code Here


      writer.writeAttribute("id", ResponseStateManager.RENDER_KIT_ID_PARAM, "id");
      writer.writeAttribute("value", XULRenderKit.XUL_BASIC_RENDER_KIT, "value");
      writer.endElement("xfc:renderKit");
    } else {
      log.error(BAD_RENDERKIT_ID);
      throw new FacesException(BAD_RENDERKIT_ID);
   
  }
View Full Code Here

   {
      ENCTester tester = new ENCTester(log);
      tester.testENC();

      if( queueFactory == null )
         throw new FacesException("queueFactory is not injected");
      if( testQueue == null )
         throw new FacesException("testQueue is not injected");
      if( testQueue == null )
         throw new FacesException("testQueue is not injected");
      if(url == null)
         throw new FacesException("url is not injected");
     
      return true;
   }
View Full Code Here

    * @throws Exception
    */
   public boolean getTestStatelessBean() throws Exception
   {
      if(simplestateless == null)
         throw new FacesException("stateless bean in null.");
     
      return simplestateless.doSomething();
   }
View Full Code Here

   }
  
   public boolean getTestStatefulBean() throws Exception
   {
      if(simpleStateful == null)
         throw new FacesException("stateful bean in null.");
     
      return simpleStateful.doSomething();     
   }
View Full Code Here

    * @throws Exception
    */
   public boolean getTestURL() throws Exception
   {
      if(url == null)
         throw new FacesException("url is null.");
     
      URL url = new URL("http://jboss.org");
      if(! url.equals(this.url))
         throw new FacesException("url mismatch.");
     
      return true;
   }
View Full Code Here

    * @throws Exception
    */
   public boolean getTestSimpleLocal() throws Exception
   {
      if(simpleLocal == null)
         throw new FacesException("simpleLocal is null.");
     
      return simpleLocal.testLocal();
   }
View Full Code Here

        } else if (e instanceof RuntimeException) {
            throw (RuntimeException) e;
        } else if (e instanceof IOException) {
            throw (IOException) e;
        } else {
            throw new FacesException(e.getMessage(), e);
        }
    }
View Full Code Here

            validatorFactory = (ValidatorFactory) cachedObject;
        } else {
            try {
                validatorFactory = Validation.buildDefaultValidatorFactory();
            } catch (ValidationException e) {
                throw new FacesException("Could not build a default Bean Validator factory", e);
            }
            context.getExternalContext().getApplicationMap().put(BeanValidator.VALIDATOR_FACTORY_KEY, validatorFactory);
        }
        return validatorFactory.getValidator();
    }
View Full Code Here

    try {
      //_request.getRequestDispatcher(path).include(_request, _response);
      RequestDispatcher rd = _request.getRequestDispatcher(path);

      if (rd == null)
        throw new FacesException(L.l("'{0}' is an unknown dispatcher.",
                                     path));

     
      rd.forward(_request, _response);
    } catch (ServletException 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.