On Friday, October 21, 2011 8:32:51 AM UTC+2, Maiku wrote:
>
> Hello, 
>
> I have a case for a dialog that operates very similar to the CellList 
> example included in the Showcase. That is, I need to have the ability 
> to add items to a list, select them, and display a form (within the 
> same dialog) for the selected item. 
>
> I was trying to set it up with an implementation combination of 
> HasDataEditor and ValueAwareEditor but even if I get the value from 
> the CellList's SelectionModel I don't get how I can set the values on 
> an editor that is dynamically displayed. (I thought maybe of using 
> another RequestFactoryEditorDriver on the inner editor but this 
> doesn't seem to work...)
>

That's how you should do it: a distinct RequestFactoryEditorDriver.
We're doing just that, so I can guarantee that it works (or can be made to 
work).

You'd maybe want to also implement HasRequestContext so you can pass the 
same RequestContext to the "child" RequestFactoryEditorDriver that you use 
in the "parent one".

Then during my searches I found some very small amount of information 
> on ValuePicker. However, I cannot grasp from the code or sparse 
> documentation whether ValuePicker (as the name implies) is made for 
> picking an option out of a preset list (like selecting an enum value) 
> or for getting the value from a dynamic list for use in a separate 
> editor?
>

The former.

But that (probably, you'd have to try it) doesn't preclude the latter usage; 
you wouldn't use the ValuePicker as an editor by itself though, just as a 
widget around a CellList (that CellList would be be used with an 
HasDataEditor to populate it "dynamically").

-- 
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/-/ofGOoXw9nCAJ.
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.

Reply via email to