<HTML>

<!--

Sample program for use with the Product
Licensed Materials  - Property of IBM
5724-I66
(c) Copyright IBM Corp.  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"%>
<jsp:useBean id="subToDoMessageHandler" scope="session" class="com.ibm.wbit.tel.client.jsf.handler.SubToDoMessageHandler" />
<%
	String contextPath = request.getContextPath();
%>
<link href=<%=contextPath+"/theme/styles.css"%> rel="stylesheet" type="text/css">
<title>Sub ToDo Details</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" columns="1">
			<h:outputText styleClass="ViewHeadingBC" value="#{subToDoMessageHandler.navigationInfo}" />
			<h:outputText styleClass="SelectStatement" value="#{bundle['LINE_SUBTODO_DETAILS_DESCR']}" />
			<%
			String subviewIDInput = subToDoMessageHandler.getSubviewIDInput()+ ".jsp";
			%>
			<jsp:include page="<%=subviewIDInput%>" flush="true" />
			
			<h:panelGrid styleClass="BackgroundSubViewMTD" rendered="#{subToDoMessageHandler.showNotFinishedInfo}" columns="1"> 
				<h:outputText styleClass="ViewLabelMTD"	value="#{bundle['MSG_SUBVIEW_OUTPUT_MESSAGE']}"/>
				<h:outputText styleClass="SelectStatement" value="#{bundle['LINE_SUBTODO_DETAILS_NOT_FINISHED']}" />
			</h:panelGrid>
		
			<%
			String subviewIDOutput = subToDoMessageHandler.getSubviewIDOutput();
			if (subviewIDOutput != null) {
				subviewIDOutput = subviewIDOutput + ".jsp";			
			%>
				<jsp:include page="<%=subviewIDOutput%>" flush="true" />
			<%}%>
		</h:panelGrid>
		<h:panelGrid styleClass="commandbar" rendered="#{subToDoMessageHandler.showUseOutputButton}">
			<bpe:commandbar model="#{toDoMessageHandler}" buttonStyleClass="button">
				<bpe:command label="#{bundle['BUTTON_USE_OUTPUT_MESSAGE']}" commandID="UseOutputDataOfSubToDo"
					commandClass="com.ibm.wbit.tel.client.jsf.command.SubToDoUseOutput"
					context="#{subToDoMessageHandler}" />
			</bpe:commandbar>
		</h:panelGrid>
	</h:form>
   </td>
  </tr>
 </table>
 </BODY>
</f:view>
</HTML>

