Re: OGNL property syntax in documentation does not work

2013-09-30 Thread Claus Ibsen
Hi I suggest you send an ICLA to Apache and help fix/improve the docs. Apache depend on people contributing on the projects. If you want X fixed on page Y, then please make it super easy for others to fix/do. Eg post a link and have replace FROM to TO so ppl can do it easily. On Fri, Sep 20, 2

Re: OGNL property syntax in documentation does not work

2013-09-20 Thread Dale King
FYI, probably a better syntax to use for accessing properties that does work is properties.foo. Might want to put that in the documentation for OGNL. Similarly, request.headers.foo would work for request headers. On Fri, Sep 20, 2013 at 9:49 AM, Dale King wrote: > To be a little more concrete,

Re: OGNL property syntax in documentation does not work

2013-09-20 Thread Dale King
To be a little more concrete, according to the documentation you linked to, the following route should log "def" every second: from("timer:foo") .setProperty("foo").constant("abcdef") .setBody().ognl("property('foo').substring(3)") .log("${body}"); Inst

Re: OGNL property syntax in documentation does not work

2013-09-20 Thread Dale King
The last 2 rows of the variables table shows ways that are supposed to get properties by name, but I tried to use it and it throws an exception. The RootObject passed to OGNL has getProperty methods, but OGNL will not match up property(...) to getProperty() method. OGNL 4 can match property[name] t

Re: OGNL property syntax in documentation does not work

2013-09-19 Thread Claus Ibsen
Can you post the link to where you found this "mistake". I cannot see a problem at http://camel.apache.org/ognl On Fri, Sep 20, 2013 at 12:57 AM, Dale King wrote: > In the documentation for the Camel OGNL component it shows the following > syntax: > > property(name) Object the property by the giv

Re: OGNL property syntax in documentation does not work

2013-09-19 Thread Claus Ibsen
Hi You can help improve the docs. See http://camel.apache.org/contributing.html On Fri, Sep 20, 2013 at 12:57 AM, Dale King wrote: > In the documentation for the Camel OGNL component it shows the following > syntax: > > property(name) Object the property by the given name property(name, type) th

OGNL property syntax in documentation does not work

2013-09-19 Thread Dale King
In the documentation for the Camel OGNL component it shows the following syntax: property(name) Object the property by the given name property(name, type) the property by the given name as the given type This syntax does not actually work in camel and I do not see any tests that tried to test that