Re: [xwiki-users] XWiki 8 migration JSX Extension velocity parse

2016-10-13 Thread Guillaume Delhumeau
Of course, this will not fix the real bug, and it won't work with your
stylesheet extension.

2016-10-13 13:20 GMT+02:00 Guillaume Delhumeau <
guillaume.delhum...@xwiki.com>:

> You are probably experiencing a bug.
>
> However, I will propose you a solution that we consider as a Best Practice.
>
> var url = new XWiki.Document(XWiki.Model.resolve('cdlsDashboard.statsGlobal',
> XWiki.EntityType.DOCUMENT)).getURL('view', 'xpage=plain=
> plain')
>
> I hope it helps,
>
> Guillaume
>
> 2016-10-13 12:15 GMT+02:00 Gerritjan Koekkoek :
>
>> Yes : parse was/is set to true
>>
>> Verstuurd vanaf mijn iPhone
>>
>> > Op 13 okt. 2016 om 12:13 heeft Guillaume Delhumeau <
>> guillaume.delhum...@xwiki.com> het volgende geschreven:
>> >
>> > Hello.
>> >
>> > On your JavaScript Skin Extension object, have you set "Parse content"
>> to
>> > "yes"?
>> >
>> > 2016-10-12 13:59 GMT+02:00 Gerritjan Koekkoek > >:
>> >
>> >> Hi,
>> >>
>> >>
>> >> We have this javascript function
>> >>
>> >>  function getStats(event) {
>> >>
>> >>var url = "$xwiki.getURL('cdlsDashboard.statsGlobal',
>> >> 'view')?xpage=plain=plain";
>> >>
>> >>request(url, setStats, event);
>> >>
>> >>  }
>> >>
>> >> Since migration to version 8 the browser console shows a strange get
>> >> function and resulting error:
>> >> cdlsworld.devxwiki.com/xwiki/bin/view/cdlsDashboard/$xwiki.
>> >> getURL('cdlsDashboard.statsGlobal',%20'view')
>> >>
>> >> It looks like the velocity is not based before creating a javascript?
>> >> I've had similar in a stylesheet extension
>> >>
>> >> Is something changed in version XWiki 8 (we came from 6.4.x)?
>> >>
>> >>
>> >> Gerritjan Koekkoek
>> >> Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
>> >> Visit our website
>> >> Facebook
>> >> email
>> >>
>> >>
>> >>
>> >> ___
>> >> users mailing list
>> >> users@xwiki.org
>> >> http://lists.xwiki.org/mailman/listinfo/users
>> >>
>> >
>> >
>> >
>> > --
>> > Guillaume Delhumeau (guillaume.delhum...@xwiki.com)
>> > Research & Development Engineer at XWiki SAS
>> > Committer on the XWiki.org project
>> > ___
>> > users mailing list
>> > users@xwiki.org
>> > http://lists.xwiki.org/mailman/listinfo/users
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>
>
>
> --
> Guillaume Delhumeau (guillaume.delhum...@xwiki.com)
> Research & Development Engineer at XWiki SAS
> Committer on the XWiki.org project
>



-- 
Guillaume Delhumeau (guillaume.delhum...@xwiki.com)
Research & Development Engineer at XWiki SAS
Committer on the XWiki.org project
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki 8 migration JSX Extension velocity parse

2016-10-13 Thread Guillaume Delhumeau
You are probably experiencing a bug.

However, I will propose you a solution that we consider as a Best Practice.

var url = new
XWiki.Document(XWiki.Model.resolve('cdlsDashboard.statsGlobal',
XWiki.EntityType.DOCUMENT)).getURL('view', 'xpage=plain=plain')

I hope it helps,

Guillaume

2016-10-13 12:15 GMT+02:00 Gerritjan Koekkoek :

