<HTML>

<!--

Sample program for use with the Product
Licensed Materials  - Property of IBM
5724-I66
(c) Copyright IBM Corp.  2006, 2008
   
-->

<HEAD>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://com.ibm.bpe.jsf/taglib" prefix="bpe"%>
<%
	String contextPath = request.getContextPath();
%>
<link href=<%=contextPath+"/theme/styles.css"%> rel="stylesheet" type="text/css">
<title>My open ToDo's</title>
</HEAD>
<f:view locale="#{userInfo.locale}">
<f:loadBundle basename="com.ibm.wbit.tel.client.jsf.infrastructure.messages" var="bundle" />
<BODY class="NavigationBackgroundLeft">
 
 <table cellpadding="0" cellspacing="0" width="100%">
  <tr>
   <td class="Banner" colspan="2" >		
      <jsp:include page="Banner.jsp" flush="true" />
   </td>
  </tr>
  <tr valign="top">
   <td nowrap="nowrap" width="220">
   	  <jsp:include page="Content.jsp" flush="true" />
   </td>
   <td> 
	<h:form styleClass="BackgroundView">
		<h:panelGrid styleClass="BackgroundViewMTD">
			<h:outputText styleClass="ViewHeadingMTD" value="#{bundle['LINE_TODOS_OPEN']}" />
			<h:outputText styleClass="SelectStatement" value="#{bundle['LINE_TODOS_OPEN_DESCR']}" />
			<h:panelGrid styleClass="BackgroundSubViewMTD" columns="1">
				<bpe:list model="#{toDosOpenListHandler}" styleClass="list"
					rows="20" headerStyleClass="template-headers"
					buttonStyleClass="list-buttons" checkbox="false">
					<bpe:column name="name" action="#{toDoMessageHandler.getNextViewOpenList}" />
					<bpe:column name="description" />
					<bpe:column name="firstActivationTime"  />
					<bpe:column name="originator"  />
				</bpe:list>
			</h:panelGrid>
		</h:panelGrid>

		<h:panelGrid styleClass="commandbar">
			<bpe:commandbar model="#{toDosOpenListHandler}"
				buttonStyleClass="button">
				<bpe:command label="#{bundle['BUTTON_REFRESH']}" commandID="RefreshToDosOpenList" 
				    action="#{toDoMessageHandler.refreshOpenList}" />
			</bpe:commandbar>
		</h:panelGrid>

		<h:outputText styleClass="errorDetailsMessage"
			value="#{bundle['LINE_TODOS_NOT_VALID_ANYMORE']}"
			rendered="#{!toDoMessageHandler.openToDoValid}" />
	</h:form>
  </td>
  </tr>
 </table>
</BODY>
</f:view>
</HTML>

