| <!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:h="http://java.sun.com/jsf/html" |
| xmlns:f="http://java.sun.com/jsf/core"> |
| |
| <ui:composition template="template.jsf"> |
| <ui:define name="title"> |
| <h:outputText |
| value="#{viewLeague.leagueId}: #{viewDivision.division.name}" /> |
| </ui:define> |
| <ui:define name="subtitle"> |
| <h:outputText value="Create Team" /> |
| </ui:define> |
| <ui:define name="crumb1"> |
| <h:commandLink value="MySports" action="index" /> |
| </ui:define> |
| <ui:define name="crumb2"> |
| <h:commandLink value="#{viewLeague.leagueId}" |
| action="#{viewLeague.view}" /> |
| </ui:define> |
| <ui:define name="crumb3"> |
| <h:commandLink value="#{viewLeague.currentDivision.name}" |
| action="#{viewDivision.view}" /> |
| </ui:define> |
| <ui:define name="body"> |
| <h:form> |
| |
| <h:panelGrid width="100%" columns="2" border="1" styleClass="pretty"> |
| <f:facet name="header"> |
| <div align="right"> |
| <h:commandButton action="#{createTeam.save}" value="Save" /> |
| |
| <h:commandButton action="#{createTeam.cancel}" value="Cancel" /> |
| </div> |
| </f:facet> |
| <h:outputLabel value="Name:" /> |
| <h:inputText value="#{createTeam.team.name}" size="80"/> |
| <h:outputLabel value="Division: " /> |
| <h:outputLabel value="#{createTeam.currentDivision.name}" /> |
| </h:panelGrid> |
| |
| <h:dataTable binding="#{createTeam.dataTable}"> |
| </h:dataTable> |
| |
| </h:form> |
| </ui:define> |
| </ui:composition> |
| </html> |