Outside of simple LSCS queries hacked together in various javaclasses we have created I have not been able to get my head around the relationship between OGNL and the lscs query as provided in the Display Document List.component.
I have not been able to find good documentation about it either. So I have some specific questions about the example and would like to know where to learn more. I have skimmed
http://www.opensymphony.com/ognl/html/LanguageGuide/index.htmlhttp://www.opensymphony.com/ognl/html/DeveloperGuide/index.htmlChapters 3 and 4 of the above LanguageGuide imply a lot of power but I still cant get through the abstraction of how to apply that to the q=... of a lscs query, are there limits or can Methods, Variables, Collections ... all be accessed from the query?
These threads have some information but have lead to the following questions.
topic: 32754 topic: 33998 From the DisplayDocumentList component
[HTML]
*
q=
false
com.interwoven.livesite.component.lscs.external.net.LscsQuery
getDocumentList
[/HTML]
Disecting the following
q=
Questions:
1. does an OGNL expression need to be between
@expression@ like above to evaluate? If not why are the @ in the example?
2. #query, According to
http://www.opensymphony.com/ognl/html/LanguageGuide/varref.html the # is a variable refrence.
Here it seems to be referencing a parameter. What variables can be refreinced?
Is there a scope in the context xml that it can reference or can it access anything from anywhere in the context xml?
If anything in the context xml can be accessed then where can I find examples of how to refrence something in a datum outside the External-Parameters?
3. Can information in the RequestContext be accessed? #context.pageName will it do the same as $CONTEXT{pageName}?