I did very little today due to a mistake in my modelglue.xml. It turns out I specified:
<event-handler name="register.finish" access="private">
<broadcasts>
<message name="clearNewAccountBean" />
</broadcasts>
<result>
<result name="doEventPage" do="event.advert" redirect="true" append="event" />
<result name="doHomePage" do="pap.home" redirect="true" />
</result>
</event-handler>
See the mistake? The result tag is inside of another “result” tag instead of “results” like it should be in this correct version:
<results>
<result name="doEventPage" do="event.advert" redirect="true" append="event" />
<result name="doHomePage" do="pap.home" redirect="true" />
</results>
How to use the DTD in CFEclipse
Using the DTD, included in the Model-Glue distribution (/ModelGlue/modelglue.dtd), is easy. Just put this at the top of your file (or any included file):
<!DOCTYPE modelglue SYSTEM "../../ModelGlue/modelglue.dtd">
Just set the path to the DTD and XMLBuddy in Eclipse will give you squiggly lines when you jack up the configuration. Enjoy – you will surely have more hair left than I!
Jimmy said:
on January 24, 2008 at 8:47 am
Thank you for this! I was wondering the other day if there was a DTD to validate against but just hadn’t looked yet. I’m sure this will save all ModelGlue developers a good chunk of time.
engtech said:
on January 28, 2008 at 6:13 am
http://sixteencolors.net/packs/1994/uni-1094/NC-PR2.ANS.html
!!!
brian said:
on January 28, 2008 at 8:46 am
Haha – gotta love “Courier WHQ”. This must have been pre-1-800 number. Those were some days!
Doug said:
on January 28, 2008 at 2:30 pm
OK. Who is who here? I know Brian is Mass Delusion, but who is engtech?
(this is lordscarlet, I run Sixteen Colors)
Doug said:
on January 28, 2008 at 4:15 pm
Bah! No contact info for Neurotic.