use in your Presenter. Personally, HasValue<Date> for DatePicker and
possibly HasValueChangeHandler<Date> if I needed to execute code when
the date changes. ListBox is a bit more tricky, The
HasChangeHandlers interface will help you listen for changes to the
ListBox but it does not give you the newly selected item or a list of
selected items if there is multiSelect. In full disclosure, my
application breaks with the laws of MVP for ListBox and I track all of
the selected items in the View and use a custom HasValue<List<String>>
to expose the list of selected entries. The String is the value from
the ListBox item because the index is mostly useless outside of the
ListBox.
On Dec 1, 7:09 am, Noor <baken...@gmail.com> wrote:
> Hi, when I am using MVP, i'm getting a problem with some widgets
>
> for textbox we use HasValue but to use for listbox,Date Picker??
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment