Accessing properties

1 view
Skip to first unread message

Phil Ewington - iModel Ltd.

unread,
Jan 24, 2010, 11:25:57 AM1/24/10
to Mach-II for CFML
Hi All,

Can someone please explain how to access a property defined in mach-ii.xml.

<property name="dateFormatMask" value="yyyy-dd-mm" />

My service layer and gateway objects error when I use...

getProperty("dateFormatMask")

with...

Variable GETPROPERTY is undefined.

Same code accesses the value of the property as expected in my listener. I am using MachII-1.8.0. Thanks in advance,


Phil.

Matthew Woodward

unread,
Jan 24, 2010, 11:31:00 AM1/24/10
to mach-ii-for...@googlegroups.com

Getproperty is only available in cfcs that extend framework cfcs. If you need properties in your service layer you should pass them in from your listener, or use coldspring to handle any property dependencies.

--
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to mach-ii-for...@googlegroups.com
To unsubscribe from this group, send email to mach-ii-for-coldf...@googlegroups.com
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 all
Reply to author
Forward
0 new messages