• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Non-D2W component in a D2W app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Non-D2W component in a D2W app


  • Subject: Re: Non-D2W component in a D2W app
  • From: Ramsey Gurley <email@hidden>
  • Date: Fri, 31 Aug 2012 13:24:49 -0700

An ERXComponent?

	public WOActionResults niyAction() {
		return pageWithName("NotImplementedYet");
	}

No need to use the factory if it isn't a D2WComponent.

Ramsey


On Aug 31, 2012, at 12:11 PM, Larry Mills-Gahl wrote:

> 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
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: mac os x 10.8.1 xcode 4.4 FAILED try to compile Web_Objects.so
  • Next by Date: Re: Non-D2W component in a D2W app
  • Previous by thread: Re: mac os x 10.8.1 xcode 4.4 FAILED try to compile Web_Objects.so
  • Next by thread: Re: Non-D2W component in a D2W app
  • Index(es):
    • Date
    • Thread