  

 
<!--

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

 String id_1 = subViewID1 + "/original/OrderItems[]/";
 arrayMetaInfo.getMetaInfo(id_1).setMinOccurs(1);
 arrayMetaInfo.getMetaInfo(id_1).setMaxOccurs(100);
	bcCreateMessageHandler.getBcCreateInstance().initInputValuesArray(subViewID1,"/original/OrderItems[]/");
%>  	
</h:panelGrid> 
<h:outputText value=""/>	
<h:dataTable var="root" value="#{bcCreateMessageHandler.bcCreateInstance.inputValuesArray['/original/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="#{!bcCreateMessageHandler.bcCreateInstance.inputValuesArray['/original/OrderItems[]/'].addPossible}"
					action="#{bcCreateMessageHandler.bcCreateInstance.inputValuesArray['/original/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="#{!bcCreateMessageHandler.bcCreateInstance.inputValuesArray['/original/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="originalOrderAdressesBillingName_ID" styleClass="ViewEntryFieldMandatory" value="#{bcCreateMessageHandler.bcCreateInstance.inputValues['/original/OrderAdresses/Billing/Name']}" required="true"/>
<h:message styleClass="errorDetailsValidation" for="originalOrderAdressesBillingName_ID"/>
</h:panelGroup>

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="Street"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:panelGroup>
<h:inputText id="originalOrderAdressesBillingStreet_ID" styleClass="ViewEntryFieldMandatory" value="#{bcCreateMessageHandler.bcCreateInstance.inputValues['/original/OrderAdresses/Billing/Street']}" required="true"/>
<h:message styleClass="errorDetailsValidation" for="originalOrderAdressesBillingStreet_ID"/>
</h:panelGroup>

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="ZipCode"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:panelGroup>
<h:inputText id="originalOrderAdressesBillingZipCode_ID" styleClass="ViewEntryFieldMandatory" value="#{bcCreateMessageHandler.bcCreateInstance.inputValues['/original/OrderAdresses/Billing/ZipCode']}" required="true"><f:converter converterId="IntegerConverter"/></h:inputText>
<h:message styleClass="errorDetailsValidation" for="originalOrderAdressesBillingZipCode_ID"/>
</h:panelGroup>

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="City"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:panelGroup>
<h:inputText id="originalOrderAdressesBillingCity_ID" styleClass="ViewEntryFieldMandatory" value="#{bcCreateMessageHandler.bcCreateInstance.inputValues['/original/OrderAdresses/Billing/City']}" required="true"/>
<h:message styleClass="errorDetailsValidation" for="originalOrderAdressesBillingCity_ID"/>
</h:panelGroup>
</h:panelGrid></h:panelGrid><h:outputText value=""/><% 
bcCreateMessageHandler.getBcCreateInstance().initInputValuesOptionalBO("/original/OrderAdresses/Shipping");
%>

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

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="Street"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:panelGroup>
<h:inputText id="originalOrderAdressesShippingStreet_ID" styleClass="ViewEntryFieldMandatory" value="#{bcCreateMessageHandler.bcCreateInstance.inputValues['/original/OrderAdresses/Shipping/Street']}" required="true"/>
<h:message styleClass="errorDetailsValidation" for="originalOrderAdressesShippingStreet_ID"/>
</h:panelGroup>

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="ZipCode"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:panelGroup>
<h:inputText id="originalOrderAdressesShippingZipCode_ID" styleClass="ViewEntryFieldMandatory" value="#{bcCreateMessageHandler.bcCreateInstance.inputValues['/original/OrderAdresses/Shipping/ZipCode']}" required="true"><f:converter converterId="IntegerConverter"/></h:inputText>
<h:message styleClass="errorDetailsValidation" for="originalOrderAdressesShippingZipCode_ID"/>
</h:panelGroup>

<h:panelGroup>
<h:outputText styleClass="ViewFieldLabel" value="City"/><h:outputText styleClass="ViewFieldMandatory" value="*" />
</h:panelGroup>
<h:panelGroup>
<h:inputText id="originalOrderAdressesShippingCity_ID" styleClass="ViewEntryFieldMandatory" value="#{bcCreateMessageHandler.bcCreateInstance.inputValues['/original/OrderAdresses/Shipping/City']}" required="true"/>
<h:message styleClass="errorDetailsValidation" for="originalOrderAdressesShippingCity_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>


