Changeset 637

Show
Ignore:
Timestamp:
05/08/07 07:25:07 (6 years ago)
Author:
lmajano
Message:

Updates

Location:
coldbox/trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • coldbox/trunk/src/config/config.xml.cfm

    r588 r637  
    2424                <Setting name="MessageboxStyleClass"            value="mymessagebox" /> 
    2525                <Setting name="HandlersIndexAutoReload"         value="false" /> 
    26                 <Setting name="ConfigAutoReload"                        value="false" /> 
     26                <Setting name="ConfigAutoReload"                        value="true" /> 
    2727                <Setting name="ExceptionHandler"                value="" /> 
    2828                <Setting name="onInvalidEvent"                          value="ehGeneral.doinvalid" /> 
  • coldbox/trunk/src/handlers/ehGeneral.cfc

    r610 r637  
    4848                var logger = controller.getPlugin("logger"); 
    4949                logger.logEntry("information","I am in the onSessionStart baby."); 
     50                //set the default event to fire or relocate. 
     51                event.overrideEvent(getSetting("DefaultEvent")); 
    5052                </cfscript> 
    5153        </cffunction> 
     
    7880 
    7981                <cfset Event.setValue("MailBean",getMailSettings())> 
    80  
     82                 
     83                <cfset getPlugin("timer").start("New Instance Creation")> 
    8184                <!--- Get a new instance plugin ---> 
    8285                <cfset event.setValue("mylogger", getPlugin("logger",false,true) )> 
    8386                <cfset event.getValue("mylogger").setLogFullPath(ExpandPath("./config/luis.log"))> 
    84  
     87                <cfset getPlugin("timer").stop("New Instance Creation")> 
     88                 
    8589                <!--- Create a tracer message ---> 
    8690                <cfset logger.tracer("Starting dspHello. Using default name")> 
     
    9094                <!--- Set the firstname Value ---> 
    9195                <cfset Event.setValue("firstname",controller.getSetting("Codename", true) & controller.getSetting("Version", true))> 
    92                 <!--- Set the View To Display, after Logic ---> 
    93                 <cfset Event.setView("vwHello")> 
     96                 
    9497                <!--- Set another tracer variable ---> 
    9598                <cfset logger.tracer("View has been set")> 
     99                 
    96100                <!--- Create a simple permanent variable ---> 
    97101                <cfset storage.setvar("luis","Luis Majano")> 
     102                 
    98103                <!--- Permanent Complex Variable ---> 
    99104                <cfset complexStruct = structnew()> 
     
    103108                <cfset storage.setvar("complexStruct",complexStruct)> 
    104109                <cfset complete = isEmail("lmajano@gmail.com")> 
     110                 
     111                <!--- Java Loader ---> 
    105112                <cfset Event.setvalue("HelloWorldObj", application.loader.create("HelloWorld").init())> 
     113                 
    106114                <!--- Create an info MessageBox ---> 
    107                 <cfset controller.getPlugin("messagebox").setMessage("info", "Hello and welcome to the ColdBox' message box. You can place messages here from any of your applications. You can also choose the desired image to display. You can set error message, warning messages or just plain informative messages like this one. You can do this by using the <b>messagebox</b> plugin.")> 
     115                <cfset getPlugin("messagebox").setMessage("info", "Hello and welcome to the ColdBox' message box. You can place messages here from any of your applications. You can also choose the desired image to display. You can set error message, warning messages or just plain informative messages like this one. You can do this by using the <b>messagebox</b> plugin.")> 
     116                 
    108117                <!--- Get view contents ----> 
    109118                <cfset Event.setValue("MyQuote", renderView("vwQuote"))> 
     119                <!--- Set the view to render ---> 
     120                <cfset Event.setView("vwHello")> 
    110121        </cffunction> 
    111122        <!--- ************************************************************* --->