• 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: D2W Problem in new application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W Problem in new application


  • Subject: Re: D2W Problem in new application
  • From: Flavio Donadio <email@hidden>
  • Date: Thu, 30 Oct 2014 13:06:21 -0200

David,


I didn't modify this file, it's the default:

{
 "rules" = (
   {
     "author" = "20";
     "class" = "com.webobjects.directtoweb.Rule";
     "rhs" = {
       "class" = "com.webobjects.directtoweb.Assignment";
       "keyPath" = "appScreenStylesheet";
       "value" = {
         "filename" = "customizations.css";
         "framework" = "app";
         "media" = "screen";
       };
     };
   },
   {
     "author" = "30";
     "class" = "com.webobjects.directtoweb.Rule";
     "rhs" = {
       "class" = "com.webobjects.directtoweb.Assignment";
       "keyPath" = "stylesheets";
       "value" = (
         "defaultMainScreenStylesheet",
         "defaultMainPrintStylesheet",
         "datepickerStylesheet",
         "appScreenStylesheet"
       );
     };
   },
   {
     "author" = "40";
     "class" = "com.webobjects.directtoweb.Rule";
     "rhs" = {
       "class" = "com.webobjects.directtoweb.Assignment";
       "keyPath" = "navigationState";
       "value" = "Home";
     };
   },
   {
     "author" = "60";
     "class" = "com.webobjects.directtoweb.Rule";
     "lhs" = {
       "class" = "com.webobjects.eocontrol.EOAndQualifier";
       "qualifiers" = (
         {
           "class" = "com.webobjects.eocontrol.EOKeyValueQualifier";
           "key" = "task";
           "selectorName" = "isEqualTo";
           "value" = "edit";
         },
         {
           "class" = "com.webobjects.eocontrol.EOKeyValueQualifier";
           "key" = "smartAttribute.className";
           "selectorName" = "isEqualTo";
           "value" = "java.lang.String";
         },
         {
           "class" = "com.webobjects.eocontrol.EOKeyValueQualifier";
           "key" = "smartAttribute.width";
           "selectorName" = "isGreaterThanOrEqualTo";
           "value" = {
             "class" = "java.lang.Number";
             "value" = "110";
           };
         }
       );
     };
     "rhs" = {
       "class" = "com.webobjects.directtoweb.Assignment";
       "keyPath" = "componentName";
       "value" = "ERD2WEditString";
     };
   },
   {
     "author" = "100";
     "class" = "com.webobjects.directtoweb.Rule";
     "rhs" = {
       "class" = "com.webobjects.directtoweb.Assignment";
       "keyPath" = "look";
       "value" = "ERModernLook";
     };
   },
   {
     "author" = "100";
     "class" = "com.webobjects.directtoweb.Rule";
     "rhs" = {
       "class" = "com.webobjects.directtoweb.BooleanAssignment";
       "keyPath" = "isEntityEditable";
       "value" = "true";
     };
   },
   {
     "author" = "100";
     "class" = "com.webobjects.directtoweb.Rule";
     "rhs" = {
       "class" = "com.webobjects.directtoweb.BooleanAssignment";
       "keyPath" = "isEntityDeletable";
       "value" = "true";
     };
   },
   {
     "author" = "100";
     "class" = "com.webobjects.directtoweb.Rule";
     "lhs" = {
       "class" = "com.webobjects.eocontrol.EOAndQualifier";
       "qualifiers" = (
         {
           "class" = "com.webobjects.eocontrol.EOKeyValueQualifier";
           "key" = "RuleIsDisabled";
           "selectorName" = "isEqual";
           "value" = "YES";
         },
         {
           "class" = "com.webobjects.eocontrol.EOKeyValueQualifier";
           "key" = "pageConfiguration";
           "selectorName" = "isLike";
           "value" = "EditRelationship*";
         }
       );
     };
     "rhs" = {
       "class" = "com.webobjects.directtoweb.BooleanAssignment";
       "keyPath" = "useAjaxControls";
       "value" = "false";
     };
   },
   {
     "author" = "100";
     "class" = "com.webobjects.directtoweb.Rule";
     "lhs" = {
       "class" = "com.webobjects.eocontrol.EOAndQualifier";
       "qualifiers" = (
         {
           "class" = "com.webobjects.eocontrol.EOKeyValueQualifier";
           "key" = "task";
           "selectorName" = "isEqualTo";
           "value" = "inspect";
         },
         {
           "class" = "com.webobjects.eocontrol.EOKeyValueQualifier";
           "key" = "smartRelationship.isToMany";
           "selectorName" = "isEqualTo";
           "value" = {
             "class" = "java.lang.Number";
             "value" = "1";
           };
         }
       );
     };
     "rhs" = {
       "class" = "com.webobjects.directtoweb.Assignment";
       "keyPath" = "componentName";
       "value" = "ERDList";
     };
   },
   {
     "author" = "100";
     "class" = "com.webobjects.directtoweb.Rule";
     "lhs" = {
       "class" = "com.webobjects.eocontrol.EOAndQualifier";
       "qualifiers" = (
         {
           "class" = "com.webobjects.eocontrol.EOKeyValueQualifier";
           "key" = "smartRelationship";
           "selectorName" = "isNotEqualTo";
           "value" = {
             "class" = "com.webobjects.foundation.NSKeyValueCoding$Null";
           };
         },
         {
           "class" = "com.webobjects.eocontrol.EOKeyValueQualifier";
           "key" = "smartRelationship.isToMany";
           "selectorName" = "isEqualTo";
           "value" = {
             "class" = "java.lang.Number";
             "value" = "0";
           };
         },
         {
           "class" = "com.webobjects.eocontrol.EOKeyValueQualifier";
           "key" = "task";
           "selectorName" = "isEqualTo";
           "value" = "inspect";
         }
       );
     };
     "rhs" = {
       "class" = "com.webobjects.directtoweb.Assignment";
       "keyPath" = "componentName";
       "value" = "ERD2WDisplayToOne";
     };
   }
 );
}


