Package javax.faces.event

Examples of javax.faces.event.AbortProcessingException


                {
                    instance = (ActionListener) ReflectionUtil.forName(this.type).newInstance();
                }
                catch (Exception e)
                {
                    throw new AbortProcessingException("Couldn't Lazily instantiate ValueChangeListener", e);
                }
                if (this.binding != null)
                {
                    binding.setValue(faces.getELContext(), instance);
                }
View Full Code Here


   
    public void processAction(ActionEvent actionEvent) throws AbortProcessingException
    {
       
        if( target == null )
            throw new AbortProcessingException("@target has not been set");

        if( value == null )
            throw new AbortProcessingException("@value has not been set");
       
        FacesContext ctx = FacesContext.getCurrentInstance();
       
        if( ctx == null )
            throw new AbortProcessingException("FacesContext ctx is null");
       
        ELContext ectx = ctx.getELContext();
       
        if( ectx == null )
            throw new AbortProcessingException("ELContext ectx is null");
       
        // TODO use a Converter before calling setValue
       
        target.setValue(ectx, value.getValue(ectx));
       
View Full Code Here

        if (requestContext != null) {
            try {
                encodeCallbackParams(requestContext);
            }
            catch (Exception exception) {
                throw new AbortProcessingException(exception);
            }
        }
    }
View Full Code Here

        if (requestContext != null) {
            try {
                encodeScripts(requestContext);
            }
            catch (Exception exception) {
                throw new AbortProcessingException(exception);
            }
        }
           
        wrapped.endDocument();
    }
View Full Code Here

  }

  @SuppressWarnings("unchecked")
  public void processAction(ActionEvent actionEvent) throws AbortProcessingException {
    if(value == null) {
            throw new AbortProcessingException("Value has not been set");
        }

    ELContext elContext = FacesContext.getCurrentInstance().getELContext();

    Object val = (Object) value.getValue(elContext);
View Full Code Here

                phasesInstance = binding.getValue(currentFacesContext.getELContext());
            } else if (type != null) {
                try {
                    phasesInstance = ClassUtils.newInstance((String)type.getValue(currentFacesContext.getELContext()));
                } catch (FacesException ex) {
                    throw new AbortProcessingException(ex.getMessage(), ex);
                }
            }
            return (PhaseListener) phasesInstance;

        }
View Full Code Here

                {
                    phasesInstance = ClassUtils.newInstance((String)type.getValue(currentFacesContext.getELContext()));
                }
                catch (FacesException ex)
                {
                    throw new AbortProcessingException(ex.getMessage(), ex);
                }
            }
            return (PhaseListener)phasesInstance;

        }
View Full Code Here

                {
                    phasesInstance = ClassUtils.newInstance((String)type.getValue(currentFacesContext.getELContext()));
                }
                catch (FacesException ex)
                {
                    throw new AbortProcessingException(ex.getMessage(), ex);
                }
            }
            return (PhaseListener)phasesInstance;

        }
View Full Code Here

            }
            catch (Exception e)
            {

                Throwable cause = e;
                AbortProcessingException ape = null;
                do
                {
                    if (cause != null && cause instanceof AbortProcessingException)
                    {
                        ape = (AbortProcessingException) cause;
View Full Code Here

                {
                    phasesInstance = ClassUtils.newInstance((String)type.getValue(currentFacesContext.getELContext()));
                }
                catch (FacesException ex)
                {
                    throw new AbortProcessingException(ex.getMessage(), ex);
                }
            }
            return (PhaseListener)phasesInstance;

        }
View Full Code Here

TOP

Related Classes of javax.faces.event.AbortProcessingException

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.