<f:view>
<h:form>
   <h:panelGrid>
      <h:outputText value="合言葉は? " />
      <h:inputText id="word" required="true">
         <f:validator validatorId="to.msn.wings.jsf.custom.WordValidator"/>
      </h:inputText>
      <h:message for="word"/>
      <h:commandButton value="Submit" action="success"/>
   </h:panelGrid>
</h:form>