Xpages 电台 btn 组已检查 [英] Xpages radio btn group checked

查看:16
本文介绍了Xpages 电台 btn 组已检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到将单选按钮的选中值设置为 true 的方法...有没有办法在加载 XPage 时始终选中该单选按钮?

I can't find a way to set the checked value to a radio button to true... Is there a way, that one radio button to be always checked when the XPage is loaded?

谢谢,

弗洛林

推荐答案

对于单选按钮控件,有 selectedValue 和 defaultSelected 属性.只要设置了 selectedValue - 它被设置为什么并不重要 - 那么如果 defaultSelected="true" 它将在加载 XPage 时始终被选中.

For a Radio Button control, there is a selectedValue and defaultSelected properties. As long as selectedValue is set - it doesn't matter what it's set to - then if defaultSelected="true" it will be always selected when the XPage is loaded.

对于单选按钮组,您只需将 defaultValue 属性设置为值选项卡上定义的值之一.

For a Radio Button group, you just need to set the defaultValue property to one of the values defined on the Values tab.

这篇关于Xpages 电台 btn 组已检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