RE: D2JC rule problems
RE: D2JC rule problems
- Subject: RE: D2JC rule problems
- From: Jean Pierre Malrieu <email@hidden>
- Date: Sun, 5 Mar 2006 18:20:53 +0100
Message: 7
Date: Thu, 2 Mar 2006 16:01:50 +1100
From: Ian Joyner <email@hidden>
Subject: D2JC rule problems
To: WebObjects Dev Apple <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
I've followed chapter 17 in JCDA on freezing XML. I seem to be having
two problems with the rules to get my query window loaded. What I
want is for the LHS to be task = 'query' and the RHS should be
keyPath = 'window' and value = 'WindowName'.
I add these rules to the d2w.d2wmodel file of the projects (which
builds in the Application Server target with user.d2wmodel). However,
the rule does not fire or even load (as evidenced by having -
D2WTraceRuleFiringEnabled). So I moved the rule into user.d2wmodel
file, now I see it loads, but does not fire.
Problem no. 1 is why is d2w.d2wmodel not loading?
So I set the LHS to *true* and the rule fires and the changes I made
to the XML take effect, but obviously I don't want this applied to
every window, only to the query window.
Problem no. 2 is why does the LHS of the rule not fire?
These seem like very basic problems (akin to the can't have spaces in
project paths, that killed off using WO for me for a long time), but
thanks for any suggestions.
Ian Joyner
Sportstec
Its been a while that I have not been using D2W or D2JC.
As far as I remember, rules generated by WebAssistant go to:
user.d2wmodel
The rules you write by hand ought to go to:
d2w.d2wmodel
Default rules (in Frameworks) have priority 0.
WebAssistant-generated rules have priority 100.
Your rules (writen by hand) should have priority > 100 if you want
them to override WebAssistant-generated rules.
I may be wrong, but that's what I wrote down as a reminder last time
I worked with D2JC.
JPM
_______________________________________________
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