<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://sakaiproject.org/jsf/sakai" prefix="sakai" %>

<%
		response.setContentType("text/html; charset=UTF-8");
		response.addDateHeader("Expires", System.currentTimeMillis() - (1000L * 60L * 60L * 24L * 365L));
		response.addDateHeader("Last-Modified", System.currentTimeMillis());
		response.addHeader("Cache-Control", "no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0");
		response.addHeader("Pragma", "no-cache");
%>

<f:loadBundle basename="org.sakaiproject.tool.mytool.bundle.Messages" var="msgs"/>

<f:view>
<sakai:view_container title="#{msgs.sample_title}">
<h:form>
	<sakai:view_content>
	   <sakai:panel_edit>
		<h:messages showSummary="true" showDetail="true" />
		<sakai:instruction_message value="#{MyGridTool.outputMessage}" />
                <h:outputText value="#{msgs.grid_host}"/>
		<h:inputText value="#{MyGridTool.proxyHost}"/>
                <h:outputText value="#{msgs.grid_id}"/>
		<h:inputText value="#{MyGridTool.proxyId}" />
                <h:outputText value="#{msgs.grid_pw}"/>
		<h:inputSecret value="#{MyGridTool.proxyPw}" />
	   </sakai:panel_edit>
           <sakai:button_bar>
                <sakai:button_bar_item
                      action="#{MyGridTool.processActionDoIt}"
                      value="#{msgs.grid_submit}" />
           </sakai:button_bar>
	</sakai:view_content>
</h:form>
</sakai:view_container>
</f:view>
