Blame view

samples/radio-sample/src/main/webapp/index.xhtml 1.05 KB
bernard authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich"
      xmlns:radio="http://richfaces.org/sandbox/radio">
<head>
    <title>Radio sample</title>
</head>

<body class="rich-container">
<ui:include src="menu.xhtml"/>
Selected option:#{radioBean.selectedOption}
<h:form>
    <radio:selectOneRadio id="radio" value="#{radioBean.selectedOption}">
        <f:selectItem itemValue="January" itemLabel="January"/>
        <f:selectItem itemValue="February" itemLabel="February"/>
        <f:selectItem itemValue="March" itemLabel="March"/>
    </radio:selectOneRadio>

    <radio:radio for="radio" index="0"/>
    Some other thing.
    <radio:radio for="radio" index="2"/>
    <h:commandButton value="Submit"/>
</h:form>
<rich:insert src="/index.xhtml" highlight="xhtml"/>

</body>
</html>