<?xml version='1.0' encoding='UTF-8' ?><!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><ui:compositionxmlns="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:sand="http://richfaces.org/sandbox"xmlns:a4j="http://richfaces.org/a4j"xmlns:rich="http://richfaces.org/rich"template="./../../template.xhtml"><ui:definename="htmlHead"><title>Focus sample</title></ui:define><ui:definename="header"><ui:includesrc="menu.xhtml"/></ui:define><ui:definename="content"><p>Focus should be placed on first radio :<ul><li>username gets priority 9999</li><li>email gets default priority 1</li></ul></p><h:form><h:panelGridcolumns="3"><h:outputLabelvalue="Username"for="username"/><h:inputTextvalue="#{username}"id="username"required="true"><sand:focuspriority="9999"/></h:inputText><h:messagefor="username"/><h:outputLabelvalue="Option"for="option"/><h:selectOneRadiovalue="#{option}"id="option"required="true"><f:selectItemitemLabel="Option 1"itemValue="1"/><f:selectItemitemLabel="Option 2"itemValue="2"/><f:selectItemitemLabel="Option 3"itemValue="3"/><sand:focussuffix=":0"/></h:selectOneRadio><h:messagefor="option"/></h:panelGrid><h:commandButtonvalue="Submit"/></h:form><rich:insertsrc="#{request.contextPath}/pages/focus/focus_2.xhtml"highlight="html"/></ui:define></ui:composition>