Try turning off ColdFusion debugging. i ran into the same issue and couldn't figure out why. i forgot the exact reason why since it was last year but for some reason it runs twice with debugging.
On Fri, Jan 7, 2011 at 11:30 AM, Meghu <[email protected]> wrote: > I am using Mach II 1.8.1 version. > > I am new to Mach II. I noticed that, JqGrid toolbar like search, > refresh icons are loading twice. > I think it is jQuery (ajax) related stuff issue in Mach II. > Also, I am using jQuery to do alert, whenever my select box selection > is changed, and it firing that event twice too. > > <script> > > $(function() { > > $('#ddlTiers').change(function() { > var idTier = $('#ddlTiers option:selected').val(); > alert(idTier); > > }); > > }); > > </script> > > > my mach-ii.xml filr looks likes this: > > > > <?xml version="1.0" encoding="UTF-8"?> > > <!DOCTYPE mach-ii PUBLIC "-//Mach-II//DTD Mach-II Configuration 1.6.0// > EN" > "http://www.mach-ii.com/dtds/mach-ii_1_6_0.dtd" > > > <mach-ii version="1.6"> > <!-- INCLUDES --> > <includes> > <!-- <include file="./mach-ii_coldspringProperty.xml" /> --> > </includes> > > <!-- PROPERTIES --> > <properties> > <property name="applicationRoot" value="/" /> > <property name="defaultEvent" value="showLoginForm" /> > <property name="eventParameter" value="event" /> > <property name="parameterPrecedence" value="form" /> > <property name="maxEvents" value="10" /> > <property name="exceptionEvent" value="exception" /> > <property name="stylePath" value="/NR5MachII/library/css" /> > <property name="imagePath" value="/NR5MachII/library/images" > /> > <property name="libPath" value="/NR5MachII/library" /> > <property name="contentCommonPath" value="/NR5MachII/views/ > ContentCommon" /> > <property name="viewPath" value="/NR5MachII/views" /> > > <!-- Application Properties --> > <property name="dsn" value="master" /> > <!--<property name="servicesConfigFile" > value="config/services.xml" / > > > <property name="stitchConfig" value="config/stitch.xml" > />--> > > <!-- CACHING RELATED --> > <!-- this will create an unnamed cache that caches data for > 1 hour > in the application scope --> > <!-- <property name="caching" > type="MachII.caching.CachingProperty" / > > --> > > <!-- LOGGING RELATED --> > <!-- this will log to the screen --> > <!-- <property name="logging" > type="MachII.logging.LoggingProperty" / > > --> > </properties> > > <!-- LISTENERS --> > <listeners> > <listener name="userListener" > type="NR5MachII.listeners.UserListener" /> > > </listeners> > > <!-- MESSAGE SUBSCRIBERS --> > <message-subscribers> > > </message-subscribers> > > <!-- EVENT-FILTERS --> > <event-filters> > <event-filter name="FilterIsSessionActive" > type="NR5MachII.filters.FilterIsSessionActive"/> > > </event-filters> > > <!-- PLUGINS --> > <plugins> > > </plugins> > > <!-- EVENT-HANDLERS --> > <event-handlers> > > <event-handler event="showLoginForm" access="public"> > <view-page name="loginForm" /> > </event-handler> > > <event-handler event="processLoginAttempt" access="public"> > <notify listener="userListener" > method="processPublicLogin" /> > </event-handler> > > <event-handler event="processLogoff" access="public"> > <notify listener="userListener" > method="processLogoff" /> > </event-handler> > > > <!--<event-handler event="loginSucceeded" access="private"> > <view-page name="mainMenu" /> > </event-handler> --> > > <event-handler event="loginFailed" access="private"> > <announce event="showLoginForm" copyEventArgs="true" > /> > </event-handler> > > <event-handler event="showDashboard" access="public"> > <!-- <notify listener="SomeListener" > method="doSomething" > resultArg="resultOfSomething" /> --> > <filter name="FilterIsSessionActive"/> > <event-arg name="pageTitle" > value="NetReport-Dashboard" /> > <view-page name="showDashboard" > contentArg="mainContent" /> > <execute subroutine="renderLayout" /> > </event-handler> > > <event-handler event="showST" access="public"> > <!-- <notify listener="SomeListener" > method="doSomething" > resultArg="resultOfSomething" /> --> > <filter name="FilterIsSessionActive"/> > <event-arg name="pageTitle" value="NetReport-Summary > Report" /> > <view-page name="showST" contentArg="mainContent" /> > <execute subroutine="renderLayout" /> > </event-handler> > > <event-handler event="showAbout" access="public"> > <!-- <notify listener="SomeListener" > method="doSomething" > resultArg="resultOfSomething" /> --> > <event-arg name="pageTitle" value="NetReport-About" > /> > <view-page name="basic.about" > contentArg="mainContent" /> > <execute subroutine="renderLayout" /> > </event-handler> > > > > > > <event-handler event="exception" access="private"> > <view-page name="exception" /> > </event-handler> > </event-handlers> > > <!-- SUBROUTINES --> > <subroutines> > > <subroutine name="renderLayout"> > <view-page name="layout.header" contentArg="header" > /> > <view-page name="layout.footer" contentArg="footer" > /> > <view-page name="layout.mainTemplate" /> > </subroutine> > > </subroutines> > > <!-- PAGE-VIEWS --> > <page-views> > <!--<page-view name="showDashboard" > page="/NR5MachII/views/Reports/ > Core/Dashboard/Dashboardindex.cfm" />--> > <page-view name="layout.header" > page="/NR5MachII/views/layout/ > header.cfm" /> > <page-view name="layout.footer" > page="/NR5MachII/views/layout/ > footer.cfm" /> > <page-view name="layout.mainTemplate" > page="/NR5MachII/views/layout/ > mainTemplate.cfm" /> > <page-view name="loginForm" page="/NR5MachII/views/Login/ > loginForm.cfm" /> > <page-view name="showDashboard" > page="/NR5MachII/views/Reports/Core/ > Dashboard/Dashboardindex.cfm" /> > <page-view name="showST" > page="/NR5MachII/views/Reports/Core/ST/ > STindex.cfm" /> > <page-view name="exception" > page="/NR5MachII/views/exception.cfm" /> > </page-views> > > > <modules> > <module name="dashboard" file="/MachIIDashboard/config/mach- > ii_dashboard.xml"> > <mach-ii> > <properties> > <property name="password" value="test" /> > </properties> > </mach-ii> > </module> > </modules> > > </mach-ii> > > -- > You received this message because you are subscribed to Mach-II for CFML > list. > To post to this group, send email to > [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/mach-ii-for-coldfusion?hl=en > > SVN: http://svn.mach-ii.com/machii/ > Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/ > -- You received this message because you are subscribed to Mach-II for CFML list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en SVN: http://svn.mach-ii.com/machii/ Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/
