[WireHose-dev] Edit Object Question
Gary Teter
bigdog at wirehose.com
Wed Dec 26 18:24:06 EST 2007
The editingObject needs to be localized into the helper's
childEditingContext, not the session default ec.
Sent from my iPhone
On Dec 26, 2007, at 2:55 PM, James Cicenia <james at jimijon.com> wrote:
> Hello -
>
> I am back on this project and I am wondering why when I do the
> following:
>
> public WHEditObjectPage edit(){
> System.out.println("AdminProductDetail.edit");
> WHEditObjectPage nextPage = (WHEditObjectPage)pageWithName
> ( helper().nameForPage("WHEditObjectPage") );
> helper().setEditingObject(EOUtilities.localInstanceOfObject(session
> ().defaultEditingContext(), product()));
> helper().setReturnPageName(helper().currentPage());
> return nextPage;
> }
>
> It goes to my edit page just fine, but, when I save the changes the
> current object becomes null and when it then goes back to the return
> page above it of course throws all sorts of NPEs.
>
> What am I doing wrong here?
>
> Thanks
> _______________________________________________
> WireHose-dev mailing list
> WireHose-dev at public.codefab.com
> http://public.codefab.com/mailman/listinfo/wirehose-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.codefab.com/pipermail/wirehose-dev/attachments/20071226/2c0c30f5/attachment.html
More information about the WireHose-dev
mailing list