Xpages radio btn group checked

人走茶凉 提交于 2019-12-11 08:09:36

问题


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?

Thanks,

Florin


回答1:


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.

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



来源:https://stackoverflow.com/questions/25601183/xpages-radio-btn-group-checked

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!