Hi, I have two beans: public class User implements IsSerializable { ... private companyId; // fk to companies ... }
and: public class Company implements IsSerializable { ... private Long id; private String name; ... } This is my UI Code: <g:ValueListBox ui:field="companyId"></g:ValueListBox> And this is my Java code for my ValueListBox: @UiField(provided = true) ValueListBox<Company> companyId = new ValueListBox<Company>(new Renderer<Company>() { @Override public String render(Company object) { // TODO Auto-generated method stub return object != null ? object.getName() : ""; } @Override public void render(Company object, Appendable appendable) throws IOException { // TODO Auto-generated method stub } }); How can I do to fill the User.companyId value when I do user = driver.flush(); ? Another question that I have about ValueListBox is how can I render each item by pairs of value / text? I mean, something like <option value="8">Company x</option><option value="10">Company Y</option> Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. 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.