• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
D2W Edit page not saving
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

D2W Edit page not saving


  • Subject: D2W Edit page not saving
  • From: Jeff Schmitz <email@hidden>
  • Date: Tue, 24 Jan 2012 20:40:37 -0600

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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Permissions for Startup Script
  • Next by Date: Re: Permissions for Startup Script
  • Previous by thread: Content Mangement systems - SoloWeb, PWDA
  • Next by thread: Re: D2W Edit Page not Saving
  • Index(es):
    • Date
    • Thread