Given that User#companyId is a Long (I guess), you have to use some kind of 
Editor<Long> (or an IsEditor of some kind of Editor<Long>), which 
ValueListBox<Company> obviously isn't.
You can make it work by *not* using ValueListBox as an editor 
(@Editor.Ignore) and instead implement ValueAwareEditor<User> on the parent: 
explicitly select the company from companyId in setValue, and update 
companyId from the selected Company in flush(). As an alternative, you can 
use a simple LeafValueEditor<Long> for the companyId, that would do the same 
(forward to the ValueListBox) in its setValue and getValue.

As for your second question, well, don't use ValueListBox then; use a 
ListBox instead and manually add items.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/dv6WUIDwCtkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to