Mike Schrag wrote on 4/18/07 3:41 PM:
> I would make sure that you're using a recent version of Wonder's WOOgnl
> framework.
I am using Wonder 3.0.0.340, and the properties dump on application
startup tells me
"ognl.helperFunctions = true"
"ognl.inlineBindings = true "
The <wo name=foo /> shortcuts work. But
<wo:WOString value="String Literal" />
still throws errors. Curiously, it seems like the value binding is
being translated into a name binding, which WO then fails to find in
the WOD file. Note the "no declaration for dynamic element (or
component) named String Literal:" in the following stack trace:
Exception while handling action named "internal" on action class
"null" :com.webobjects.foundation.NSForwardException
[com.webobjects.appserver._private.WODeclarationFormatException]
<WOHTMLTemplateParser> no declaration for dynamic element (or
component) named String Literal:
<com.webobjects.appserver._private.WOComponentDefinition: Error
parsing template for Component :
'file:/Volumes/disk2/home/zburke/workspace/cms_app/dist/cms_app.woa/Contents/Frameworks/ce_fw.framework/Resources/InternalGroupPage.wo/':
Any other hints?
zak.
> On Apr 18, 2007, at 3:32 PM, Zak Burke wrote:
>
>> Mike Schrag wrote on 4/18/07 7:50 AM:
>>> I'm just now writing completion (as we speak) for inline binding
>>> syntax in the new html editor.
>>> ms
>>> On Apr 18, 2007, at 1:16 AM, Brendan Duddridge wrote:
>>>> Hi,
>>>>
>>>> It's be great to see a toolbar of some sort in the WO component
>>>> editor. I think a switch to generate html/separate wod code vs. the
>>>> newer inline html/combined wod would be really nice too. I've
>>>> started to use the inline wod code more and more.
>>>>
>>>> e.g. <wo:WOString value="$someContent" escapeHTML="$false" />
>>
>> Huh; WOOgnl bindings like this:
>> <wo name=foo />
>> ...
>> foo: WOString {
>> value = "..ackage.class@CONSTANT";
>>
>> work for me, but when I try something like this
>>
>> <wo:WOString value="$item.person.contact.address.city" />
>>
>> I get exceptions:
>>
>> Apr 18 15:26:32 i3p-cms[2003] (ERXNSLogLog4jBridge.java:41) WARN
>> NSLog - <er.extensions.ERXDirectActionRequestHandler>: Exception
>> while handling action named "internal" on action class "null"
>> :com.webobjects.foundation.NSForwardException
>> [com.webobjects.appserver._private.WOHTMLFormatException]
>> <WOHTMLWebObjectTag cannot initialize WebObject tag <wo:WOString
>> value="$item.person.contact.address.city" escapeHTML="$false" > . It
>> has no NAME=... parameter:
>> <com.webobjects.appserver._private.WOComponentDefinition: Error
>> parsing template for Component :
>> 'file:/Volumes/disk2/home/zburke/workspace/cms_app/dist/cms_app.woa/Contents/Frameworks/ce_fw.framework/Resources/InternalGroupPage.wo/':
>>
>> com.webobjects.appserver._private.WOHTMLFormatException:
>> <WOHTMLWebObjectTag cannot initialize WebObject tag <wo:WOString
>> value="$item.person.contact.address.city" escapeHTML="$false" > . It
>> has no NAME=... parameter
>>
>> Am I missing a properties setting somewhere to turn on these short
>> cuts? Currently I have
>>
>> ognl.helperFunctions=true
>> ognl.inlineBindings=true
>>
>> in my Properties file.
>>
>> zak.
>
>
This archive was generated by hypermail 2.0.0 : Thu Apr 19 2007 - 10:01:28 EDT