I have a Java Bean with a Method that returns an Object of type PaymentItem
Payments.getItem(viewScope.vsRIndex);
this method returns the nth item from an ArrayList<PaymentItem>
I have a button on my main page that renders a Custom Control on that on the main page and sets the viewScope to the correct index value.
<xp:panel id="panelPaymentEntry"
rendered="#{javascript:(viewScope.vsShowPayment) ? true : false;}">
<xc:ccCOMPaymentInput></xc:ccCOMPaymentInput>
</xp:panel><!-- panelPaymentEntry -->
I want to set the dataSource for ccCOMPaymentInput to the PaymentItem returned by Payments.getItem(viewScope.vsRIndex)
I added this code to the createObject
try{
Payments.getItem(viewScope.vsRIndex);
}catch(e){
//do nothing
}
with the var = pItem
But does not appear that the Object pItem has been created. Am I on the right track? or ?????