Cheers,

Flavio Donadio
<email@hidden>
---------------------------------------------------------------
Codeprint - Soluções em Identificação e Captura de Dados
Atibaia, SP - Brasil
Fone: +55 11 2119-3006
Fax: +55 11 2119-3005
http://www.codeprint.com.br

On 29/10/2014, at 18:21, David Holt <email@hidden> wrote:

> what is in your user.d2wmodel file?
>
>
> On Oct 29, 2014, at 12:46 PM, Flavio Donadio <email@hidden> wrote:
>
>> Hello, all!
>>
>>
>> I am getting this error when I run the app for the first time:
>>
>> [2014-10-29 17:37:34 BRST] <WorkerThread1> <br.com.codeprint.website.DirectAction>: Exception in performActionNamed() on the action "login" with the message: com.webobjects.directtoweb.D2WModelException: Error - could not find any rule that returns a pageName using the current context <D2WContext task=list, entity=Product, propertyKey=null, pageConfiguration=null>
>> - Error with action login:com.webobjects.directtoweb.D2WModelException: Error - could not find any rule that returns a pageName using the current context <D2WContext task=list, entity=Product, propertyKey=null, pageConfiguration=null>, formValues:{username = (""); password = (""); wosid = ("WnGhLWoSK3H0Bvw752rq0g"); WOSubmitAction = ("login"); }
>> com.webobjects.directtoweb.D2WModelException: Error - could not find any rule that returns a pageName using the current context <D2WContext task=list, entity=Product, propertyKey=null, pageConfiguration=null>
>> 	at com.webobjects.directtoweb.D2WContext.pageName(D2WContext.java:734)
>> 	at com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:874)
>> 	at com.webobjects.directtoweb.D2W._pageWithContextTaskEntity(D2W.java:859)
>> 	at com.webobjects.directtoweb.D2W.pageForTaskAndEntityNamed(D2W.java:896)
>> 	at com.webobjects.directtoweb.D2W.listPageForEntityNamed(D2W.java:1034)
>> 	at br.com.codeprint.website.MainNavigationController.listPageForEntityName(MainNavigationController.java:32)
>> 	at br.com.codeprint.website.MainNavigationController.homeAction(MainNavigationController.java:26)
>> 	at br.com.codeprint.website.DirectAction.loginAction(DirectAction.java:72)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> 	at java.lang.reflect.Method.invoke(Method.java:601)
>> 	at com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
>> 	at er.extensions.appserver.ERXDirectAction.performActionNamed(ERXDirectAction.java:418)
>> 	at er.directtoweb.ERD2WDirectAction.performActionNamed(ERD2WDirectAction.java:456)
>> 	at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259)
>> 	at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
>> 	at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
>> 	at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
>> 	at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
>> 	at java.lang.Thread.run(Thread.java:722)
>>
>> It's a new application and I triple-checked the boilerpate code that should go into MainNavigationController.java. NavigationMenu.plist also seems to be good.
>>
>> d2w.d2wmodel is empty, which seems strange. I had never looked into that file before, I think.
>>
>> I still did not implement authentication, but changed the code according to the tutorial at http://wiki.wocommunity.org/display/WEB/Your+First+D2W+Project .
>>
>> Eclipse 4.4 (Luna) and WOLips 4.4 compiled by myself.
>>
>>
>> Cheers,
>> Flavio
>> _______________________________________________
>> 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: 
 >D2W Problem in new application (From: Flavio Donadio <email@hidden>)
 >Re: D2W Problem in new application (From: David Holt <email@hidden>)

  • Prev by Date: Re: D2W Problem in new application
  • Next by Date: [MEET] Toronto CocoaHeads / tacow - November 12
  • Previous by thread: Re: D2W Problem in new application
  • Next by thread: Re: D2W Problem in new application
  • Index(es):
    • Date
    • Thread