On 01/20/2010 07:08 PM, Dilipkumar Jadhav wrote:
Hi Sergiu,
Sorry about the delay in response. I checked the httpheader.
It is exactly what you had stated. It accesses the rest api& is in
the
"${request.contextPath}/rest/wikis/${context.database}/search?scope=name&number=10&media=json&"
format.
Even though I am in the child wiki the ${context.database} still says
"xwiki"...It should say "draft" where draft is the name of the child
wiki.
Since, the wikis I use are path based wikis, do I need to make any
change somewhere to make the auto suggest to work. Or would I have to
go to url based wikis (with different domain names). At the same time,
I've an application which uses XWiki RESTful api without any
modifications at all despite the XEM being path based.
Please help...thanks.
The JS code will have to be fixed, I'll work on it, see
http://jira.xwiki.org/jira/browse/XWIKI-4773
>
> Message: 1
> Date: Wed, 20 Jan 2010 12:17:58 -0500
> From: Dilipkumar Jadhav<jadhav.dilipkumar(a)gmail.com>
> Subject: Re: [xwiki-users] Meta+G feature on XEM
> To: users(a)xwiki.org
> Message-ID:
> <a5b160b51001200917q6f4e7116oee4e4e59c5a4ef46(a)mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Thanks for your quick response Sergiu. The wiki is a path-based wiki.
>
>
>>
>> That is strange, it should work perfectly well in a virtual wiki, and
>> you can try to see that it works on the *.xwiki.org farm, and on
>>
incubator.myxwiki.org.
>>
>> You can check with Firebug or HttpHeaders to check where does the
>> suggest request go to, maybe there's something weird in the URL setup.
>>
>> Normally, the request goes to something like:
>>
>>
"${request.contextPath}/rest/wikis/${context.database}/search?scope=name&number=10&media=json&"
>>
>> Here, ${request.contextPath} is usually /xwiki, and ${context.database}
>> is the name of the virtual wiki.
>>
>> Could it be that you're using a path-based virtual wiki?
--
Sergiu Dumitriu
http://purl.org/net/sergiu/