<%--
  Copyright 2009, Oracle and its affiliates. All rights reserved.
  ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.

  @(#)encodetest.jsp	1.1 06/01/27
--%>

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<html>
  <head>
    <title>encodetest</title>
    <style type="text/css">
      .text {
        background-color: blue;
      }
    </style>
  </head>

  <body>
    <f:view>
      <h:form id="form">
        <h:selectManyCheckbox id="checkbox1">
          <f:selectItem id="checkbox1Item1"
                        itemLabel="foo"
                        itemValue="true" />
          <f:selectItem id="checkbox1Item2"
                        itemLabel="bar"
                        itemValue="false" />
        </h:selectManyCheckbox>
        <h:selectManyCheckbox id="checkbox2"
                              disabledClass="Color: red;"
                              enabledClass="text">
          <f:selectItem id="checkbox2Item1"
                        itemLabel="foo"
                        itemDisabled="true" />
          <f:selectItem id="checkbox2Item2"
                        itemLabel="bar"
                        itemDisabled="false" />
        </h:selectManyCheckbox>
        <h:selectManyCheckbox id="checkbox3"
                              styleClass="text">
          <f:selectItem id="checkbox3Item1"
                        itemLabel="foo" />
          <f:selectItem id="checkbox3Item2"
                        itemLabel="bar" />
        </h:selectManyCheckbox>
        <h:selectManyCheckbox id="checkbox4"
                              disabled="true">
          <f:selectItem id="checkbox4Item1"
                        itemLabel="foo" />
          <f:selectItem id="checkbox4Item2"
                        itemLabel="bar" />
        </h:selectManyCheckbox>
        <h:selectManyCheckbox id="checkbox5"
                              disabled="false">
          <f:selectItem id="checkbox5Item1"
                        itemLabel="foo" />
          <f:selectItem id="checkbox5Item2"
                        itemLabel="bar" />
        </h:selectManyCheckbox>
        <h:selectManyCheckbox id="checkbox6"
                              readonly="true">
          <f:selectItem id="checkbox6Item1"
                        itemLabel="foo" />
          <f:selectItem id="checkbox6Item2"
                        itemLabel="bar" />
        </h:selectManyCheckbox>
        <h:selectManyCheckbox id="checkbox7"
                              readonly="false">
          <f:selectItem id="checkbox7Item1"
                        itemLabel="foo" />
          <f:selectItem id="checkbox7Item2"
                        itemLabel="bar" />
        </h:selectManyCheckbox>
        <h:selectManyCheckbox id="checkbox8">
          <f:selectItem id="checkbox8Item1"
                        itemLabel="foo" />
          <f:selectItem id="checkbox8Item2"
                        itemLabel="bar" />
        </h:selectManyCheckbox>
        <h:selectManyCheckbox id="checkbox9" layout="lineDirection">
          <f:selectItem id="checkbox9Item1"
                        itemLabel="foo" />
          <f:selectItem id="checkbox9Item2"
                        itemLabel="bar" />
        </h:selectManyCheckbox>
        <h:selectManyCheckbox id="checkbox10" layout="pageDirection">
          <f:selectItem id="checkbox10Item1"
                        itemLabel="foo" />
          <f:selectItem id="checkbox10Item2"
                        itemLabel="bar" />
        </h:selectManyCheckbox>
        <h:selectManyCheckbox id="checkbox11" border="11">
          <f:selectItem id="checkbox11Item1"
                        itemLabel="foo" />
          <f:selectItem id="checkbox11Item2"
                        itemLabel="bar" />
        </h:selectManyCheckbox>
        <%-- binding attribute test. --%>
        <h:selectManyCheckbox id="checkbox12" binding="#{Answer.yesNo}"/>
      </h:form>
    </f:view>
  </body>
</html>
