You can set the client side id to something like:
id=${rowZoneId}
public String getRowZoneId() {
return "rowZone-" rowId;
}
That way if you need to update a particular zone you can reference it.
As long as you set rowId to be the same value when you add it to the
MultiZoneUpdate as it was when that row was rendered it should work.
Does that help?
Mark
On Mon, Feb 7, 2011 at 4:34 AM, Yohan Yudanara <[email protected]> wrote:
> Hi,
>
> I've tried MultiZoneUpdate and it's working.
>
> So, I want to change my question:
> We can add/delete rows in AjaxFormLoop, so the zone ids is dynamic. How to
> get available zone ids inside AjaxFormLoop ?
> Do we need to loop it using Javascript and pass it to server side via
> context, or is there any other way ?
>
> Thanks in advance,
>
> Best regards,
> Yohan Yudanara
>
> On Mon, Feb 7, 2011 at 2:35 PM, Yohan Yudanara
> <[email protected]>wrote:
>
>> Hi,
>>
>> I have a Master-Detail Form one page.
>>
>> The Master section, contains a Select Component.
>> The Detail section (which is implemented using AjaxFormLoop), also contain
>> a Select Component.
>>
>> What I want to do is to make Ajax Select:
>> Options in detail's Select Component (which is inside zone in AjaxFormLoop)
>> is depend on what user choose on master's Select Component.
>>
>> I have problem because:
>> * If I'm using zone attribute in master's select component, only the
>> "Select" component in 1st detail record is updated.
>> * If I'm using multizone update, I can't use @InjectComponent to get
>> "Select" components in detail records, because the component id is dynamic
>> (because it's inside AjaxFormLoop).
>>
>> Is there any clue how to do this?
>>
>> Thanks in advance.
>>
>> Best regards,
>> Yohan Yudanara
>>
>>
>>
>>
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]