Package javax.faces

Examples of javax.faces.FacesException


            ByteArrayInputStream bais = new ByteArrayInputStream((byte[]) state);
            DataInputStream dis = new DataInputStream(bais);
            try {
                stateHolderResource.readState(context, dis);
            } catch (IOException e) {
                throw new FacesException(e.getMessage(), e);
            } finally {
                try {
                    dis.close();
                } catch (IOException e) {
                    RESOURCE_LOGGER.debug(e.getMessage(), e);
View Full Code Here


            sessionFactory = new SessionFactoryImpl(sessionManager, topicsContext);

            facesContext.getExternalContext().getApplicationMap().put(INSTANCE_KEY_NAME, this);
        } catch (Exception e) {
            throw new FacesException(e.getMessage(), e);
        }
    }
View Full Code Here

                facet.encodeAll(facesContext);
                printWriter.flush();
                String value = new String(outputStream.toByteArray());
                options.put(name, value);
            } catch (IOException e) {
                throw new FacesException("Can't encode facet '" + name + "' of component '" + component.getClass().getName()
                        + "'", e);
            } finally {
                facesContext.setResponseWriter(originalResponseWriter);
            }
            return;
View Full Code Here

        Set<String> result = null;

        result = Sets.asSet(value);

        if (result == null) {
            throw new FacesException(
                propertyName.toString()
                    + "' attribute value must be Collection, List, array, String, comma-separated String, whitespace-separate String'");
        }

        return result;
View Full Code Here

        Properties cacheProperties = new Properties();

        try {
            cacheProperties.putAll(loadProperties());
        } catch (IOException e) {
            throw new FacesException(e.getMessage(), e);
        }

        try {
            cacheProperties.putAll(loadProperties());
        } catch (IOException e) {
            throw new FacesException(e.getMessage(), e);
        }

        cacheProperties.putAll(env);
        LOG.info("Creating OSCache cache instance using parameters: " + cacheProperties);
View Full Code Here

            try {
                stream = URLToStreamHelper.urlToStream(cacheConfigurationURL);
                cache = cacheFactory.createCache(stream);
                setupMaxSizeEviction(facesContext, cache);
            } catch (IOException e) {
                throw new FacesException(e.getLocalizedMessage(), e);
            } finally {
                if (stream != null) {
                    try {
                        stream.close();
                    } catch (IOException e) {
View Full Code Here

                visitor.processComponent(faces, component, null);
            }

            walk(faces, visitor, null);
        } catch (Exception e) {
            throw new FacesException(e);
        } finally {
            this.setRowKey(faces, null);
            this.restoreOrigValue(faces);
        }
    }
View Full Code Here

                        found = dataChild.invokeOnComponent(context, clientId, callback);
                    }
                }
            }
        } catch (Exception e) {
            throw new FacesException(e);
        } finally {

            // if (null != oldRowKey) {
            try {
                setRowKey(context, oldRowKey);
View Full Code Here

            }

            setRowKey(context, newRowKey);
            callback.invokeContextCallback(context, this);
        } catch (Exception e) {
            throw new FacesException(e);
        } finally {
            try {
                setRowKey(context, oldRowKey);
                restoreOrigValue(context);
            } catch (Exception e) {
View Full Code Here

                logMetaInf();
            }
        }
        catch (IOException e)
        {
            throw new FacesException(e);
        }
        catch (SAXException e)
        {
            throw new FacesException(e);
        }

        configureFactories();
        configureApplication();
        configureRenderKits();
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.