Re: How to put a form on each row within a DataView?

2007-08-08 Thread Igor Vaynberg
if you get duplicate id exception you are probably doing this

populate(Item item) {
  Form f=new Form("f");
  add(form);
}

instead of the correct way:

populate(Item item) {
  Form f=new Form("f");
  item.add(f);
}

-igor


On 8/8/07, Mark van Leeuwen <[EMAIL PROTECTED]> wrote:
>
> Hi
>
>
>
> I have a table which is populated using a DataView.
>
>
>
> Now I have a requirement to add button actions on every row. I tried
> defining a form within a column but get an error that I cannot have
> duplicate ids.
>
>
>
> Can I do this within a DataView component? If not, is there another
> repeater
> type component that can do this?
>
>
>
> Thanks
>
> Mark
>
>


How to put a form on each row within a DataView?

2007-08-08 Thread Mark van Leeuwen
Hi

 

I have a table which is populated using a DataView.

 

Now I have a requirement to add button actions on every row. I tried
defining a form within a column but get an error that I cannot have
duplicate ids.

 

Can I do this within a DataView component? If not, is there another repeater
type component that can do this?

 

Thanks

Mark