s
that are the drop-down shadow of the pop-up.
You??™ll find the ???Processing...??? pop-up has the same basic structure, just less actual content,
of course.
RePortalClass.js
As you examined index.jsp, you will have noticed numerous calls to the RePortal class, so
now we need to look at that code, which is where all the real client-side code of this application
really lives.
The init() Method
To begin, we have the init() method, which we saw earlier is called when index.jsp loads. It
is responsible for initializing the application, and it is this code:
this.init = function(inUsername) {
dwr.engine.setErrorHandler(RePortal.exceptionHandler);
if (inUsername != "") {
this.username = inUsername;
dwr.util.setValue("spanUsername", RePortal.username);
dwr.util.byId("divNotLoggedInMessage").style.display = "none";
dwr.util.byId("divReportScheduling").style.display = "";
dwr.util.byId("divReportMaintenance").style.display = "";
dwr.util.byId("divGroupAdministration").style.display = "";
dwr.util.byId("divUserAdministration").style.display = "";
}
CHAPTER 7 n ENTER THE ENTERPRISE: A DWR-BASED REPORT PORTAL 365
ReportWorker.
Pages:
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644