On Wed, 05 May 2010 09:59:04 +0900, "Mark D. Roberts"
<
mrob...@cincom.com>
wrote:
> Rick,
>
> Could you explain in more detail how "it doesn't know that my
> application is glorpified"?
>
> When you are in the Application Editor, can you see your descriptor
> system class on the WebVelocity "Classes" menu?
Nope.. Actually lots of my classes are missing.. See further comments
below..
> My understanding is that WebVelocity expects your application to exist
> in a package. That package also contains a name space that looks like
this:
My application is in a bundle which consists of 22 packages, only one of
which is registered as an 'application' with the package properties..
I've bundle is packaged by functionality with database stuff in one
package, Admin UI stuff in another, Prelogin processing in one more,etc
Perhaps not the best approach...
This may be why most of my classes are missing from the 'Classes' menu
in WV. Currently WV is only listing the 6 classes that reside in the
one 'main' package that defines the entry point for my application..
> Smalltalk.Applications defineNameSpace: #MyApplication
> private: false
> imports: '
> private Smalltalk.*
> private Seaside.*
> '
> category: 'WebVelocity'
Yup.. Mine is more or less the same but the category is different..
Does that matter?
> And thus, your descriptor system classes are expected to look like this:
>
> Applications.SimpleBlogServer defineClass: #MyDescriptorSystem
> superclass: #{Glorp.DescriptorSystem}
> indexedType: #none
> private: false
> instanceVariableNames: ''
> classInstanceVariableNames: ''
> imports: '
> private Glorp.*
> '
> category: 'WebVelocity'
>
> Does all of that check out? Correct name spaces and superclasses?
Yup.. Got this variation.. However, that's in another package..
which I just added the following package properties to :
library : true
namespace : 'Applications.MyApp'
packageName : 'MyAppDB'
What's the best way to architect an application for maximum 'use'
from within WebVelocity? My current application has almost 100
classes and I'd hate to put them all into a single package.. Sure,
some of them are likely to not need editing on a regular basis
(e.g. my Glorp connection pool class) but most are stuff I'd want
regular access to..
Thanks!