<%-- $ID: $ --%>
<HTML>

<!--

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

-->

<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="bcCreateMessageHandler" scope="session" class="com.ibm.wbit.tel.client.jsf.handler.BCCreateMessageHandler" />
<%
 	String contextPath = request.getContextPath();
%>
  <link href=<%=contextPath+"/theme/styles.css"%> rel="stylesheet" type="text/css">
  <title>Business Cases Create</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="BackgroundViewBC" columns="1">
			<h:outputText styleClass="ViewHeadingBC" value="#{bcCreateMessageHandler.navigationInfo}" />
			<h:outputText styleClass="SelectStatement" value="#{bundle['LINE_SUBTODO_CREATE_DESCR']}" />
			
			<h:panelGrid columns="2" styleClass="TwoColumnLayout" rowClasses="TwoColumnLayout">
				<h:outputText styleClass="ViewFieldLabel" value="#{bundle['COMBOBOX_SUBTODO']}" />   
				<h:selectOneMenu styleClass="ViewEntryField" 
					value="#{bcCreateMessageHandler.lastSelectedSubToDo}"
					valueChangeListener="#{bcCreateMessageHandler.valueChange}">
			
	    			<f:selectItem itemValue="0"  itemLabel="Approve-FollowOn"/>	
		          	<f:attribute name="componentName0" value="Approve-FollowOn"/>
		          	<f:attribute name="inputMessage0" value="{http://OrderSolution/OrderApproval}operation1RequestMsginputJSF"/>				
				
	    			<f:selectItem itemValue="1"  itemLabel="ChangeOrder"/>	
		          	<f:attribute name="componentName1" value="ChangeOrder"/>
		          	<f:attribute name="inputMessage1" value="{http://OrderSolution/OrderChange}operation1RequestMsginputJSF"/>				
				
	    			<f:selectItem itemValue="2"  itemLabel="Invoke-Order"/>	
		          	<f:attribute name="componentName2" value="Invoke-Order"/>
		          	<f:attribute name="inputMessage2" value="{http://OrderSolution/Order}operation1RequestMsginputJSF"/>				
				
				</h:selectOneMenu>
			</h:panelGrid>
			
			<h:panelGrid styleClass="commandbar">
				<bpe:commandbar model="#{bcCreateMessageHandler}" buttonStyleClass="button">
					<bpe:command label="#{bundle['BUTTON_SUBTODO_USE']}" commandID="SubToDoUse"/>
				</bpe:commandbar>
			</h:panelGrid>
		</h:panelGrid>
	</h:form>
	<h:form styleClass="BackgroundViewBC"> 										
			<%
			String subviewIDInput = bcCreateMessageHandler.getSubviewIDInput(); 
			if (subviewIDInput != null) {
				subviewIDInput = subviewIDInput + ".jsp";			
			%>
				<jsp:include page="<%=subviewIDInput%>" flush="true" />
			<%}%>
	
		<h:panelGrid styleClass="commandbar" rendered="#{bcCreateMessageHandler.commandBarNeeded}">
			<bpe:commandbar model="#{bcCreateMessageHandler}" buttonStyleClass="button">
				<bpe:command label="#{bundle['BUTTON_CREATE']}" commandID="SubToDoCreateNew"
					commandClass="com.ibm.wbit.tel.client.jsf.command.SubToDoCreateNew"/>
			</bpe:commandbar>
		</h:panelGrid>
		
	</h:form>
   </td>
  </tr>
 </table>
</BODY>
</f:view>
</HTML>
