I am trying to set up a CellTable with a HasDataEditor and it appeared
to work up until I tried to create an ActionCell column that launches
a dialog to edit a list of child objects (ex. My main CellTable edits
"Fields" and my dialog should provide a way to add "Attributes" like
read-only, enabled, etc. to those Fields). This dialog also uses its
own CellTable (although I suppose I could use a simple ListEditor if
need be) but the CellTable never seems to get any information.

I think I am having problems understanding fundamentally how this
would be hooked up and so I am asking

1. How do others usually deal with a situation of modifying lists of
child objects from their CellTable? Do you use a popup or is there
some way to edit them in place that I am not aware of?

2. Does hooking a CellTable up to a HasDataEditor work at all? I saw
old posts from the beginning of 2011 that suggested it did not but
they referenced a bug in 2.2 that appears to be fixed now.

3. If the q1 is "use a popup/dialog" and q2 is true, then how would I
set it up that the ActionCell knows to hook up the proxy it receives
to an editor? I couldn't think of it and thus produced the following
which is obviously wrong (given the error I stated in the paragraph
above):

      ActionCell<AttributeListProxy> presentsCell = new
ActionCell<AttributeListProxy>("Edit...",
            new ActionCell.Delegate<AttributeListProxy>()
            {
               @Override
               public void execute(AttributeListProxy alproxy)
               {
                  // Setup a dialog
                  // Pass in the RequestContext
                  // Start the driver
                  // Launch the dialog
                  plproxy =
requestContext.create(AttributeListProxy.class);
                  AttributeListProxy attributeEditor = new
AttributeListEditor();
                  attributeEditor .setRequestContext(requestContext);
                  attributeEditor .edit(plproxy);
                  attributeEditor .center();
               }
            });

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

Reply via email to