Given this type of xml (I have trimmed most of the fat from it). Where a FareSheet has Fares which in turn have many Fare. The repeater would be bound: with row-path="FareSheet/Fares/Fare"
Each row in the repeater will have a drop down of DepartCity. The end result is a grid with each fare presented asking the user to choose the DepartCity. Surly this is not an unusal scenario. Some of the xml I have left out has date ranges for the depart date and we need the user to choose the date from this range. Seat allocation is done using a list of available seats and the user chooses with a radio button. How would you do this? <!-------- xml fragment -----------> <FareSheet Active="Y" > <Fares> <Fare Name="FARE A:" Via="" Class="Y"> <DepartCity ="From="ADL"/> <DepartCity ="From="BNE"/> <DepartCity ="From="DRW"/> </Fare> <Fare Name="FARE B:" To="SIN" Via="" Class="Y"> <DepartCity ="From="DRW"/> <DepartCity ="From="SYD"/> <DepartCity ="From="PER"/> </Fare> </Fares> </FareSheet> ----- Original Message ----- From: "Bruno Dumon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 27, 2003 6:02 AM Subject: Re: [Woody] field with selection-list (nice to have). > On Wed, 2003-11-26 at 03:59, Joe Latty wrote: > > Sorry to nag about selection lists but a nice to have would be > > something like > > > > <wd:field id="city"> > > <wd:datatype base="string"/> > > <wd:selection-list> > > <wd:repeater id="cityList"> > > <wd:option value="cityCode" label="cityName> > > </wd:repeater> > > </wd:selection-list> > > </wd:field> > > > > Then you could have a drop down list or use > > <wi:styling type="checkbox|radio"/> > > Putting a repeater inside a selection-list makes no sense, why would you > want to do that? > > Radio button styling is already there, use: > <wi:styling list-type="radio"/> > > Checkbox styling is available if you use the multivaluefield widget: > <wi:styling list-type="checkbox"/> > > -- > Bruno Dumon http://outerthought.org/ > Outerthought - Open Source, Java & XML Competence Support Center > [EMAIL PROTECTED] [EMAIL PROTECTED] >
