-
SELECTED select menu??
I am not sure how seam allows me to select if the selectedPaymentMethod has the defaultflag. I was just told the defaultflag holds the value. My job is to make it the first in the SelectList if it holds the true value.
So I thought maybe a c:choose tree might work?
Code:
<c:choose>
<c:when test="#{customerSession.selectedPaymentMethod.defaultFlag} == true">
<s:selectItems id="billing01_payments" var="_var"
label="#{_var.formattedAddress}"
value="#{customerSession.payments}" />
</c:when>
<c:otherwise>
<s:selectItems id="billing01_payments" var="_var"
label="#{_var.formattedAddress}" noSelectionLabel="New Card"
value="#{customerSession.payments}" />
</c:otherwise>
</c:choose>
Does anyone know how to make this work? Sure not as easy as ASP classic. LOL
-
Backing Bean?
This wont work at all will it? :(
Something has to be done in the backing bean correct?