I'm having difficulty calling a generic component from a wonder D2W app navigation bar. I want to use a "not implemented yet " page as a stub for features/sections that are not yet implemented.
I have a NavigationMenu.plist entry
[...]
{
name = "users";
directActionName = "niy";
directActionClass = "DirectAction";
queryBindings = {page="users";};
},
{
name = "facilities";
directActionName = "niy";
directActionClass = "DirectAction";
queryBindings = {page="facilites";};
},
{
name = "system";
directActionName = "niy";
directActionClass = "DirectAction";
queryBindings = {page="system";};
}
[...]
I have an ERXComponent named NotImplementedYet and a direct action in my
subclass of ERD2WDirectAction:
public WOActionResults niyAction() {
return
ERD2WFactory.erFactory().pageForConfigurationNamed("NotImplementedYet",
session());
}
I started out with a componentName assignment but then after looking at
http://wiki.wocommunity.org/display/documentation/Adding+a+Normal+WOComponent+Page+to+an+ERModernLook+based+application
I replaced that with the following rules:
100 : pageConfiguration = 'NotImplementedYet' => entity = "Center"
[com.webobjects.directtoweb.EntityAssignment]
100 : pageConfiguration = 'NotImplementedYet' => task = "inspect"
[com.webobjects.directtoweb.Assignment]
100 : pageConfiguration = 'NotImplementedYet' => templateNameForInspectPage =
"NotImplementedYet" [com.webobjects.directtoweb.Assignment]
I have not been able to successfully get the NotImplementedYet component to
display in this context. I keep getting the error that is described in the wiki
page:
java.lang.IllegalStateException: Couldn't find the dynamic page named
NotImplementedYet in your DirectToWeb model.task and entity is null, it seems
that one model, maybe ERDirectToWeb d2w.d2wmodel is not loaded!
I know that the wiki example uses a method bound to the "action" in the
navigation plist, but I would expect that the directActionName binding and
action binding would behave similarly (especially since I am seeing the error
after it finds niyAction)
I feel like I'm spinning out in the wrong direction because I feel like it
should be easier than this (although adding a dummy entity for this is
understandable ... wait a minute, what if I changed the pageConfiguration rules
to "pageConfiguration like "*NotImplementedYet"... nope... same thing.
I'm going to put this down for a moment and see if I can catch a glimpse of the
simple, elegant, WOnderful solution out of the corner of my eye. If anybody has
any suggestions, I'd be very grateful.
Thank you.
Larry Mills-Gahl
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
