  

 
<!--

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="toDoMessageHandler" scope="session" class="com.ibm.wbit.tel.client.jsf.handler.ToDoMessageHandler" />
<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="ToDo_out2_ChangeOrder">
	
	<hx:scriptCollector id="scriptCollector">
		<h:panelGrid styleClass="BackgroundSubViewMTD" columns="1"> 
 			<h:outputText styleClass="ViewLabelMTD" value="#{bundle['MSG_SUBVIEW_OUTPUT_MESSAGE']}"/>			
			<h:panelGroup binding="#{panelGroup.instance}" >
				<h:panelGrid columns="2" styleClass="messageLayout"><% 
	String subViewID1 = "ToDo_out2_ChangeOrder";

 String id_1 = subViewID1 + "/changed/OrderItems[]/";
 arrayMetaInfo.getMetaInfo(id_1).setMinOccurs(1);
 arrayMetaInfo.getMetaInfo(id_1).setMaxOccurs(100);
	toDoMessageHandler.getToDoInstance().initOutputValuesArray(subViewID1,"/changed/OrderItems[]/");
%>  	
</h:panelGrid> 
<h:outputText value=""/>	
<h:dataTable var="root" value="#{toDoMessageHandler.toDoInstance.outputValuesArray['/changed/OrderItems[]/'].values}" headerClass="ArrayHeader">
	<h:column>			
		<f:facet name="header">	<h:outputText styleClass="ArrayLabel" value="OrderItems"/> </f:facet>
	</h:column>
	<h:column>
		<f:facet name="header">
			<h:panelGrid columns="2" columnClasses="MaxWidth"> 
				<h:outputText value="" /> 
       			<h:commandLink value="#{bundle['MSG_ARRAY_ADD_ENTRY']}" styleClass="NavigationLink"
       				binding="#{commandLink.instance}"
					disabled="#{!toDoMessageHandler.toDoInstance.outputValuesArray['/changed/OrderItems[]/'].addPossible}"
					action="#{toDoMessageHandler.toDoInstance.outputValuesArray['/changed/OrderItems[]/'].addRow}"/>
			</h:panelGrid>
		</f:facet> 
		<h:panelGrid columns="2" styleClass="ArrayEntryHeader" columnClasses="MaxWidth">
			<h:outputText styleClass="ArrayLabel" value="OrderItem" />
			<h:commandLink value="#{bundle['MSG_ARRAY_REMOVE_ENTRY']}"  styleClass="NavigationLink"
				binding="#{commandLink.instance}"
				disabled="#{!toDoMessageHandler.toDoInstance.outputValuesArray['/changed/OrderItems[]/'].removePossible}"
				action="#{root['~REMOVE~'].removeRow}"/>	
		</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:panelGroup>
<h:inputText id="Article_ID" styleClass="ViewEntryFieldMandatory" value="#{root['Article']}" required="true"/>
<h:message styleClass="errorDetailsValidation" for="Article_ID"/>
</h:panelGroup>

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="ArticleNumber"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:panelGroup>
<h:inputText id="ArticleNumber_ID" styleClass="ViewEntryFieldMandatory" value="#{root['ArticleNumber']}" required="true"/>
<h:message styleClass="errorDetailsValidation" for="ArticleNumber_ID"/>
</h:panelGroup>

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="Quantity"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:panelGroup>
<h:inputText id="Quantity_ID" styleClass="ViewEntryFieldMandatory" value="#{root['Quantity']}" required="true"><f:converter converterId="IntegerConverter"/></h:inputText>
<h:message styleClass="errorDetailsValidation" for="Quantity_ID"/>
</h:panelGroup>
 </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:panelGroup>
