Hope this isn't a double post, but my original posting seems to be in limbo
somewhere...
Hello board,
After watching several of the excellent D2W webcasts, including Dave L's two
part intro, as well as reading much of the wiki D2W docs, I thought it time to
get my hands dirty with D2W. I am trying to add an ERModernLook D2W Edit page
for an ApplicationState entity object, to an already created Wonder project.
By using the below process I've gotten pretty close, but whenever I try to save
edits from the page, it returns with errors telling me I need to enter values
for most of the fields, even though values are entered in the fields. I'm sure
there's some step I overlooked, but can't seem to figure it out. Any ideas?
Steps to add an ERModernLook page in and already existing non-D2W Wonder App:
1. Make sure you have the following libraries imported into your project:
Ajax Framework
ERCoolComponents
ERDirectToWeb
ERModernDefaultSkin
ERModernDirectToWeb
ERModernLook
JavaDirectToWeb
JavaDTWGeneration
WOLips
If you don't do all the above, when you try to bring up your D2W page you'll
get "unable to find component" errors for components such as the WOToolBar,
CCAjax..., etc.
2. Add code something like this to the page from which you will access the
D2W page, using your own entity instead of ApplicationState of course:
public WOActionResults goToAppState() {
EOQualifier appStateFetch = ApplicationState.POOL_TYPE.eq(0);
appState = ApplicationState.fetchRequiredApplicationState(this.compEC,
appStateFetch);
EditPageInterface epi =
(EditPageInterface)D2W.factory().editPageForEntityNamed(ApplicationState.ENTITY_NAME,
Session());
epi.setObject(appState);
epi.setNextPage(this.context().page());
return (WOActionResults)epi;
}
and add a corresponding link to the same page to invoke the above code:
<wo:WOHyperlink action="goToAppState">Set Application
State</wo:WOHyperlink>
3. Create a new Wonder D2W Application and from it copy the PageWrapper and
MenuHeader components into your application.
4. Add the following properties to your project's Properties file
er.component.clickToOpen=true
wolips.password=wo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]