i used the method that you provided and like the workbeach example. my hashset
is always have size of only 1 ? i dont understand, since the
selectcheckboxmethod is call so many times, why the size is only 1 all the time.

//this method is called many times ....,but the persists on sysem.out.print(last
line) is //always only 1
public void setCheckboxSelected(boolean bSelected)
    {
        System.out.println(bSelected+"size="+ getSelectedLocales().size());
        
        Set locales = getSelectedLocales();
        
        TheObject objLocale = getCurrentLocale();
        Set setSelectedLocalesx = getSelectedLocales();

        if (bSelected)
        {    locales.add(objLocale);
            System.out.println("adding to hashset");
        }
        else {locales.remove(objLocale);
        
            System.out.println("remove to hashset");
                
        }
        // persist value
       setSelectedLocales(locales);
    
       System.out.println("persist="+getSelectedLocales().size());
        
    
    }


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to