Jean-Vincent Drean (JIRA) wrote:
>
> Jean-Vincent Drean closed XWIKI-3287.
> -------------------------------------
>
> Assignee: Jean-Vincent Drean
> Fix Version/s: 1.8 RC2
> 1.9 M1
> Resolution: Fixed
>
> First version commited on both trunk and 1.8 branch.
>
> To see the tree in action you can paste the following code in a new page:
>
> {noformat}
> #if($request.input)
> $response.setContentType('text/xml')
> #set($input = $request.input.toLowerCase())
> <?xml version="1.0" ?>
> <results type="8">
HQL injection.
> #foreach($item in $xwiki.searchDocuments(" where lower(doc.fullName) like
> '%${input}%'", 8, 0))
> <rs id="${velocityCount}" info="">$item</rs>
> #end
> </results>
> #else
Too many lines the user has to write. We should have a helper script
file that autoloads the rest of them.
> ## Smartclient
> $xwiki.jsfx.use("js/smartclient/initsc.js", true)
> $xwiki.jsfx.use("js/smartclient/modules/ISC_Core.js")
> $xwiki.jsfx.use("js/smartclient/modules/ISC_Foundation.js")
> $xwiki.jsfx.use("js/smartclient/modules/ISC_Containers.js")
> $xwiki.jsfx.use("js/smartclient/modules/ISC_Grids.js")
> $xwiki.jsfx.use("js/smartclient/modules/ISC_Forms.js")
> $xwiki.jsfx.use("js/smartclient/modules/ISC_DataBinding.js")
> $xwiki.jsfx.use("js/smartclient/skins/Enterprise/load_skin.js")
> ## XWikiExplorer
> $xwiki.jsfx.use("js/xwiki/xwikiexplorer/xwikiexplorer.js", true)
> ## Suggest
> $xwiki.ssfx.use("js/xwiki/suggest/ajaxSuggest.css")
> $xwiki.jsfx.use("js/xwiki/suggest/ajaxSuggest.js")
> ##
> {pre}##
> <script>
> var blacklistedSpaces = {
> #foreach($space in $blacklistedSpaces)
> $space : true,
> #end
> };
> XWiki.xwikiExplorer.create({
> width:600,
> height:300,
> displayAttachments:true,
> displayLinks:true,
> blacklistedSpaces:blacklistedSpaces
> });
> </script>
> {/pre}##
> #end
> #set($docextras = [])
> {noformat}
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs