/** 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); } }
/** * 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); }