• 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
First attempt at D2W HELP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

First attempt at D2W HELP


  • Subject: First attempt at D2W HELP
  • From: Theodore Petrosky <email@hidden>
  • Date: Thu, 9 Sep 2010 08:34:40 -0700 (PDT)

I created a new Wonder D2W app and imported my Model from a project I was working on. I am following along with David's D2W overview and playing with rules.

So I clicked on the user.d2wmodel file and rulemodeler fired up and I added in the isEntityEditable = "true" rule.
>From the preview:

{
    author = 100;
    class = "com.webobjects.directtoweb.Rule";
    rhs =     {
        class = "com.webobjects.directtoweb.BooleanAssignment";
        keyPath = isEntityEditable;
        value = true;
    };
}

but nothing I do seems to make this rule available. I quit eclipse (352) and rulemodeler. relaunched eclipse and ran my app but it is as if my user.d2wmodel file doesn't exist.

It's there is the Resources folder and if I click it, the file the opens is what I expect.

this:
    public WOComponent listUsers() {

    	ListPageInterface lpi = (ListPageInterface)D2W.factory().listPageForEntityNamed(User.ENTITY_NAME, session());
    	EODatabaseDataSource ds =  new EODatabaseDataSource(ERXEC.newEditingContext(), User.ENTITY_NAME);
    	lpi.setDataSource(ds);
    	lpi.setNextPage(this.context().page());

    	return (WOComponent)lpi;
    }

in my MenuHeader.java and the link in the html worked beautifully.

is there anything obvious I am doing wrong?

Ted



 _______________________________________________
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

  • Follow-Ups:
    • Re: First attempt at D2W HELP
      • From: David Holt <email@hidden>
  • Prev by Date: Re: Renaming instanceIdKey - Why Does This Work?
  • Next by Date: Re: First attempt at D2W HELP
  • Previous by thread: Re: Renaming instanceIdKey - Why Does This Work?
  • Next by thread: Re: First attempt at D2W HELP
  • Index(es):
    • Date
    • Thread