> Yes : parse was/is set to true
>
> Verstuurd vanaf mijn iPhone
>
> > Op 13 okt. 2016 om 12:13 heeft Guillaume Delhumeau <
> guillaume.delhum...@xwiki.com> het volgende geschreven:
> >
> > Hello.
> >
> > On your JavaScript Skin Extension object, have you set "Parse content" to
> > "yes"?
> >
> > 2016-10-12 13:59 GMT+02:00 Gerritjan Koekkoek :
> >
> >> Hi,
> >>
> >>
> >> We have this javascript function
> >>
> >>  function getStats(event) {
> >>
> >>var url = "$xwiki.getURL('cdlsDashboard.statsGlobal',
> >> 'view')?xpage=plain=plain";
> >>
> >>request(url, setStats, event);
> >>
> >>  }
> >>
> >> Since migration to version 8 the browser console shows a strange get
> >> function and resulting error:
> >> cdlsworld.devxwiki.com/xwiki/bin/view/cdlsDashboard/$xwiki.
> >> getURL('cdlsDashboard.statsGlobal',%20'view')
> >>
> >> It looks like the velocity is not based before creating a javascript?
> >> I've had similar in a stylesheet extension
> >>
> >> Is something changed in version XWiki 8 (we came from 6.4.x)?
> >>
> >>
> >> Gerritjan Koekkoek
> >> Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
> >> Visit our website
> >> Facebook
> >> email
> >>
> >>
> >>
> >> ___
> >> users mailing list
> >> users@xwiki.org
> >> http://lists.xwiki.org/mailman/listinfo/users
> >>
> >
> >
> >
> > --
> > Guillaume Delhumeau (guillaume.delhum...@xwiki.com)
> > Research & Development Engineer at XWiki SAS
> > Committer on the XWiki.org project
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Guillaume Delhumeau (guillaume.delhum...@xwiki.com)
Research & Development Engineer at XWiki SAS
Committer on the XWiki.org project
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki 8 migration JSX Extension velocity parse

2016-10-13 Thread Gerritjan Koekkoek
Yes : parse was/is set to true 

Verstuurd vanaf mijn iPhone

> Op 13 okt. 2016 om 12:13 heeft Guillaume Delhumeau 
>  het volgende geschreven:
> 
> Hello.
> 
> On your JavaScript Skin Extension object, have you set "Parse content" to
> "yes"?
> 
> 2016-10-12 13:59 GMT+02:00 Gerritjan Koekkoek :
> 
>> Hi,
>> 
>> 
>> We have this javascript function
>> 
>>  function getStats(event) {
>> 
>>var url = "$xwiki.getURL('cdlsDashboard.statsGlobal',
>> 'view')?xpage=plain=plain";
>> 
>>request(url, setStats, event);
>> 
>>  }
>> 
>> Since migration to version 8 the browser console shows a strange get
>> function and resulting error:
>> cdlsworld.devxwiki.com/xwiki/bin/view/cdlsDashboard/$xwiki.
>> getURL('cdlsDashboard.statsGlobal',%20'view')
>> 
>> It looks like the velocity is not based before creating a javascript?
>> I've had similar in a stylesheet extension
>> 
>> Is something changed in version XWiki 8 (we came from 6.4.x)?
>> 
>> 
>> Gerritjan Koekkoek
>> Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
>> Visit our website
>> Facebook
>> email
>> 
>> 
>> 
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>> 
> 
> 
> 
> -- 
> Guillaume Delhumeau (guillaume.delhum...@xwiki.com)
> Research & Development Engineer at XWiki SAS
> Committer on the XWiki.org project
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki 8 migration JSX Extension velocity parse

2016-10-13 Thread Guillaume Delhumeau
Hello.

On your JavaScript Skin Extension object, have you set "Parse content" to
"yes"?

2016-10-12 13:59 GMT+02:00 Gerritjan Koekkoek :

> Hi,
>
>
> We have this javascript function
>
>   function getStats(event) {
>
> var url = "$xwiki.getURL('cdlsDashboard.statsGlobal',
> 'view')?xpage=plain=plain";
>
> request(url, setStats, event);
>
>   }
>
> Since migration to version 8 the browser console shows a strange get
> function and resulting error:
> cdlsworld.devxwiki.com/xwiki/bin/view/cdlsDashboard/$xwiki.
> getURL('cdlsDashboard.statsGlobal',%20'view')
>
> It looks like the velocity is not based before creating a javascript?
> I've had similar in a stylesheet extension
>
> Is something changed in version XWiki 8 (we came from 6.4.x)?
>
>
> Gerritjan Koekkoek
> Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
> Visit our website
> Facebook
> email
>
>
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Guillaume Delhumeau (guillaume.delhum...@xwiki.com)
Research & Development Engineer at XWiki SAS
Committer on the XWiki.org project
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] XWiki 8 migration JSX Extension velocity parse

2016-10-12 Thread Gerritjan Koekkoek
Hi,


We have this javascript function

  function getStats(event) {

var url = "$xwiki.getURL('cdlsDashboard.statsGlobal', 
'view')?xpage=plain=plain";

request(url, setStats, event);

  }

Since migration to version 8 the browser console shows a strange get function 
and resulting error:
cdlsworld.devxwiki.com/xwiki/bin/view/cdlsDashboard/$xwiki.getURL('cdlsDashboard.statsGlobal',%20'view')

It looks like the velocity is not based before creating a javascript?
I've had similar in a stylesheet extension

Is something changed in version XWiki 8 (we came from 6.4.x)?


Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website
Facebook
email



___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users