<%@ taglib prefix="c" uri="/WEB-INF/common" %>

<%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>

<f:loadBundle var="bundle" basename="tvark.Resources"/>

<c:body step="#{4}">
    <h:outputFormat value="#{bundle.formatStepTitle}" styleClass="float-title">
        <f:param value="4" />
        <f:param value="#{bundle.titleSa}" />
    </h:outputFormat>
    
    <h:panelGrid columns="2"  styleClass="panel" columnClasses="panel" cellspacing="0">
        <h:outputText value="#{bundle.saIterations}" />
        <h:inputText value="#{paramsSaBean.iterations}" required="true">
            <f:validateLongRange minimum="5" maximum="1000" />        
        </h:inputText>
        
        <h:outputText value="#{bundle.saInitialTemp}" />
        <h:inputText value="#{paramsSaBean.initialTemperature}" required="true">
            <f:validateDoubleRange minimum="100" maximum="10000" />
        </h:inputText>
        
        <h:outputText value="#{bundle.saCoolingRate}" />
        <h:inputText value="#{paramsSaBean.coolingRate}" required="true">
            <f:validateDoubleRange minimum="0.1" maximum="10" />
        </h:inputText>
    </h:panelGrid>
    
    <h:commandButton action="#{paramsSaBean.set}" value="#{bundle.start}" styleClass="button" />
</c:body>
