Highlighting values inside listbox
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   karthik_vijayarajan
Posted On:   Friday, September 8, 2006 07:38 AM

Hi I have a listbox in my JSP and am trying to make a few values inside the listbox as selected. My listbox code in JSP looks like styleClass="selectManyListbox" id="lstRoleList" value="#{userBean.roleList}" valueChangeListener="#{pc_Update.handleLstRoleListValueChange}" onchange="return func_11(this, event);"> So,in the constructor of my backing bean,i do this. getUserBean().setRoleList(someList); This someList is an arraylist containing Long objects But the values i am setting here in the backing bean are not showing up as selected in the JSP. Can someone pls help me in    More>>

Hi
I have a listbox in my JSP and am trying to make a few values inside the listbox as selected.
My listbox code in JSP looks like

			

styleClass="selectManyListbox" id="lstRoleList"
value="#{userBean.roleList}"
valueChangeListener="#{pc_Update.handleLstRoleListValueChange}"
onchange="return func_11(this, event);">





So,in the constructor of my backing bean,i do this.
getUserBean().setRoleList(someList);


This someList is an arraylist containing Long objects

But the values i am setting here in the backing bean are not showing up as selected in the JSP.


Can someone pls help me in getting thru this?




Thanks
Karthik    <<Less

Re: Highlighting values inside listbox

Posted By:   Anonymous  
Posted On:   Friday, September 8, 2006 03:50 PM

Well we don't know what getUserBean() does. Does it pull the bean from the FacesContext? More code is better. You said userBean.roleList returns Longs, does roleDropDown.selItemlist return Longs? or SelectItems?
About | Sitemap | Contact