Re: [html-formfu] multiple ids of the same value in radiogroup

2007-09-25 Thread Mario Minati
On Monday 24 September 2007 20:56:53 Brian Cassidy wrote: > Carl Franks wrote: > > Are you using auto_id() ? > > If you are, this should already be handled for you, by adding an > > incremented integer to the end of the ID. > > See lib/HTML/FormFu/Element/RadioGroup.pm - sub _prepare_id() > > Ah ye

Re: [html-formfu] multiple ids of the same value in radiogroup

2007-09-24 Thread Brian Cassidy
Carl Franks wrote: Are you using auto_id() ? If you are, this should already be handled for you, by adding an incremented integer to the end of the ID. See lib/HTML/FormFu/Element/RadioGroup.pm - sub _prepare_id() Ah yes, $self->auto_id( '%n_%c' ); -- should that be the default for things lik

Re: [html-formfu] multiple ids of the same value in radiogroup

2007-09-24 Thread Carl Franks
On 24/09/2007, Brian Cassidy <[EMAIL PROTECTED]> wrote: > Hey Gang, > > I was just playing around with the Radiogroup element, and i noticed the > default rendering sets the same id for each option. Naturally this is > invalid html. Traditionally i've done value="$value" id="${field}_${value}" />

Re: [html-formfu] multiple ids of the same value in radiogroup

2007-09-24 Thread Mario Minati
On Monday 24 September 2007 15:54:50 Brian Cassidy wrote: > Hey Gang, > > I was just playing around with the Radiogroup element, and i noticed the > default rendering sets the same id for each option. Naturally this is > invalid html. Traditionally i've done value="$value" id="${field}_${value}" /

[html-formfu] multiple ids of the same value in radiogroup

2007-09-24 Thread Brian Cassidy
Hey Gang, I was just playing around with the Radiogroup element, and i noticed the default rendering sets the same id for each option. Naturally this is invalid html. Traditionally i've done value="$value" id="${field}_${value}" /> for="${field}_${value}">... because the value is usually a num