Found the problem, but it does smell a bit like a can of worms.

It explodes when I add this to the newly created HelloWorld.app Properties file:
ognl.parseStandardTags=true

My test Main.html has:
        <!-- <wo:str value="$someString" />   -->
        <p class="$someString">Hello</p>

I use wognl in standard tags a lot.

Thoughts?

Mark


> On 7 Jan 2016, at 19:21, Mark Gowdy <[email protected]> wrote:
> 
> When I tried a new vanilla “Hello World” wonder project, it worked fine:
> <!-- <wo:str value="$someString" /> -->
> (I probably should have tried the first).
> 
> I will start adding in my usual additional, and see when it breaks.
> Will post a solution when I find it.
> 
> Thanks, 
> 
> Mark
> 
> 
>> On 7 Jan 2016, at 19:05, Chuck Hill <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> That is indeed a very odd bug.
>> 
>> From: Mark Gowdy <[email protected] <mailto:[email protected]>>
>> Date: Thursday, January 7, 2016 at 10:59 AM
>> To: Chuck Hill <[email protected] <mailto:[email protected]>>
>> Cc: "[email protected] <mailto:[email protected]>" 
>> <[email protected] <mailto:[email protected]>>
>> Subject: Re: ERQMAjaxUpdateContainer : lookup of unknown key: 'value'
>> 
>> 
>>> On 7 Jan 2016, at 18:45, Chuck Hill <[email protected] 
>>> <mailto:[email protected]>> 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:genericContainerelementName="$elementName"otherTagString="$otherTagString">
>>   <!-- _ju:<webobject name = "elementID"/> -->
>>   <wo:content/>
>>   <!-- _ju:<webobject name = "elementID"/> -->
>> </wo:genericContainer>
>> ——
>> elementID : WOString {
>>   value = javaScriptElementID;
>> }
>> 
>> Very odd indeed.
>> 
>> Mark
>> 
>>> 
>>> 
>>> From: <[email protected] 
>>> <mailto:[email protected]>> on 
>>> behalf of Mark Gowdy <[email protected] <mailto:[email protected]>>
>>> Date: Thursday, January 7, 2016 at 8:52 AM
>>> To: "[email protected] 
>>> <mailto:[email protected]>" <[email protected] 
>>> <mailto:[email protected]>>
>>> 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 = "$javaScriptElementID" /> -->
>>>   <wo:content/>
>>>   <!-- _ju:<wo:WOString value = "$javaScriptElementID" /> -->
>>> </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
>> 
>> 
>> 
>> 
> 
> _________________
> Mark Gowdy
> Gowdy Associates Ltd
> M: +44 7808 400 941
> Skype: markgowdy
> 
> 
> 
> 

_________________
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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to