This content has been marked as final.
Show 2 replies
-
1. Re: Checkbox without being stored to database
sherkan777 Jun 17, 2009 11:04 AM (in response to phoenixknight88)Post your source code for help.
-
2. Re: Checkbox without being stored to database
phoenixknight88 Jun 17, 2009 11:48 AM (in response to phoenixknight88)Hey Thanks for your reply, heres the code for what I have. IN the action I am only echoing out at the moment until I have the info i need.
Seam Page Code:-
<h:selectBooleanCheckbox value="#{customerorderHome.refund[_basketitem]}" id="refundCheckbox" />
Action Code:-
private Map<BasketItem,Boolean> refund = new HashMap<BasketItem,Boolean>();
public Map getRefund()
{
return this.refund;
}
public void releaseAllSeats()
{
for(Map.Entry<BasketItem,Boolean> item : this.refund.entrySet())
{
System.out.println("Test" + item.getKey().getId());
}
this.refund = new HashMap<BasketItem,Boolean>();
}
Thanks