Railo: ftWatch postalState not working

0 views
Skip to first unread message

Marco van den Oever

unread,
Jun 8, 2009, 2:28:47 PM6/8/09
to farcry-dev
I am trying to use following code in dmProfile:

<cfproperty
ftSeq="25"
ftfieldset="Contact details"
name="postalState"
type="string"
hint=""
required="yes"
default=""
ftlabel="State"
ftType="state"
ftValue="code"
ftWatch="postalCountry" />

I get a struct dump same that i believe is same as:

http://groups.google.com/group/farcry-dev/browse_thread/thread/7a3710f48fc13764/981ae46dc237f02d?lnk=gst&q=general+config#981ae46dc237f02d

and

http://bugs.farcrycms.org/browse/FC-1851

Am i right?

Marco van den Oever

unread,
Jun 9, 2009, 7:26:17 PM6/9/09
to farcry-dev
Bugged to:

http://bugs.farcrycms.org/browse/FC-1876

On Jun 8, 8:28 pm, Marco van den Oever <marcovandenoe...@gmail.com>
wrote:
> I am trying to use following code in dmProfile:
>
> <cfproperty
>   ftSeq="25"
>   ftfieldset="Contact details"
>   name="postalState"
>   type="string"
>   hint=""
>   required="yes"
>   default=""
>   ftlabel="State"
>   ftType="state"
>   ftValue="code"
>   ftWatch="postalCountry" />
>
> I get a struct dump same that i believe is same as:
>
> http://groups.google.com/group/farcry-dev/browse_thread/thread/7a3710...

Marco van den Oever

unread,
Jun 10, 2009, 1:21:42 AM6/10/09
to farcry-dev
I am testing this on coldfusion 8 now and get the same error, now with
more specification:

Message Element postalCountry is undefined in a CFML structure
referenced as part of an expression.

coldfusion.runtime.UndefinedElementException: Element postalCountry is
undefined in a CFML structure referenced as part of an expression. at
coldfusion.runtime.CfJspPage.ArrayGetAt(CfJspPage.java:919) at
coldfusion.runtime.CfJspPage._arrayGetAt(CfJspPage.java:930) at
coldfusion.runtime.CfJspPage._arrayGetAt(CfJspPage.java:925) at
cfstate2ecfc1571554191$funcEDIT.runFunction(C:\Inetpub\wwwroot\farcry
\core\packages\formtools\state.cfc:26)

Digging in the code to see how it works or should work, any tips or
directions will be appreciated...

On Jun 10, 1:26 am, Marco van den Oever <marcovandenoe...@gmail.com>

Marco van den Oever

unread,
Jun 22, 2009, 7:24:54 PM6/22/09
to farcry-dev
It was due to not understanding how this ft:watch principle works, i
now have it working.
Of course you need both properties "postalCountry" and "postalState",
as the ft:watch of "postalstate" is ftWatch="postalCountry", it's
listening to "postalCountry" so that property has to be there...

On Jun 10, 7:21 am, Marco van den Oever <marcovandenoe...@gmail.com>
Reply all
Reply to author
Forward
0 new messages