Re: two d2wmodels
Re: two d2wmodels
- Subject: Re: two d2wmodels
- From: Guido Neitzer <email@hidden>
- Date: Wed, 1 Oct 2008 11:56:21 -0700
On 1-Oct-08, at 10:58 AM, David Avendasora wrote:
Multiple model files are a built-in capability of WO.
Yeah, but only in the form, that you can have one rule file per
framework / application as far as I know.
I'm not sure how you apply the concept to context-sensitive rule
files, but the normal way of getting one rule in a d2w.d2wmodel file
to override an identical rule in the user.d2wmodel file is to create
the rule with a _lower_ priority value - like "50".
??
Higher priorities override rules with lower priorities if the left
hand side is the same (or at least of the same relevance).
At least this is how it works for normal D2W and D2JC. How this fits
with WOnder's D2W implementation, I don't know.
Guido?
I normally have a d2w.d2wmodel in any framework that will be picked
automatically and one user.d2wmodel in the app. Additional files are
supported by Wonder as I explained in my last mail. You can name them
whatever you like, just specify the name of the file in the property.
In the end, all rules will get merged and the one with the best
specific left hand side and the highest priority will win.
cug
--
Real World WebObjects Bootcamp at the Big Nerd Ranch:
http://www.bignerdranch.com/classes/real-world_webobjects.shtml
_______________________________________________
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