On 2010-10-07, at 3:53 PM, David Holt wrote:

> I actually think that this is what it should be doing:

Yeah, it should.

> 
> <SafariScreenSnapz003.png>
> 
> <SafariScreenSnapz004.png>
> 
> Any objection to me submitting a patch?

Nope.

> 
> d
> 
> On 2010-10-07, at 12:47 PM, David Avendasora wrote:
> 
>> It's pluralizing just fine for me. Maybe it's the Canadian localized 
>> pluralization?
>> 
>> Dave
>> 
>> On Oct 7, 2010, at 3:39 PM, David Holt wrote:
>> 
>>> Hi all,
>>> 
>>> ERMBatchSizeControl doesn't seem to be pluralizing "item" either. This is 
>>> why I was trying to get ERModernMoviesDemo to run to see if it is just my 
>>> project, or if there is something else going on.
>>> 
>>> <SafariScreenSnapz002.png>
>>> 
>>> Are you seeing "items" or "item"?
>>> 
>>> David
>>> 
>>> 
>>> On 2010-10-07, at 4:15 AM, David Avendasora wrote:
>>> 
>>>> Hi D2Wers,
>>>> 
>>>> When I try to change the number of results in an embedded listing I get  
>>>> "Attempt to insert null object into an  
>>>> com.webobjects.foundation.NSDictionary." (full stack trace below).  I've 
>>>> checked several places where I'm displaying toMany relationships and it 
>>>> throws the error in all of them. If it is not embedded, just a listing of 
>>>> objects that match a query then it works as expected.
>>>> 
>>>> It appears that the ERMBatchSizeControl returns null for d2wContext() when 
>>>> it's tied to an embedded listing.
>>>> 
>>>> Dave
>>>> 
>>>> 
>>>> Oct 07 06:47:09 TotalViewAdminD2W[9191] (TVWApplication.java:283) ERROR 
>>>> er.extensions.appserver.ERXApplication  - Uncaught exception: Attempt to 
>>>> insert null object into an  com.webobjects.foundation.NSDictionary.
>>>> Extra info: {
>>>>    "D2W-SubTask" = "null";
>>>>    "D2W-PageConfiguration" = "ListEmbeddedCCCommunicationIdentity";
>>>>    "CurrentComponent" = 
>>>> "er.modern.directtoweb.components.ERMDBatchSizeControl";
>>>>    "PreviousPageList" = (
>>>>            "QuerySamsStudent",
>>>>            "ListSamsStudent",
>>>>            "InspectSamsStudent"
>>>>    );
>>>>    "D2W-PropertyKey" = "null";
>>>>    "D2W-DisplayPropertyKeys" = (
>>>>            "communication.communicationDate",
>>>>            "role.displayName",
>>>>            "identity.firstname",
>>>>            "identity.lastname",
>>>>            "communication.subject"
>>>>    );
>>>>    "CurrentPage" = "er.modern.look.pages.ERMODTabInspectPage";
>>>>    "Current Account" = "10193338";
>>>>    "URL" = 
>>>> "/cgi-bin/WebObjects/TotalViewAdminD2W.woa/ajax/hV8rQV1q1R2BMjuPYav2xw/5.0.3.5.1.2.3.0.1.0.0.3.3.0.1.3.1263925117.0.1.3.0.1.0.1.3.0.1.3.1.2.0.0.0.0.1.2.3.1.0.3.3.1.1.9.1.0.1.1.0.9";
>>>>    "CurrentComponentHierarchy" = (
>>>>            "er.modern.look.pages.ERMODTabInspectPage",
>>>>            
>>>> "er.modern.directtoweb.components.repetitions.ERMDInspectPageRepetition",
>>>>            "er.directtoweb.components.relationships.ERDList",
>>>>            "er.directtoweb.embed.ERXD2WList",
>>>>            "er.directtoweb.components.ERD2WSwitchComponent",
>>>>            "er.modern.look.pages.ERMODListPage",
>>>>            "er.modern.directtoweb.components.ERMDBatchSizeControl"
>>>>    );
>>>>    "D2W-EntityName" = "CCCommunicationIdentity";
>>>>    "D2W-ComponentName" = "ERD2WDisplayString";
>>>>    "Headers" = {
>>>>            "user-agent" = "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 
>>>> 10_6_4; en-us) AppleWebKit/533.18.1 (KHTML, like Gecko) Version/5.0.2 
>>>> Safari/533.18.5";
>>>>            "cookie" = "__utmc=188508456; 
>>>> __utma=188508456.1010180370.1286383408.1286383408.1286383408.1; 
>>>> __utmz=188508456.1286383408.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)";
>>>>            "origin" = "http://10.0.1.8:9191";;
>>>>            "accept" = "text/javascript, text/html, application/xml, 
>>>> text/xml, */*";
>>>>            "referer" = 
>>>> "http://10.0.1.8:9191/cgi-bin/WebObjects/TotalViewAdminD2W.woa/wo/hV8rQV1q1R2BMjuPYav2xw/3.0.3.5.1.2.3.0.1.0";;
>>>>            "content-type" = "application/x-www-form-urlencoded; 
>>>> charset=UTF-8";
>>>>            "accept-encoding" = "gzip, deflate";
>>>>            "content-length" = "27";
>>>>            "x-prototype-version" = "1.6.1";
>>>>            "original_context_id" = "5";
>>>>            "x-requested-with" = "XMLHttpRequest";
>>>>            "host" = "10.0.1.8:9191";
>>>>            "accept-language" = "en-us";
>>>>            "connection" = "keep-alive";
>>>>    };
>>>>    "Current User" = "Reed Ckeade";
>>>> }
>>>> 
>>>> IllegalArgumentException: Attempt to insert null object into an  
>>>> com.webobjects.foundation.NSDictionary.
>>>>   at com.webobjects.foundation.NSDictionary.<init>(NSDictionary.java:170)
>>>>   at 
>>>> er.modern.directtoweb.components.ERMDBatchSizeControl.setNumberOfObjectsPerBatch(ERMDBatchSizeControl.java:177)
>>>>      ... skipped 21 stack elements
>>>>   at 
>>>> ognl.helperfunction.WOHelperFunctionKeyValueAssociation.setValue(WOHelperFunctionKeyValueAssociation.java:21)
>>>>   at er.ajax.AjaxInPlaceEditor.handleRequest(AjaxInPlaceEditor.java:168)
>>>>      ... skipped 232 stack elements
>>>>   at er.ajax.AjaxRequestHandler.handleRequest(AjaxRequestHandler.java:17)
>>>>      ... skipped 1 stack elements
>>>>   at 
>>>> er.extensions.appserver.ajax.ERXAjaxApplication.dispatchRequest(ERXAjaxApplication.java:50001)
>>>>      ... skipped 1 stack elements
>>>>   at 
>>>> com.k12.totalview.app.TVWApplication.dispatchRequestImmediately(TVWApplication.java:50001)
>>>>   at 
>>>> com.k12.totalview.app.Application.dispatchRequestImmediately(Application.java:50001)
>>>>      ... skipped 1 stack elements
>>>>   at 
>>>> com.k12.totalview.app.TVWApplication.dispatchRequest(TVWApplication.java:213)
>>>>   at com.k12.totalview.app.Application.dispatchRequest(Application.java:42)
>>>>   ... skipped 3 stack elements
>>>> 
>>>> _______________________________________________
>>>> 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/programmingosx%40mac.com
>>>> 
>>>> This email sent to [email protected]
>>> 
>> 
> 
> _______________________________________________
> 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/dleber_wodev%40codeferous.com
> 
> This email sent to [email protected]

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog:   http://davidleber.net
profile:        http://www.linkedin.com/in/davidleber
twitter:        http://twitter.com/rebeld
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org




 _______________________________________________
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]

Reply via email to