Hello fellow developers,
I am working on upgrading our core, based on xwiki 1.5.4 to xwiki 3.2. Quite a jump.
Among the least jump, velocity seems to have jumped from version 1.5 to version 1.7.
Nonetheless, this seems to cause a surprising effect: while macros could redefine the value of parameters they were passed, and that change was honoured after the macro, they cannot anymore.
The following script:
> #macro(redefine $var)
> #set($var="redefined")
> #end
>
> #set($x="original")
>
> x is $x
>
> #redefine($x)
>
> x is $x
gives the following output in a new core:
> x is original
>
> x is original
>
and the following in our old core:
> x is original
>
> x is redefined
>
This has all sorts of consequences including such macros as the navigation not receiving the result of normalizelink...
Did I miss an optional parameter of velocity to revert to the old method?
paul
I want to build a component ,but I didn't get it .I just use the HelloWorld
as a example
interface like this:
@ComponentRole
public interface HelloWorld
{
String sayHello(String name);
}
and script like this :
@Component
@Named("hello")
@Singleton
public class HelloWorldScriptService implements ScriptService
{
@Inject
private HelloWorld helloWorld;
public String greet(String name)
{
return this.helloWorld.sayHello(name);
}
}
aa I use it in xwiki like this :
{{velocity}}
$services.hello.greet("aaa")
{{/velocity}}
but I didn't get the right result,I must make some mistakes at some steps
I'm not clear,can you help me,please .
Hi guys,
Just to let you know that the least 7 mails I've sent to the users and
devs list have not made it apparently... (just realizing now).
I'm trying sending this mail directly from gmail (I usually use a
desktop client).
Thanks
-Vincent
Hi devs,
I would like to upgrade to JGroups 3 (we use it for clustering and
there is lots of (mostly speed) improvements in the 3.x branch). But I
have an issue: JBossCache is incompatible with JGroups 3 (even if
JGroups should be totally useless in the way we use JBossCache).
Here are some other pros removing JBossCache base implementation:
* we don't use it ourself anymore
* JBossCache is dead (replaced by Infinispan)
So WDYT ?
Here is my +1 to retire JBossCache based cache implementation.
--
Thomas Mortagne
Hi devs,
I recently move the classloader module to commons and it was the last
platform dependency of the script macro so I would like to move all
script macro to rendering project.
It's a very nice addition to the rendering project for the people
using it outside of XWiki.
WDYT ?
Here is my +1
--
Thomas Mortagne
I hava solved it , thank you !
2012/3/11 <devs-request(a)xwiki.org>
> Send devs mailing list submissions to
> devs(a)xwiki.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.xwiki.org/mailman/listinfo/devs
> or, via email, send a message with subject or body 'help' to
> devs-request(a)xwiki.org
>
> You can reach the person managing the list at
> devs-owner(a)xwiki.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of devs digest..."
>
>
> Today's Topics:
>
> 1. when i deploy xwiki3.5 on tomcat , some mistakes appeares
> (jinlong liu)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 11 Mar 2012 15:47:49 +0800
> From: jinlong liu <liujinlong5788(a)gmail.com>
> To: devs(a)xwiki.org
> Subject: [xwiki-devs] when i deploy xwiki3.5 on tomcat , some
> mistakes
> appeares
> Message-ID:
> <CAHt_GbKr_jwN_d4hTU_TOLu6WmQ5_gzqLWhOD2bO1B+x7fc1NA(a)mail.gmail.com
> >
> Content-Type: text/plain; charset=ISO-8859-1
>
> I want to deploy the newest table version of xwiki(xwiki 3.5) on tomcat(I
> have tried both 6 and 7),and I have changed the database to mysql 5 ,but
> after I imported the xwiki-enterprise-ui-all-3.5.xar to the databases
> ,there are somemistakes, Unknown macro: spaces and Unknown macro: tagcloud
> and Unknown macro: activity apperaed in the main page(
> http://localhost:8080/xwiki/bin/view/Main/ ).Can you help me to solve
> this?thank you !
>
>
> ------------------------------
>
> _______________________________________________
> devs mailing list
> devs(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs
>
>
> End of devs Digest, Vol 57, Issue 22
> ************************************
>
I want to deploy the newest table version of xwiki(xwiki 3.5) on tomcat(I
have tried both 6 and 7),and I have changed the database to mysql 5 ,but
after I imported the xwiki-enterprise-ui-all-3.5.xar to the databases
,there are somemistakes, Unknown macro: spaces and Unknown macro: tagcloud
and Unknown macro: activity apperaed in the main page(
http://localhost:8080/xwiki/bin/view/Main/ ).Can you help me to solve
this?thank you !
Hi devs,
Since I plan to move some stuff from platform to commons I would like
to know what you think of the history in this case.
Pros including history:
* can access easily the whole history of a moved file. But sometimes
changing packages etc make too much difference for git to see it's
actually the same file so you loose it anyway.
Cons including history:
* double the history which make tools like ohloh indicate wrong informations
* it's a lot easier to move without history
WDYT ?
Even if it was looking a bit weird to me at first I'm actually +1 to
not move the history in this case.
Eduard was proposing to include in the first commit of the new
repository the id of the last commit containing the files (basically
the id of the parent of the commit deleting the files) in the old
repository so that it's easier to find it. I'm +1 for this.
--
Thomas Mortagne
Hi devs,
Some time ago Jerome Velociter raised a vote [1] for adding a JSON
Velocity Tool. The vote passed but the tool wasn't committed. I'd like
to do it know (for 4.0M1) with two changes:
1. Use Jackson [2] instead of json-lib [3] because it has a more recent release
2. Add only the toJSON method for now because we can use
$escapetool.javascript to accomplish the same result as toValueString
Reply quickly if you are against it.
Thanks,
Marius
[1] http://www.mail-archive.com/devs@xwiki.org/msg11395.html
[2] http://jackson.codehaus.org/
[3] http://json-lib.sourceforge.net/