• 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: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'


  • Subject: Re: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'
  • From: Mark Gowdy <email@hidden>
  • Date: Thu, 07 Jan 2016 18:59:02 +0000


On 7 Jan 2016, at 18:45, Chuck Hill <email@hidden> wrote:

Is there a stack trace?  It would be useful to know which object it was looking up “value” on.

It is on the component that holds the commented WOString.  So, in the case of ERQMAjaxUpdateContainer:

<com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException message '[<er.jqm.components.core.ERQMAjaxUpdateContainer name: er.jqm.components.core.ERQMAjaxUpdateContainer subcomponents: null > valueForKey()]: lookup of unknown key: 'value'. The WOComponent er.jqm.components.core.ERQMAjaxUpdateContainer does not have an instance variable of the name value or _value, nor a method of the name value, _value, getValue, or _getValue' object '<er.jqm.components.core.ERQMAjaxUpdateContainer name: er.jqm.components.core.ERQMAjaxUpdateContainer subcomponents: null >' key 'value’>

When I put this into Main.html
<!-- <wo:WOString value="$now" /> —>

Is says:
<com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException message '[<com.msp.components.Main name: com.msp.components.Main subcomponents: {0 = <com.msp.components.WrapperA name: com.msp.components.WrapperA subcomponents: null >; } > valueForKey()]: lookup of unknown key: 'value'. The WOComponent com.msp.components.Main does not have an instance variable of the name value or _value, nor a method of the name value, _value, getValue, or _getValue' object '<com.msp.components.Main name: com.msp.components.Main subcomponents: {0 = <com.msp.components.WrapperA name: com.msp.components.WrapperA subcomponents: null >; } >' key 'value'>

Also worth mentioning, that I tweaked ERQMAjaxUpdateContainer.html to use the WOD type binding instead, and that works fine.
<wo:genericContainer elementName="$elementName" otherTagString="$otherTagString">
  <!-- _ju:<webobject name = "elementID"/> -->
  <wo:content />
  <!-- _ju:<webobject name = "elementID"/> -->
</wo:genericContainer>
——
elementID : WOString {
  value = _javascript_ElementID;
}

Very odd indeed.

Mark



From: <webobjects-dev-bounces+chill=email@hidden> on behalf of Mark Gowdy <email@hidden>
Date: Thursday, January 7, 2016 at 8:52 AM
To: "email@hidden" <email@hidden>
Subject: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'

Hi, 

Short Story:
The problem (in my app) appears to be that put a WOstring in an html comment (with an WOGNL $ binding), it throws [ lookup of unknown key: ‘value’. ]  e.g.
<!-- <wo:WOString value="$now" /> —>


Long Story:
I am trying out ERJQMobile (instead of Ajax.framework) because it uses jQuery.
(Hoping that it won’t clash with other jQuery libraries as much as the Ajax ones does)

ERQMAjaxUpdateContainer.html contains this
-------
<wo:genericContainerelementName="$elementName"otherTagString="$otherTagString">
  <!-- _ju:<wo:WOString value = "$_javascript_ElementID" /> -->
  <wo:content/>
  <!-- _ju:<wo:WOString value = "$_javascript_ElementID" /> -->
</wo:genericContainer>
-------

In the example (jQueryMobileExample), it works great and 
  <wo:ERQMAjaxUpdateContainerid="AUCShowValues">
renders as:
  <div id="AUCShowValues">
  <!-- _ju:AUCShowValues —>
  ..
  .. etc


In my app it throw [ lookup of unknown key: ‘value’ ]

The problem (in my app) appears to be that put a WOstring in a comment (with an WOGNL $ binding), it fails to work.

I demonstrated this by trying:
<!-- <wo:WOString value="$now" /> —>
and the same issue occurs (lookup of unknown key: ‘value')

Notes that the following do work as expected:
<wo:WOString value="$now" />
<!-- <wo:WOString value="hello" /> —>

There must be some setting I have missed, but I cannot see any obvious differences between the ‘example’ and my code.
I have tried changing -WOIncludeCommentsInResponse, but that didn’t make any difference.

Any ideas?

Thanks, 

Mark Gowdy



_________________
Mark Gowdy
Gowdy Associates Ltd
M: +44 7808 400 941
Skype: markgowdy




 _______________________________________________
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

  • Follow-Ups:
    • Re: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'
      • From: Chuck Hill <email@hidden>
References: 
 >ERQMAjaxUpdateContainer : lookup of unknown key: 'value' (From: Mark Gowdy <email@hidden>)
 >Re: ERQMAjaxUpdateContainer : lookup of unknown key: 'value' (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'
  • Next by Date: Re: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'
  • Previous by thread: Re: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'
  • Next by thread: Re: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'
  • Index(es):
    • Date
    • Thread