Hi Ian,

I also encountered the same problem with Beta 3 & it seemed like a 
bug to not be able to use a custom component inside a repeater.
I also arrived at the same solution as you i.e. not use a custom
component & use Flex components only.

May be this has been fixed in the released version, I haven't 
tried it yet.

Thanks,
Aejaz

--- In [email protected], "Douglas Knudsen"
<[EMAIL PROTECTED]> wrote:
>
> I'm guessing the mapping from your cfc to the as object isn't working.
>  Just a hunch.
> 
> DK
> 
> On 6/27/06, Ian Skinner <[EMAIL PROTECTED]> wrote:
> > //Define public variables
> > [Bindable]
> > public var drawData:Object;
> >
> > Ok, changing the data type of the drawData variable to Object
which is what a repeater currentItem returns worked!  But is this the
way I want this to work?  Just use a generic Object type not my nice
custom Object I create with the drawDay.as file and is returned from
my drawDay.cfc with the remoteObject call?
> >
> >
> > --------------
> > Ian Skinner
> > Web Programmer
> > BloodSource
> > www.BloodSource.org
> > Sacramento, CA
> >
> > ---------
> > | 1 |   |
> > ---------  Binary Soduko
> > |   |   |
> > ---------
> >
> > "C code. C code run. Run code run. Please!"
> > - Cynthia Dunning
> >
> > Confidentiality Notice:  This message including any
> > attachments is for the sole use of the intended
> > recipient(s) and may contain confidential and privileged
> > information. Any unauthorized review, use, disclosure or
> > distribution is prohibited. If you are not the
> > intended recipient, please contact the sender and
> > delete any copies of this message.
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> > ---------- Forwarded message ----------
> > From: "Ian Skinner" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>, <[email protected]>
> > Date: Tue, 27 Jun 2006 15:41:59 -0700
> > Subject: [flex2dev] Object type Coercion error.
> > I am receiving this error:
> > TypeError: Error #1034: Type Coercion failed: cannot convert
[EMAIL PROTECTED] to drawDay.
> >
> > When I run this code:
> > <mx:Repeater
> >     id="dayCells"
> >     dataProvider="{days}"
> >     startingIndex="{weekRows.currentItem}"
> >     count="7">
> >   <ian:dayFormat2
> >        drawData="{drawDay(dayCells.currentItem)}"
> >         test="{dayCells.currentItem.formatedDate}">
> >   </ian:dayFormat2>
> > </mx:Repeater>
> >
> > How can I figure out what kind of object dayCells.currentItem is
being returned by the Repeater control?  {days} is an arrayCollection
of drawDay objects, how can I get the Repeater currentItem to be an
object of the drawDay type?
> >
> > --------------
> > Ian Skinner
> > Web Programmer
> > BloodSource
> > www.BloodSource.org
> > Sacramento, CA
> >
> > ---------
> > | 1 |   |
> > ---------  Binary Soduko
> > |   |   |
> > ---------
> >
> > "C code. C code run. Run code run. Please!"
> > - Cynthia Dunning
> >
> > Confidentiality Notice:  This message including any
> > attachments is for the sole use of the intended
> > recipient(s) and may contain confidential and privileged
> > information. Any unauthorized review, use, disclosure or
> > distribution is prohibited. If you are not the
> > intended recipient, please contact the sender and
> > delete any copies of this message.
> >
> >
> >
> >
> > ----------------------------------------------------------
> > You are subscribed to flex2dev. To unsubscribe, send an email to
[EMAIL PROTECTED] with the words 'unsubscribe flex2dev' as the subject of
the email.
> >
> > Flex2Dev is run by CFCZone (www.cfczone.org) and supported by
CFXHosting (www.cfxhosting.com).
> >
> >
> >
> >
> 
> 
> -- 
> Douglas Knudsen
> http://www.cubicleman.com
> this is my signature, like it?
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to