THe idea is to use the Repeater and a Array of typed objects, then
there is no need to worry about if this input is name_1 or name_22.

Repeater id="rpt" dataProvider="{ myData }"...
  <MyCustomForm dataObject="{ rpt.currentItem as DataObject }"....

MyCustomForm would be a custom component exposing a public property
dataObject that is a instance of DataObject, your custom typed object.
 Then to collect data for the server, you just collect a array of
DataObjects grabbing the individual dataObjects in each form
component.

DK

On Sun, Jun 15, 2008 at 9:35 PM, Andy Matthews <[EMAIL PROTECTED]> wrote:
> I thought about using a repeater but I'm stuck on this idea of "naming" each 
> of the textinput fields like I would in ColdFusion:
>
> loop
>    <textinput name="sName+i">
> /loop
>
> But I'm guessing that Repeater doesn't work quite like that. The hardest part 
> is knowing how to get at the values from the input fields, regardless of how 
> I'm creating them.
>
>>Its kind of odd to use a Tile List for this honestly.  For one,
>>doesn't appear TileLists support the idea of itemrenderer as editor.
>>Not saying it can't be used, but IMHO, I'd probably just use a
>>Repeater over a custom window shade type of component.  See Flex lib
>>for what I'm speaking of.  Each of these could have a instance of your
>>data objetc, you are using a typed object, right?  Then it would be
>>cake to gatehr the data and send it away.  You could use the datagrid
>>for this too, but I'm not a huge fan of editable datagrids, rarely
>>touch them over the past year, for one thing they do not support the
>>UI validation paradigm other input controls do.  Read up on the
>>datagrid, once you understand how item editors work you will realize
>>the easy in gathering your edited data and sending on the way.
>>
>>DK
>>
>>
>>>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:5338
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to