  

 
<!--

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="BCCreateNew2_Approve_FollowOn">
	
	<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 = "BCCreateNew2_Approve_FollowOn";

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

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

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

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

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

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

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

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


