Re: WORadiobutton bindings
Re: WORadiobutton bindings
- Subject: Re: WORadiobutton bindings
- From: Frank Stock <email@hidden>
- Date: Mon, 19 Jan 2004 23:01:23 +0100
I already did that,
Now I make use of an WORadiobutionMatrix and that is working!
> If you look at the HTML that is generated, each repetition's radio
> button group has the same "name" attribute. This is obviously
> confusing to the client browser, since it assumes that all the radio
> buttons map to the same field.
>
> The solution is to ensure that each repetition assigns a unique "name"
> value to the radio button input group. You can make use of the "index"
> binding of WORepetition to help with this. Bind the "index" to a
> settable value, and then bind a custom accessor to the "name" of your
> radio button. Something like this (untested)
>
> public String radioButtonName() {
> return "choice".concat(String.valueOf(repetitionIndex + 1));
> }
On Monday, January 19, 2004, at 05:24 AM, Frank Stock wrote:
>> Hi,
>>
>> In order to make an evalution, users have to select a radiobutton
>> (from 1 to 8). One question at a time is no problem. However when I
>> make use of a repetition, the selection they have made is lost after
>> clicking the submit-button.I do a dynamic binding of the radio-group,
>> so when I fill in the values in the database, I can see the selection
>> in my browser, but after submitting, everthing goes back to the
>> initial values.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.