<h:inputText id="changedOrderAdressesBillingName_ID" styleClass="ViewEntryFieldMandatory" value="#{toDoMessageHandler.toDoInstance.outputValues['/changed/OrderAdresses/Billing/Name']}" required="true"/>
<h:message styleClass="errorDetailsValidation" for="changedOrderAdressesBillingName_ID"/>
</h:panelGroup>

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="Street"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:panelGroup>
<h:inputText id="changedOrderAdressesBillingStreet_ID" styleClass="ViewEntryFieldMandatory" value="#{toDoMessageHandler.toDoInstance.outputValues['/changed/OrderAdresses/Billing/Street']}" required="true"/>
<h:message styleClass="errorDetailsValidation" for="changedOrderAdressesBillingStreet_ID"/>
</h:panelGroup>

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="ZipCode"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:panelGroup>
<h:inputText id="changedOrderAdressesBillingZipCode_ID" styleClass="ViewEntryFieldMandatory" value="#{toDoMessageHandler.toDoInstance.outputValues['/changed/OrderAdresses/Billing/ZipCode']}" required="true"><f:converter converterId="IntegerConverter"/></h:inputText>
<h:message styleClass="errorDetailsValidation" for="changedOrderAdressesBillingZipCode_ID"/>
</h:panelGroup>

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="City"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:panelGroup>
<h:inputText id="changedOrderAdressesBillingCity_ID" styleClass="ViewEntryFieldMandatory" value="#{toDoMessageHandler.toDoInstance.outputValues['/changed/OrderAdresses/Billing/City']}" required="true"/>
<h:message styleClass="errorDetailsValidation" for="changedOrderAdressesBillingCity_ID"/>
</h:panelGroup>
</h:panelGrid></h:panelGrid><h:outputText value=""/><% 
toDoMessageHandler.getToDoInstance().initOutputValuesOptionalBO("/changed/OrderAdresses/Shipping");
%>

<h:panelGrid columns="2">
<f:facet name="header"><h:panelGrid columns="2" columnClasses="ArrayHeader #{toDoMessageHandler.toDoInstance.outputValuesOptionalBO['/changed/OrderAdresses/Shipping'].styledClass}">
<h:outputText value="Shipping" styleClass="ArrayLabel"/>
<h:commandLink binding="#{commandLink.instance}" value="#{toDoMessageHandler.toDoInstance.outputValuesOptionalBO['/changed/OrderAdresses/Shipping'].label}" styleClass="NavigationLink" action="#{toDoMessageHandler.toDoInstance.outputValuesOptionalBO['/changed/OrderAdresses/Shipping'].show}" />
</h:panelGrid>
</f:facet>
<h:outputText value="Shipping" styleClass="MaxWidthFill"/>
<h:panelGrid columns="1"  rendered="#{toDoMessageHandler.toDoInstance.outputValuesOptionalBO['/changed/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:panelGroup>
<h:inputText id="changedOrderAdressesShippingName_ID" styleClass="ViewEntryFieldMandatory" value="#{toDoMessageHandler.toDoInstance.outputValues['/changed/OrderAdresses/Shipping/Name']}" required="true"/>
<h:message styleClass="errorDetailsValidation" for="changedOrderAdressesShippingName_ID"/>
</h:panelGroup>

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="Street"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:panelGroup>
<h:inputText id="changedOrderAdressesShippingStreet_ID" styleClass="ViewEntryFieldMandatory" value="#{toDoMessageHandler.toDoInstance.outputValues['/changed/OrderAdresses/Shipping/Street']}" required="true"/>
<h:message styleClass="errorDetailsValidation" for="changedOrderAdressesShippingStreet_ID"/>
</h:panelGroup>

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="ZipCode"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:panelGroup>
<h:inputText id="changedOrderAdressesShippingZipCode_ID" styleClass="ViewEntryFieldMandatory" value="#{toDoMessageHandler.toDoInstance.outputValues['/changed/OrderAdresses/Shipping/ZipCode']}" required="true"><f:converter converterId="IntegerConverter"/></h:inputText>
<h:message styleClass="errorDetailsValidation" for="changedOrderAdressesShippingZipCode_ID"/>
</h:panelGroup>

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="City"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:panelGroup>
<h:inputText id="changedOrderAdressesShippingCity_ID" styleClass="ViewEntryFieldMandatory" value="#{toDoMessageHandler.toDoInstance.outputValues['/changed/OrderAdresses/Shipping/City']}" required="true"/>
<h:message styleClass="errorDetailsValidation" for="changedOrderAdressesShippingCity_ID"/>
</h:panelGroup>
 </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>


