Mailing List webobjects-dev@wocommunity.org Message #430
From: Ray Kiddy <ray@ganymede.org>
Subject: Re: [WO-DEV] Re: Load additional D2W models?
Date: Wed, 22 Feb 2023 13:07:37 -0800
To: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
[x] None pf the above

:--)

D2W is an amazing technology and we may, some day, discover how to make the way inference rule engines work more understandable.

I banged my head against just this issue a while back. I had a Docklet (if you can remember what the heck that is) that would let you drop an eomodeld onto it, and it would generate and launch a D2W app for that model. I wanted to, with a running app, drop another eomodeld onto the (java) app icon and have it do the right thing. Aside from the Dock things, getting the dynamic loading to work reliably was not easy and was not getting easier as I learned more.

I think that if a D2W app could dynamically load additional models, it would be more compelling, perhaps doing a better job of being a data admin interface. But I might juts be too weird. Who knows.

cheers - ray

On 2/22/23 11:58, Markus Ruggiero (rucotec) wrote:
Please tick
[  ] Nobody knows anything
[  ] Nobody ever had such an idea and does not care
[  ] Nobody out there anymore

On 21 Feb 2023, at 15:38, Markus Ruggiero (rucotec) <markus.ruggiero@rucotec.ch <mailto:markus.ruggiero@rucotec.ch>> wrote:

I found this property “er.directtoweb.ERD2WModel.additionalModelNames” that can be use to load additional D2W model files. I want to make this property dynamic so that its list of model names is built from a directory scan of the resources folder (or a subfolder) and all models found are loaded. This would allow to have models built around some grouping criteria like e.g. per entity without having to manually maintain the list of names in the properties file. I am in a prototype phase where I play extensively with a rather extensive EOModel, adding and removing entities. Such functionality would be great to have.

Anyone done something like this? When during app startup would be a good time to build this list? I think it must be done before D2W is initialized. Probably application.run() right before calling super.run() might already be too late?

Open for any tip, idea, help, code snippets, whatever.
Thanks a lot

---markus---




*
Markus Ruggiero*

*
*

rucotec GmbHwebhttps://rucotec.ch <https://rucotec.ch>
Leonhardsberg 1 emailmarkus.ruggiero@rucotec.ch <mailto:markus.ruggiero@rucotec.ch>
4051 Basel / Switzerlandmobile+41 79 508 4701








Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster