예제 #1
0
  /** This method was created in VisualAge. */
  public void initialize() throws Exception {
    try {
      super.initialize();

      addPageListener(this);

      // Assigning to main cont
      Enumeration e = getComponentTable().elements();
      while (e.hasMoreElements()) {
        HtmlComponent comp = (HtmlComponent) e.nextElement();
        if (comp instanceof JspListForm) {
          _mainCont = (JspListForm) comp;
          break;
        }
      }

    } catch (Exception e) {
      MessageLog.writeErrorMessage("initialize", e, this);
    }
  }
예제 #2
0
  /**
   * This method is overridden in the descendant class/page. It is used each time a user re-visits a
   * page after the initial page generation by the initPage and createPage methods.
   *
   * @param p PageEvent
   * @throws Exception
   */
  public void request(PageEvent p) throws Exception {
    if (!isReferredByCurrentPage()) defineView();

    // Set the primary Link after defining the view
    super.request(p);
  }