<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<f:view>
	<h:form>
		<f:loadBundle
			basename="jp.sf.pal.todolist.resources.TodoListResources"
			var="msgs" />
		<h:messages styleClass="portlet-msg-success"
			errorClass="portlet-msg-error" fatalClass="portlet-msg-error"
			warnClass="portlet-msg-alert" infoClass="portlet-msg-info" />

		<h:panelGrid border="0" columns="2">
			<h:outputLabel for="owner">
				<h:outputText value="#{msgs['todolistviewedit.TargetUserName']}"
					styleClass="portlet-form-field" />
			</h:outputLabel>
			<h:inputText id="owner" value="#{todoListViewEditPage.owner}"
				size="30" styleClass="portlet-form-field-label" />

			<h:outputLabel for="number">
				<h:outputText
					value="#{msgs['todolistviewedit.TheNumberOfTodoItem']}"
					styleClass="portlet-form-field" />
			</h:outputLabel>
			<h:inputText id="number" value="#{todoListViewEditPage.pageSize}"
				size="30" styleClass="portlet-form-field-label"
				converter="javax.faces.Integer" required="true">
				<f:validateLongRange minimum="1" />
			</h:inputText>

			<h:commandButton action="#{todoListViewEditPage.save}"
				value="#{msgs['todolistviewedit.Save']}"
				styleClass="portlet-form-button" />
			<h:commandButton action="#{todoListViewEditPage.reset}"
				value="#{msgs['todolistviewedit.Reset']}"
				styleClass="portlet-form-button" />
		</h:panelGrid>
	</h:form>
</f:view>
