I'm afraid I don't agree with you. The repeater is very useful and I have used it many times.
I would argue that you don't know the repeater well enough to condemn it. Perhaps working with it some more would change your mind. --- In flexcoders@yahoogroups.com, "lysfael" <[EMAIL PROTECTED]> wrote: > > Hello all, > > Finally i decided to do the components myself. > It's easier for me like that than using the repeater. > > Finally the repeater isn't that powerful component as i though. When > you wanna do something very generic it doesn't fit to your application > anymore. > > Thanks all for the help. > > I know this conversation will help me later in another project. > > > --- In flexcoders@yahoogroups.com, "Tracy Spratt" <tspratt@> wrote: > > > > If that is really what you want to do, it will work. But still, why not > > let the repeated component handle the formatting? > > > > > > > > Do not subclass repeater, use it normally. > > > > > > > > Create a component containing your label and text inputs. > > > > > > > > Pass the currentItem into your custom component via a setter and in the > > setter invoke the formatting. > > > > > > > > Tracy > > > > > > > > ________________________________ > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > > Behalf Of Ralf Bokelberg > > Sent: Monday, October 20, 2008 8:00 AM > > To: flexcoders@yahoogroups.com > > Subject: Re: [flexcoders] Re: Repeater control and custom Component > > > > > > > > I see. Have you tried a binding function to do this? > > > > <mx:Repeater dataProvider="{ formatData( datas as XML )}" .. > > > > You need to write a method formatData( x : XML ) : XML which creates a > > new formatted XML from the input xml. > > > > Ralf. > > > > On Mon, Oct 20, 2008 at 1:52 PM, lysfael <schwazel@ > > <mailto:schwazel%40gmail.com> > wrote: > > > I wanna format the datas receive before passing them to dataProvider > > > of the repeater. > > > > > > --- In flexcoders@yahoogroups.com > > <mailto:flexcoders%40yahoogroups.com> , "Ralf Bokelberg" > > > > > > <ralf.bokelberg@> wrote: > > >> > > >> I'm not sure if you can subclass mx:Repeater. What are you trying to > > >> do with your repeater subclass? > > >> > > >> Ralf. > > >> > > >> On Mon, Oct 20, 2008 at 12:16 PM, lysfael <schwazel@> wrote: > > >> > Re, > > >> > > > >> > I made a component based on the repeater, to have the control on > > the > > >> > datas. > > >> > > > >> > and i use it like i should use a repeater. > > >> > > > >> > i have an error on the compil. > > >> > > > >> > Symbol > > >> > '_com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil' is > > >> > multiply defined in > > >> > _com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil.as > > >> > and > > >> > > > > > > C:\Code\CC_Views\PB19664_IG_ClientLeger-project_Dev1_View1\vob0003-vob\I > > G_ClientLeger-project-component\IG_ModuleCore\libs\IG_ContactsComponents > > .swc(_com_probtp_IG_ContactsModule_components_F0010WatcherSetupUtil). > > >> > IG_ModuleCore > > >> > > > >> > i use the component like this > > >> > > > >> > <comp:Prep id="F0010_T0056" specialDatas="{datas as XML}"> > > >> > <mx:Button id="F0010_B0031" width="100%"/> > > >> > </comp:Prep> > > >> > > > >> > where the setter specialDatas format the datas and set > > >> > this.dataProvider with the correct datas. > > >> > > > >> > --- In flexcoders@yahoogroups.com > > <mailto:flexcoders%40yahoogroups.com> , "lysfael" <schwazel@> wrote: > > >> >> > > >> >> Hello, > > >> >> > > >> >> Sorry for the absence, > > >> >> > > >> >> These datas are an example of the datas that i get from my > > > HttpService. > > >> >> > > >> >> <lg ID="F0010_T0056-0"> > > >> >> <c ID="F0010_48-0">OUV</c> > > >> >> <c ID="F0010_49-0"></c> > > >> >> <c ID="F0010_50-0">00005</c> > > >> >> </lg> > > >> >> <lg ID="F0010_T0056-1"> > > >> >> <c ID="F0010_48-1">ETA</c> > > >> >> <c ID="F0010_49-1"></c> > > >> >> <c ID="F0010_50-1">00005</c> > > >> >> </lg> > > >> >> > > >> >> These datas should match the repeater F0010_T0056 which contains > > the > > >> >> following components : > > >> >> TextInput Id = F0010_48 > > >> >> Label Id = F0010_49 > > >> >> TextInput Id = F0010_50. > > >> >> > > >> >> In the other post Tom Chiverton told me this > > >> >> > > >> >> "You could use a setter method (i.e. public function set > > >> >> myDatas(d:*):void{}). If you need more control over what happens, > > > or a > > >> >> changeWatcher inside the component observing the public bindable." > > >> >> > > >> >> Like you said i think i'm making it harder than what it needs to > > be. > > >> >> I'll think a bit for a much more simple solution and keep you > > posted. > > >> >> I think to do something like Tom said. > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> --- In flexcoders@yahoogroups.com > > <mailto:flexcoders%40yahoogroups.com> , "Tracy Spratt" <tspratt@> wrote: > > >> >> > > > >> >> > Yes, I still think Lysfael may be approaching this incorrectly, > > >> > probably > > >> >> > making it harder than it needs to be. There is rarely a good > > >> > reason to > > >> >> > use the document model hierarchy to manipulate data driven > > > components. > > >> >> > > > >> >> > > > >> >> > > > >> >> > Lysfael, can you explain again what you are trying to do? > > >> >> > > > >> >> > > > >> >> > > > >> >> > What data is the dataProvider for the repeater? > > >> >> > > > >> >> > > > >> >> > > > >> >> > Is that data different from the data you are trying to show in > > the > > >> >> > repeated controls? > > >> >> > > > >> >> > > > >> >> > > > >> >> > Tracy > > >> >> > > > >> >> > > > >> >> > > > >> >> > ________________________________ > > >> >> > > > >> >> > From: flexcoders@yahoogroups.com > > <mailto:flexcoders%40yahoogroups.com> > > >> > [mailto:flexcoders@yahoogroups.com > > <mailto:flexcoders%40yahoogroups.com> ] On > > >> >> > Behalf Of Amy > > >> >> > Sent: Thursday, October 16, 2008 5:51 PM > > >> >> > To: flexcoders@yahoogroups.com > > <mailto:flexcoders%40yahoogroups.com> > > >> >> > Subject: [flexcoders] Re: Repeater control and custom Component > > >> >> > > > >> >> > > > >> >> > > > >> >> > --- In flexcoders@yahoogroups.com > > <mailto:flexcoders%40yahoogroups.com> > > >> > <mailto:flexcoders%40yahoogroups.com> > > >> >> > , "lysfael" <schwazel@> wrote: > > >> >> > > > > >> >> > > Hello, > > >> >> > > > > >> >> > > Since it's not the same problem as the old one, i post a new > > >> > topic on > > >> >> > > this, i hope this way to do enter in the ToS. > > >> >> > > > > >> >> > > I created a component Box-Based, which contains a repeater > > > and some > > >> >> > > other attributes. > > >> >> > > > > >> >> > > Since my english isn't perfect i'll post part of the code i > > > produced > > >> >> > > and tell you what's the problem now. > > >> >> > > > >> >> > There is no point using a repeater from AS. This is one > > component > > >> > that > > >> >> > you should use in MXML if you want to use it. > > >> >> > > > >> >> > > >> > > > >> > > > >> > > > > > > > > >