Railo: ftWatch postalState not working

View: New views
4 Messages — Rating Filter:   Alert me  

Railo: ftWatch postalState not working

by Marco van den Oever :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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?
--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev@...
To unsubscribe, email: farcry-dev+unsubscribe@...
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---


Re: Railo: ftWatch postalState not working

by Marco van den Oever :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Bugged to:

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

On Jun 8, 8:28 pm, Marco van den Oever <marcovandenoe...@...>
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...
>
> and
>
> http://bugs.farcrycms.org/browse/FC-1851
>
> Am i right?
--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev@...
To unsubscribe, email: farcry-dev+unsubscribe@...
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---


Re: Railo: ftWatch postalState not working

by Marco van den Oever :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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...@...>
wrote:

> Bugged to:
>
> http://bugs.farcrycms.org/browse/FC-1876
>
> On Jun 8, 8:28 pm, Marco van den Oever <marcovandenoe...@...>
> 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...
>
> > and
>
> >http://bugs.farcrycms.org/browse/FC-1851
>
> > Am i right?
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev@...
To unsubscribe, email: farcry-dev+unsubscribe@...
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---


Re: Railo: ftWatch postalState not working

by Marco van den Oever :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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...@...>
wrote:

> 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...@...>
> wrote:
>
> > Bugged to:
>
> >http://bugs.farcrycms.org/browse/FC-1876
>
> > On Jun 8, 8:28 pm, Marco van den Oever <marcovandenoe...@...>
> > 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...
>
> > > and
>
> > >http://bugs.farcrycms.org/browse/FC-1851
>
> > > Am i right?
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev@...
To unsubscribe, email: farcry-dev+unsubscribe@...
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---