Re: [xwiki-users] macros not executed?

2008-11-19 Thread Yishay Mor
Thanks Sergio,

yes - since I use the same macros in several templates, I thought I should
collect them in a single page and include that.
I've tried includeInContext, includeMacros, and includeForms - but I always
get the same problem.


Date: Wed, 19 Nov 2008 03:31:09 +0100
From: Sergiu Dumitriu [EMAIL PROTECTED]
Subject: Re: [xwiki-users] macros not executed?

Yishay Mor wrote:
 At
 http://patternlanguagenetwork.myxwiki.org/
 I'm seeing a strange phenomena. Some macros ocasionaly appear literally in
 the rendered page, and are only evaluated when I refresh.

Where are the macros defined? Is it scripts.IndexPage? There is a
problem in the way macros are included, caused by the way the Velocity
engine works with what it calls macro libraries.

--
Sergiu Dumitriu
http://purl.org/net/sergiu/


___
 Yishay Mor, Researcher, London Knowledge Lab
  http://www.lkl.ac.uk/people/mor.html
  http://www.google.com/calendar/embed?src=yishaym%40gmail.com
  +44-20-7837 x5737
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] macros not executed?

2008-11-18 Thread Yishay Mor
At
http://patternlanguagenetwork.myxwiki.org/
I'm seeing a strange phenomena. Some macros ocasionaly appear literally in
the rendered page, and are only evaluated when I refresh.
e.g., on -
http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Scenarios/
I have this code:
===

 1: #includeInContext(scripts.IndexPage)
 2:
 3: A scenario is a description of a speculative event, describing a
 4: problem / issue / desired function in a well-defined context, and a
 5: possible manner of addressing it. It is similar to a case study, except
 6: that it is a-priori rather than a-posteriori, and should have a more
 7: detailed justification of the proposed solution.
 8:
 9: 
 10:
 11: #fullCreateForm(Scenarios.WebHome  Scenario scenario)
 12: #set($fields = [Group, Status])
 13: #dataTable(Scenario Scenario Summary $fields)
 14:

===
I see -
===

 A scenario is a description of a speculative event, describing a problem /
 issue / desired function in a well-defined context, and a possible manner of
 addressing it. It is similar to a case study, except that it is a-priori
 rather than a-posteriori, and should have a more detailed justification of
 the proposed solution.

 --

 #fullCreateForm(Scenarios.WebHome  Scenario scenario)
 #dataTable(Scenario Scenario Summary Group, 
 Status?http://patternlanguagenetwork.myxwiki.org/xwiki/bin/edit/Scenarios/Group%2C+Status?parent=Scenarios.WebHomeeditor=wysiwyg
 )

===
I refresh, and see -
===

A scenario is a description of a speculative event, describing a problem /
issue / desired function in a well-defined context, and a possible manner of
addressing it. It is similar to a case study, except that it is a-priori
rather than a-posteriori, and should have a more detailed justification of
the proposed solution.

--

   *New scenario*:

 Name[image: 
↓]http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Scenarios/#
Create[image: 
↓]http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Scenarios/#
By[image: 
↓]http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Scenarios/#
Edit[image: 
↓]http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Scenarios/#
By[image: 
↓]http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Scenarios/#
Group[image: 
↓]http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Scenarios/#
Status[image: 
↓]http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Scenarios/#
avatiachhttp://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Scenarios/avatiach
18 Nov 2008  Yishay
Morhttp://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/XWiki/YishayMor
18 Nov 2008  Yishay
Morhttp://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/XWiki/YishayMor

 --

___
 Yishay Mor, Researcher, London Knowledge Lab
  http://www.lkl.ac.uk/people/mor.html
  http://www.google.com/calendar/embed?src=yishaym%40gmail.com
  +44-20-7837 x5737
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] macros not executed?

2008-11-18 Thread Sergiu Dumitriu
Yishay Mor wrote:
 At
 http://patternlanguagenetwork.myxwiki.org/
 I'm seeing a strange phenomena. Some macros ocasionaly appear literally in
 the rendered page, and are only evaluated when I refresh.

Where are the macros defined? Is it scripts.IndexPage? There is a
problem in the way macros are included, caused by the way the Velocity
engine works with what it calls macro libraries.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users