Brandon,
I traced my problem down to I was trying to do some of the plumbing that
the Editor framework does for me by myself. In particular, my step #3
above was wrong, I shouldn't have been creating a new driver for the
sub-editor; Instead I just had to attach the sub-editor to the list
editor's chain.
I did have to do one hack to make everything flush out properly:
After adding the new object and editor to the chain, i had to fix the
request context for the sub-editor in order to see its changes at flush
time:
RequestFactoryEditorDriver<?, ?> driver = getDriver();
if (driver != null)
{
((BaseEditorDriver<?, ?>) driver).accept(new EditorVisitor()
{
@SuppressWarnings("hiding")
@Override
public <T> void endVisit (EditorContext<T> ctx)
{
RequestFactoryEditorDelegate<?, ?> delegate =
(RequestFactoryEditorDelegate<?, ?>) ctx
.getEditorDelegate();
if (delegate != null)
{
delegate.setRequestContext(context);
}
Editor<T> editor = ctx.getEditor();
if (editor instanceof HasRequestContext)
{
((HasRequestContext<T>)
editor).setRequestContext(context);
}
}
});
}
---------------------------------------------------
Eric Andresen
On Tue, Feb 7, 2012 at 9:46 AM, Brandon Donnelson
<[email protected]>wrote:
> Since I switched to JPA the children (in my case todos) are nto being sent
> back on the persist. getPaths() shows todos, but why is JPA not getting my
> children of the owned collection?
>
> --
> 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/-/zjqPv2ZvNywJ.
>
> 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.
>
--
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.