On Jun 9, 2010, at 9:22 AM, Andrew R. Kinnie wrote:
I am again attempting to use D2W for the admin portion of an
existing app.
Basically, I have an existing site, and wanted to add an admin link
to the home page navigation bar, based on whether the user has
logged in and has admin privileges. When the user clicks on the
link, I want to load a D2W generated admin component into the
AjaxUpdate area for the content. Seems all fairly simple and
straight forward.
I created a new framework, copied the ERModernSkin WSR into its WSR,
added er.modern.look.skinframework = MySitesERModernSkinFramework to
its (i.e. the skin framework's) properties then added the framework
to my app. I also added ERD2W's framework, etc. to the app.
I also created a NavigationMenu.plist, based on the one in
ERModernMoviesDemo, and modified it to present my entities, modified
the session to present my navController and created actions
appropriate to it within it.
Now however, first, none of the ERModernLook css is loading, but I
figure I can fix that later. The big problem is I can click the
link and get a ul of the entities, but when I click an entity link,
I get this error:
com
.webobjects.appserver._private.WODynamicElementCreationException: :
cannot find component or dynamic element named PageWrapper
I don't have a component named PageWrapper (ERModernMoviesDemo
does), I perform that function in my "Main" component. I searched
the ERModernMoviesDemo and found no references to PageWrapper in it,
other than in the class itself.
Is there someplace I can globally change a setting to point to my
Main component? Is this going to work like this at all? The
ERModernMoviesDemo is obviously a self-contained app, and not a
subcomponent within another app that has its own custom html and css.
Any assistance would be appreciated.
Andrew
The page wrapper is typically part of the app rather than the
framework, so if you don't have one, you'll need to designate one. I
believe the D2W key you need is pageWrapperName and you can set it in
the rule with a single assignment. If your Main component is a
wrapper, then it should be simple. You might want to download the
modern look template to have a look at the PageWrapper component in
there, as loading the CSS was a bit more involved.
http://avendasora.svn.beanstalkapp.com/repository/
Ramsey
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]