• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to load target list of picklist from backend?

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am using jboss-seam-2.2.0.GA and ricfaces.In my application I want to preload my piclist with values from backend. My picklist is

<rich:pickList id="pickuser" copyAllControlLabel="AssignAll"
copyControlLabel="Assign" removeAllControlLabel="UnAssign All"
removeControlLabel="UnAssign" listsHeight="200"
value="#{userRoles.selectedUsers}" >
<f:selectItems value="#{userRoles.userNameList}" />
</rich:pickList>

and the corresponding seam component is :

@Stateful
@Scope(ScopeType.SESSION)
@Name("userRoles")
public class UserRolesBean implements UserRoles {
private List<SelectItem> userNameList = new ArrayList<SelectItem>();
private List selectedUsers = new ArrayList();

private List<SelectItem> userNameList = new ArrayList<SelectItem>();

//setters and getters
}

I have set the selectedUsers with the list of selected users form backend.But it was not getting displayed on the target list of picklist.

I have also tried using a converter.But then I gort error converter not found.If anyone have any idea please share.

Thanks,
Deeps
 
reply
    Bookmark Topic Watch Topic
  • New Topic