• 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: Couldn't find dynamic page in your DirectToWeb Model?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Couldn't find dynamic page in your DirectToWeb Model?


  • Subject: Re: Couldn't find dynamic page in your DirectToWeb Model?
  • From: Ramsey Gurley <email@hidden>
  • Date: Wed, 07 Dec 2011 13:49:49 -0700

Something is definitely goofy though. The rule system in ERD2W is set up to figure out the entity from the pageConfiguration name.  If James has an entity named PortfolioProject already, it should be finding that in entityForPageConfiguration in ERDDefaultModelAssignment.

Ramsey

On Dec 7, 2011, at 1:46 PM, David LeBer wrote:

> Shouldn't it be something like:
>
> pageConfiguration = 'ListProtfolioProject'  => entity = "PortfolioProject" [EntityAssignment]
>
> (Notice the assignment object type)
>
> --
> David LeBer
> Codeferous Software
>
> On 2011-12-07, at 3:26 PM, David Holt wrote:
>
>> entity.name
>>
>>
>> On 2011-12-07, at 10:46 AM, James Cicenia wrote:
>>
>>> So I set two rules
>>>
>>> pageConfiguration = 'ListProtfolioProject' entityName = "PortfolioProject"
>>>
>>> This is not a wonder project but I am including some frameworks.
>>>
>>> I still get the same error.
>>>
>>> Other thoughts?
>>>
>>> Thanks
>>> James
>>>
>>>
>>>
>>> On Dec 7, 2011, at 11:41 AM, David Holt wrote:
>>>
>>>> You need to have an entity assigned to the page configuration.
>>>>
>>>> You probably are used to the default assignments doing the work for you, but if your entity isn't PortfolioProject the default assignment won't be able to interpret "ListPortfolioProject" correctly.
>>>>
>>>> Is this an array of EOs?
>>>>
>>>>
>>>> On 2011-12-07, at 9:34 AM, James Cicenia wrote:
>>>>
>>>>> I am trying to do something like the following:
>>>>>
>>>>>    	ListPageInterface lpi = (ListPageInterface)D2W.factory().pageForConfigurationNamed("ListPortfolioProject", session());
>>>>>    	EOArrayDataSource ds = new EOArrayDataSource(null, session().defaultEditingContext());
>>>>> 	ds.setArray(reportItems);
>>>>> 	lpi.setNextPage(this.context().page());
>>>>> 	return (WOActionResults)lpi;
>>>>>
>>>>> but it crashes on pageForConfigurationNamed ...
>>>>>
>>>>>
>>>>>
>>>>> [2011-12-7 11:32:24 CST] <WorkerThread0> <com.webobjects.appserver._private.WOComponentRequestHandler>: Exception occurred while handling request:
>>>>> java.lang.IllegalStateException: Couldn't find the dynamic page named ListPortfolioProject in your DirectToWeb model.
>>>>> [2011-12-7 11:32:24 CST] <WorkerThread0> java.lang.IllegalStateException: Couldn't find the dynamic page named ListPortfolioProject in your DirectToWeb model.
>>>>> 	at com.webobjects.directtoweb.D2W._dynamicPageNamed(D2W.java:975)
>>>>> 	at com.webobjects.directtoweb.D2W.pageForConfigurationNamed(D2W.java:966)
>>>>> 	at com.tos.reports.ReportPickConfig.runCustom(ReportPickConfig.java:268)
>>>>>
>>>>> What am I missing?
>>>>>
>>>>> Thanks
>>>>> James
>>>>> _______________________________________________
>>>>> 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
>
> _______________________________________________
> 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

References: 
 >Couldn't find dynamic page in your DirectToWeb Model? (From: James Cicenia <email@hidden>)
 >Re: Couldn't find dynamic page in your DirectToWeb Model? (From: David Holt <email@hidden>)
 >Re: Couldn't find dynamic page in your DirectToWeb Model? (From: James Cicenia <email@hidden>)
 >Re: Couldn't find dynamic page in your DirectToWeb Model? (From: David Holt <email@hidden>)
 >Re: Couldn't find dynamic page in your DirectToWeb Model? (From: David LeBer <email@hidden>)

  • Prev by Date: Re: Couldn't find dynamic page in your DirectToWeb Model?
  • Next by Date: Re: Now gives me a Factory error.
  • Previous by thread: Re: Couldn't find dynamic page in your DirectToWeb Model?
  • Next by thread: Re: Couldn't find dynamic page in your DirectToWeb Model?
  • Index(es):
    • Date
    • Thread