  

 
<!--

Sample program for use with the Product
Licensed Materials  - Property of IBM
5724-I66
(c) Copyright IBM Corp.  2006, 2009
   
-->
<%@ 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://www.ibm.com/jsf/html_extended" prefix="hx"%>
<jsp:useBean id="subToDoMessageHandler" scope="session" class="com.ibm.wbit.tel.client.jsf.handler.SubToDoMessageHandler" />
<jsp:useBean id="arrayMetaInfo" scope="session" class="com.ibm.wbit.tel.client.jsf.infrastructure.ArrayMetaInfo" />
<f:loadBundle basename="com.ibm.wbit.tel.client.jsf.infrastructure.messages" var="bundle" />

<f:subview id="SubToDo_in3_ChangeOrder">
	
	<hx:scriptCollector id="scriptCollector">
		<h:panelGrid styleClass="BackgroundSubViewMTD" columns="1"> 
			<h:outputText styleClass="ViewLabelMTD" value="#{bundle['MSG_SUBVIEW_INPUT_MESSAGE']}"/>			
			<h:panelGroup  >
				<h:panelGrid columns="2" styleClass="messageLayout"><% 
	String subViewID1 = "SubToDo_in3_ChangeOrder";


	subToDoMessageHandler.getSubToDoInstance().initInputValuesArray(subViewID1,"/original/OrderItems[]/");
%>  	
</h:panelGrid> 
<h:outputText value=""/>	
<h:dataTable var="root" value="#{subToDoMessageHandler.subToDoInstance.inputValuesArray['/original/OrderItems[]/'].values}" headerClass="ArrayHeader">
	<h:column>			
		<f:facet name="header">	<h:outputText styleClass="ArrayLabel" value="OrderItems"/> </f:facet>
	</h:column>
	<h:column> 
		<h:panelGrid columns="2" styleClass="ArrayEntryHeader" columnClasses="MaxWidth">
			<h:outputText styleClass="ArrayLabel" value="OrderItem" />
			<h:outputText styleClass="MaxWidthFill" value="_"/>	
		</h:panelGrid> <h:outputText value=""/>
 <h:panelGrid columns="2">
<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="Article"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:outputText styleClass="ViewReadOnlyField" value="#{root['Article']}"></h:outputText>

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="ArticleNumber"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:outputText styleClass="ViewReadOnlyField" value="#{root['ArticleNumber']}"></h:outputText>

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="Quantity"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:outputText styleClass="ViewReadOnlyField" value="#{root['Quantity']}"><f:converter converterId="IntegerConverter"/></h:outputText>
 </h:panelGrid>		
	</h:column>
</h:dataTable>
	<h:outputText value="" />
<h:panelGrid columns="2" styleClass="messageLayout">
<h:outputText styleClass="ViewFieldLabel" value="OrderAdresses"/><h:outputText value=""/><h:outputText value=""/>
<h:panelGrid columns="2" styleClass="messageLayout"><h:outputText styleClass="ViewFieldLabel" value="Billing"/><h:outputText value=""/><h:outputText value=""/>
<h:panelGrid columns="2" styleClass="messageLayout">
<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="Name"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:outputText styleClass="ViewReadOnlyField" value="#{subToDoMessageHandler.subToDoInstance.inputValues['/original/OrderAdresses/Billing/Name']}"></h:outputText>

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="Street"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:outputText styleClass="ViewReadOnlyField" value="#{subToDoMessageHandler.subToDoInstance.inputValues['/original/OrderAdresses/Billing/Street']}"></h:outputText>

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="ZipCode"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:outputText styleClass="ViewReadOnlyField" value="#{subToDoMessageHandler.subToDoInstance.inputValues['/original/OrderAdresses/Billing/ZipCode']}"><f:converter converterId="IntegerConverter"/></h:outputText>

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="City"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:outputText styleClass="ViewReadOnlyField" value="#{subToDoMessageHandler.subToDoInstance.inputValues['/original/OrderAdresses/Billing/City']}"></h:outputText>
</h:panelGrid></h:panelGrid><h:outputText value=""/><% 
subToDoMessageHandler.getSubToDoInstance().initInputValuesOptionalBO("/original/OrderAdresses/Shipping");
%>

<h:panelGrid columns="2">
<f:facet name="header"><h:panelGrid columns="2" columnClasses="ArrayHeader #{subToDoMessageHandler.subToDoInstance.inputValuesOptionalBO['/original/OrderAdresses/Shipping'].styledClass}">
<h:outputText value="Shipping" styleClass="ArrayLabel"/>
<h:outputText value=""/>
</h:panelGrid>
</f:facet>
<h:outputText value="Shipping" styleClass="MaxWidthFill"/>
<h:panelGrid columns="1"  rendered="#{subToDoMessageHandler.subToDoInstance.inputValuesOptionalBO['/original/OrderAdresses/Shipping'].visible}">
<h:outputText value=""/>
 <h:panelGrid columns="2">
<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="Name"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:outputText styleClass="ViewReadOnlyField" value="#{subToDoMessageHandler.subToDoInstance.inputValues['/original/OrderAdresses/Shipping/Name']}"></h:outputText>

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="Street"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:outputText styleClass="ViewReadOnlyField" value="#{subToDoMessageHandler.subToDoInstance.inputValues['/original/OrderAdresses/Shipping/Street']}"></h:outputText>

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="ZipCode"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:outputText styleClass="ViewReadOnlyField" value="#{subToDoMessageHandler.subToDoInstance.inputValues['/original/OrderAdresses/Shipping/ZipCode']}"><f:converter converterId="IntegerConverter"/></h:outputText>

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="City"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:outputText styleClass="ViewReadOnlyField" value="#{subToDoMessageHandler.subToDoInstance.inputValues['/original/OrderAdresses/Shipping/City']}"></h:outputText>
 </h:panelGrid></h:panelGrid>
</h:panelGrid>
<h:outputText value=""/><h:panelGrid columns="2" styleClass="messageLayout"></h:panelGrid></h:panelGrid>
			</h:panelGroup>
		</h:panelGrid>
	</hx:scriptCollector>
			  	
</f:subview>


