Hi Guys, i have made a from like :
MyForm extend ActionForm{
list<Menu> MenuList=null;
MyForm(){
super();
setMenuList(); //initialize menu list
}
}
Menu object has string desciption and boolean variable for selected or not.
In web page, i am iterating the list to display all the menus and checkbox over those boolean variables. But the list is set to default every time i want to access the selected items. Is that because of constructor, i have defined ????? Please help me Guys??
Is there any other way to initialize the variables, i had also tried to initialize the list on its getter function, but its giving me a null pointer exception. I was not even able to understand why is this so.