Where D2W does it "Create" a new object?
Where D2W does it "Create" a new object?
- Subject: Where D2W does it "Create" a new object?
- From: James Cicenia <email@hidden>
- Date: Wed, 27 Jan 2010 14:15:41 -0600
I am trying to use my custom page for a "CreateObject" type operation. However, when I use my custom page there is no temporary new object.
I am using a direction action so do I have to put a CreateAndInsert there? IF so, how do I pass it to my page:
public WOActionResults CreateFestivalAction() { ((Session)session()).currentFestival = (Festival) EOUtilities.createAndInsertInstance(session().defaultEditingContext(), "Festival"); return D2W.factory().pageForConfigurationNamed ("CreateFestival", session()); }
ThanksJames |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden