Package de.hybris.yfaces

Examples of de.hybris.yfaces.YFacesException


    errors.remove(ERROR_STATE.VIEW_ID_NOT_SPECIFIED);
    errors.remove(ERROR_STATE.SPEC_IS_MISSING);

    String errorString = ERROR_STATE.getFormattedErrorMessage(errors, cmpInfo, null);
    if (errorString != null) {
      throw new YFacesException(errorString);
    }
    return cmpInfo;
  }
View Full Code Here


      // ValueBinding
      this.setValue(cmp);
    } else {
      Set<ERROR_STATE> errors = cmpInfo.assertCustomImplementationClass(_cmp.getClass());
      if (!errors.isEmpty()) {
        throw new YFacesException(ERROR_STATE.getFormattedErrorMessage(errors, cmpInfo,
            _cmp.getClass()));
      }

      cmp = (YComponent) _cmp;
View Full Code Here

                  method.getParameterTypes()[0]);

          // and finally inject value
          method.invoke(cmp, value);
        } catch (Exception e) {
          throw new YFacesException(logId + ": can't set attribute " + attribute
              + " (argument mismatch?)", e);
        }

        // some nice debug output for bughunting
        if (log.isDebugEnabled()) {
View Full Code Here

   * @see javax.faces.application.ApplicationFactory#setApplication(javax.faces
   * .application.Application)
   */
  @Override
  public void setApplication(Application application) {
    throw new YFacesException("Can't set another instance of " + Application.class.getName());
  }
View Full Code Here

    super.setPhaseId(phaseId);
  }

  @Override
  public boolean isAppropriateListener(FacesListener faceslistener) {
    throw new YFacesException("", new UnsupportedOperationException());
  }
View Full Code Here

    throw new YFacesException("", new UnsupportedOperationException());
  }

  @Override
  public void processListener(FacesListener faceslistener) {
    throw new YFacesException("", new UnsupportedOperationException());
  }
View Full Code Here

   * @param ctx
   *            Spring {@link ApplicationContext}
   */
  public YApplicationContext(ApplicationContext ctx) {
    if (appCtx != null) {
      throw new YFacesException(this.getClass().getName() + " was already created");
    }
    appCtx = ctx;
  }
View Full Code Here

    }
  }

  public void handleException(FacesContext fc, String msg) {
    try {
      this.handleException(fc, new YFacesException(msg));
    } catch (final Exception e) {
      log.fatal("Unhandled error");
      e.printStackTrace();
    }
  }
View Full Code Here

   *             when binding is not valid
   */
  private void checkMethodBinding(String binding) {
    final boolean isMethodBinding = binding.startsWith("#{");
    if (!isMethodBinding) {
      throw new YFacesException(binding + " is not a valid MethodBinding expression");
    }
  }
View Full Code Here

      } catch (MethodNotFoundException e2) {
        String error1 = "binding(" + YComponentEvent.class.getName() + ")";
        String error2 = "binding(" + event.getClass() + ")";
        String error = "Invalid " + YComponentEventListener.class.getName()
            + "; there's neither a " + error1 + " nor a" + error2;
        throw new YFacesException(error);
      }
    }

    // invoke method
    Object result = me.invoke(elCtx, new Object[] { event });
View Full Code Here

TOP

Related Classes of de.hybris.yfaces.YFacesException

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.