Brian...
is that because the grid is using the CFC name to actually instanciate
the CFC and run the method**, using Ajax as the transport (and
therefore the CFC method needs "output=true")
and (because of needing only the name) you can't use CFC instances
(that are in, say, application or server scope or perhaps the product
of a factory)?
** (similar to cfinvoke creating a CFC instance, running the method
and throwing away the instance when it's done it's work)
On Jan 12, 2008 1:23 AM, Xavi <[EMAIL PROTECTED]> wrote:
> Thx, I thought it.
>
>
>
> On Jan 11, 2008 4:05 PM, Brian Kotek <[EMAIL PROTECTED]> wrote:
> > It's not possible. You need to specify the actual path to the component in
> the bind, such as
> >
> "cfc.servers.getServersbyCustomer({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},99999)"
> >
> >
> >
> >
> >
> > On Jan 11, 2008 6:40 AM, Xavi <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> > > I have cfcs like this :
> > >
> > > <cfset application.objServers =
> createObject("component","cfc.servers").init("my_datasource")>
> > >
> > >
> > > And i need to bind a cfc to a grid, but i get an error:
> > >
> > > <cfform name="servers">
> > >
> > > <cfgrid name="serversGrid" format="html" pagesize="10" selectmode="row"
> striperows="yes" striperowcolor="##E4E4E4"
> > > selectcolor="##CCF1FD" appendkey="yes"
> bind="cfc:#application.objServers#.getServersbyCustomer({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection},99999)">
> > >
> > > <cfgridcolumn name="id" display="no">
> > > <cfgridcolumn name="severname" header="Server Name" width="250">
> > > <cfgridcolumn name="ips" header="IP's" width="250">
> > > </cfgrid>
> > >
> > > </cfform>
> > >
> > > Is it posible to do? Or is thtere another way.
> > >
> > >
> > >
> >
> >
> >
> >
> >
> >
> >
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CFCDev" group.
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/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---