Package de.hybris.yfaces

Examples of de.hybris.yfaces.YFacesException


      }

      // force a one-time survive after a GET (redirect)
      if (isFlash) {
        if (isPostBack) {
          throw new YFacesException("Illegal Navigationstate");
        }

        // must explicitly invoked for GET
        this.switchPage(viewId);
      }
View Full Code Here


   */
  protected void initialize(FacesEvent event) {
    this.facesEventSource = event;

    if (event == null) {
      throw new YFacesException(logId
          + ":can't initialize controller; No ActionEvent specified",
          new NullPointerException());
    }

    if (getComponent() == null) {
      throw new YFacesException(logId + ": can't find a YComponent");
    }

    if (log.isDebugEnabled()) {
      YComponent cmp = getComponent();
      String ctxPath = "event:" + this.getClass().getSimpleName() + "; componentId:"
View Full Code Here

   * @return {@link UICommand}
   */
  public UIComponent getUIComponent() {
    if (this.actionUICmp == null) {
      if (this.facesEventSource == null) {
        throw new YFacesException(logId
            + ":can't get UIComponent; Controller not initialized (no ActionEvent)");
      }

      this.actionUICmp = this.facesEventSource.getComponent();
    }
View Full Code Here

   * @return {@link UIForm}
   */
  public UIForm getUIForm() {
    if (this.actionUIForm == null) {
      if (this.facesEventSource == null) {
        throw new YFacesException(logId
            + ":can't get UIForm; Controller not initialized (no ActionEvent)");
      }

      if ((this.actionUIForm = this.findParentForm(this.facesEventSource.getComponent())) == null) {
        throw new YFacesException(logId + ":can't find parent UIForm");
      }
    }

    return this.actionUIForm;
  }
View Full Code Here

      HtmlYComponent cmp = null;
      if (result == null && (cmp = getActionHtmlYComponent()) != null) {
        result = (T2) cmp.getYComponent();
      }
    } else {
      throw new YFacesException(
          logId
              + " found no Component (got no FacesEvent; missing Action- or ValueChangeListener?)");
    }

    // finally throw exception when no component was found
    if (result == null) {
      throw new YFacesException(logId + ": can't find a " + YComponent.class.getSimpleName());
    }

    return result;
  }
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.