0

Databinding radiogroups and save-when

asked 2011-04-11 12:14:30 +0800

cbclark64 gravatar image cbclark64
40 1

I have a databound radiogroup that I want to save its value only when I click the page's Save button. I've added save-when to the radiogroup like this:

<window ....>
    <grid ...>
        <rows>
            <row>
                <label value="Gender" />
                <radiogroup id="genderRG" selectedItem="@{personDetailsView$composer.person.gender,save-when='personDetailsSaveBtn.onClick'}" >
                    <radio label="Male" value="M" />
                    <radio label="Female" value="F" />
                </radiogroup>
            </row>
        </rows>
    ...
    ...
    <button  id="personDetailsSaveBtn" label="Save" forward='onOK' width="75px" />

</window>

However, when I click any item in the radiogroup, an AJAX POST is sent to the server. This is easily seen using Firebug's Net panel. That same technique has worked for other input elements. Has anyone else experienced radiogroups ignoring the save-when option?
(I've created a bug report at Databound radiogroup issue )

Thanks for any assistance.

Chris

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2011-06-22 00:03:10 +0800

billson gravatar image billson
18 1

when i cast Radiogroup to InputElement, it throw error...
maybe my error will help u.

link publish delete flag offensive edit

answered 2011-06-22 03:56:07 +0800

robertpic71 gravatar image robertpic71
1275 1

This issue is fixed already.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-04-11 12:14:30 +0800

Seen: 334 times

Last updated: Jun 22 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More