java - How to get the selectManyCheckbox value in my bean using valueChangeListener? -
I am trying to get my banking bean user's selection value. I have posted my XHTML code below:
& lt; p: selectManyCheckbox style = "z-index: 1000" id = "gencount" layout = "grid" column = "1" valueChangeListener = "# {subUserBean.degreeFilter}" & gt; & Lt; p: ajax event = "click" /> & Lt; F: selection item item value = "all" items label = "all" /> & Lt; F: selection item item value = "bee" item label = "b" /> & lt; f: select item item value = "btech" item label = "btech" /> & Lt; F: select item item value = "MCA" item label = "MCA" /> & Lt; / p: selectManyCheckbox & gt; Value change listener in my bean:
public zero degree filter (ValueChangeEvent dege) {System.out.println ("Select degree -> "+ Dege.getNewValue () toString ()). } I'm only getting "object value" ["Ljava.lang.String; @ a33ca7", but I need selection values as "BE".
public zero degree filter (ValueChangeEvent dege) {object [objArr = (object [] ) dege.getNewValue (); For (int x = 0; x & lt; objArr.length; x ++) {object obj = objArr [x]; Println (obj.toString ()); Degree = obj.toString (); }}
Comments
Post a Comment