Awesome :) Glad I could help!

On Jun 9, 2:46 pm, MercuryNewt <[email protected]> wrote:
> That worked perfectly Brian, thanks!
>
> On Jun 9, 12:44 pm, MercuryNewt <[email protected]> wrote:
>
> > Thanks!  I'll try that and let you know how it goes...
>
> > On Jun 9, 12:42 pm, Brian FitzGerald <[email protected]>
> > wrote:
>
> > > make a call to getParameters() in your configure method and you should
> > > see your parameters there available to you as a struct.
> > > With that said, you shouldn't need to explicitly define them w/ the
> > > cfargument tag.
>
> > > Hopefully that works, I'm not in front of the comp to test it now,
> > > Brian
>
> > > On Jun 9, 11:17 am, MercuryNewt <[email protected]> wrote:
>
> > > > Hi all,
>
> > > > I'm having an issues converting and existing Mach-II 1.1 app into a
> > > > more properly implemented Mach-II 1.6 application.  Basically this has
> > > > involved getting rid of explicit calls to application scope variables
> > > > in favor of setting them inside of Mach-II via property tags or the
> > > > setProperty method.  After reading the 1.5 documentaion on the
> > > > property datatype (https://greatbiztoolsllc.trac.cvsdude.com/mach-ii/
> > > > wiki/NewPropertyDatatypes#MachII.framework.PropertyCFC), I implemented
> > > > several properties which were CFC ensuring that they extended
> > > > MachII.framework.Property and implementing a configure method where
> > > > needed.  Likewise most of these new properties require parameters and
> > > > so therefore I added the necessary tags there as well.  Below is an
> > > > example of the mach-ii.xml file:
>
> > > > <property name="loggingService" type="model.common.LoggingService">
> > > >   <parameters>
> > > >     <parameter name="toAddress" value="[email protected]" />
> > > >     <parameter name="fromAddress" value="[email protected]" />
> > > >     <parameter name="logFileName" value="accountAccess" />
> > > >   </parameters>
> > > > </property>
>
> > > > Likewise below is the configure method from my LoggingService.cfc:
>
> > > > <cffunction name="configure" access="public" output="false"
> > > > returntype="model.common.LoggingService">
> > > >   <cfargument name="toAddress" type="string" required="true"/>
> > > >   <cfargument name="fromAddress" type="string" required="true"/>
> > > >   <cfargument name="logFileName" type="string" required="true"/>
> > > >   <cfscript>
> > > >     variables.toAddress = arguments.toAddress;
> > > >     variables.fromAddress = arguments.fromAddress;
> > > >     variables.logFileName = arguments.logFileName;
> > > >     return this;
> > > >   </cfscript>
> > > > </cffunction>
>
> > > > The error I am receiving is that the 'toAddress' parameter required by
> > > > the LoggingService's configure method was not passed.  When I took a
> > > > look at the underlying framework code, it appears that no parameters
> > > > are called when the property's configure method is invoked.  Below is
> > > > from the error thrown by ColdFusion:
>
> > > > The error occurred in E:\JRun4\servers\fed-portal\cfusion.ear
> > > > \cfusion.war\MachII\framework\PropertyManager.cfc: line 254
> > > > 252 :  <cfset aConfigurableProperty = getProperty
> > > > (variables.configurablePropertyNames[i]) />
> > > > 253 :  <cfset aConfigurableProperty.setLog(logFactory) />
> > > > 254 :  <cfset aConfigurableProperty.configure() />
>
> > > > I'm working for a client right now and making these modifications to
> > > > the existing app is a big deal.  Although I've been working with CF
> > > > for 13 years, I've never used mach-ii, but from what I've read the
> > > > code looks correct.  Any advice?
>
> > > > Thanks...- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets: 
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/
-~----------~----~----~----~------~----~------~--~---

Reply via email to