In View define a: HasConstrainedValue getMyListValueWidget(); in Presenter: view.getMyListValueWidget().setAcceptableValue(values); driver.edit();
On Jul 15, 11:16 am, vinayak kulkarni <[email protected]> wrote: > I agree with you to call setAcceptableValue() before driver.edit > > But, i have a different problem.. I need to edit the subEditor, which is > ValueListBox > > Presenter call driver.edit() on a widget ModelView. > > ModelView has inner widget(sub editor) ValueListBox ex: > > ModelView implements Editor<Model> > .. Model attributes with direct mapping > ValueListBox listValues; > > Now, presenter doesnt know the inner widget(subEditor) ValueListBox. > Presenter directly edits the Model.. ie. driver.edit(Model).. which inturn > should call the subeditor to flush the values. > > In this case, how to call the setAcceptableValues() from the presenter > itself? > > It is that, we need to make the abstraction between View and Presenter and > also use the editor mechanism from presenter to edit the view. > > Let me know if there is any other way to do it. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
