Yes, that's a good use of the value. The "item" is the display text, the "value" is the string submitted with the form to the server. If you use the ListBox#addItem(String) method, they are one in the same.
Thanks, John LaBanca jlaba...@google.com On Fri, Mar 11, 2011 at 8:27 PM, Sebastian Coronado A. <sca...@gmail.com>wrote: > Hello I was checking ListBox's methods and I found this one: > > addItem(java.lang.String item, java.lang.String value) > Adds an item to the list box, specifying an initial value > for the item. > > I dont get how to use the "value" parameter with a FormPanel. I wanted > to store ids from database in that parameter, Can I use it for that > purpose?. > > regards > > -- > 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. > > -- 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.