开发者

Are there any attributes to pre select some radio button in <h:selectOneRadio > tag on page lodads

Are there any attributes to pre select some radio button in tag on page lodads

below is my code i want the Now radio button to be selected wh开发者_高级运维en page loads ,

<h:selectOneRadio id="Radios"
    value="#{pc_ClosureDecision.closureDetails.approvalDateSelected}"
    layout="lineDirection" onclick="check_Date()">
     <f:selectItem itemValue="now" itemLabel="Now" />
     <f:selectItem itemValue="later" itemLabel="Resolve Later" />
</h:selectOneRadio></td>


Initialize #{pc_ClosureDecision.closureDetails.approvalDateSelected} with a value of "now" (in the Java code, or by injection in your faces-config.xml).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