Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes IDEs, Version Control and other tools and the fly likes Netbeans 6.1 webuijsf:Addremove problems. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Netbeans 6.1 webuijsf:Addremove problems." Watch "Netbeans 6.1 webuijsf:Addremove problems." New topic

Netbeans 6.1 webuijsf:Addremove problems.

Brian McFarland

Joined: Oct 10, 2008
Posts: 8
Hi all,

I'm trying to figure out how to use the AddRemove component in Netbeans 6.1 on my page. The page is a user detail page that shows all of the columns for a specified user out of my database table, and the component will be populated with a list of groups or roles from the groups table. The user will be able to shuttle groups to the selected field of the AddRemove component and click the "Done Editing" button and this should insert a new record into the UsersInGroups table which has a relationId column that has a sequence, a userID column corresponding to the user whose record was being viewed, and a groupID corresponding to the groups that were shuttled to the selected pane in the AddRemove component.

This seems like a simple problem but I have been unable to find a similar example. Thanks in advance.

Brian McFarland

Joined: Oct 10, 2008
Posts: 8
To elaborate on the problem some, I've been able to bind the items property with the list from my Groups table which works okay, but I've tried binding the selected property to a number of different arrays and lists from my usersInGroups controller class but in most cases, I'll get an error saying "{0}: Conversion error occurred."
Don't get me started about those stupid light bulbs.
subject: Netbeans 6.1 webuijsf:Addremove problems.
Similar Threads
JSF datagrid component
Debugging HTTP 500
Dynamic forms?
Identifying Selected Row in Table
NX: Record num in TableModel