Hi,
Contrary to what is described here http://dev.xwiki.org/xwiki/bin/view/Design/NewRenderingArchitecture#HA6Intr…
I'd like to propose instead to use a nested {xhtml} macro whenever
you want your velocity script to generate XHTML.
So the example would be transformed into:
{velocity}{xhtml}
<div>
<h1>Hello $customer.Name!</h1>
<table>
#foreach( $mud in $mudsOnSpecial )
#if ( $customer.hasPurchased($mud) )
<tr>
<td>
* [link>$flogger.getPromo( $mud )]
</td>
</tr>
#end
#end
</table>
</div>
{/xhtml}{/velocity}
It seems to me much more logical to do it this way, especially since
we allow nested macros.
Note1: that it'll work because the velocity macro supports wiki syntax
and {xhtml} is wiki syntax.
Note2: This is not equivalent to writing {xhtml}{velocity}... since
the xhtml macro only accepts valid XHTML. This is valid though:
{xhtml}
<div>
<a href="...">{somemacro/}</a>
</div>
{/xhtml}
WDYT? Is it ok with you?
Thanks
-Vincent
Hi devs,
As it has been already mentioned a couple of times, I strongly believe
that XWiki Watch should be accessible in a sandbox on xwiki.org, for
everyone to try it out and explore its features and for us to get an
open real-life test of it.
There is a document dedicated to the issues that might prevent this at
http://watch.xwiki.org/xwiki/bin/view/Development/XWatchOnXWikiOrg ,
please fill it in with any opinions you have!
Here's my +1 for having an installation of XWatch publicly available on
xwiki.org, WDYT?
Happy coding,
Anca
P.S: Sorry for the duplicate email, I forgot the subject in the previous
one and I thought it's important enough to deserve duplicating.
The XWiki development team is pleased to announce the release of
XWiki Enterprise Manager 1.3 Release Candidate 1.
Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download
First release candidate for the 1.3 version.
The main changes are:
* Upgrade XE/Core dependency from 1.4.1 to 1.5
* Improve wiki descriptor editor
For more information see the Release notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXEM13RC1
Thanks
-The XWiki dev team
Hi,
I want to change some class to plexus component. I see some code of
xwiki. I have 2 questions.
1. Only adding "String ROLE = **.class.getName()" in a class, can
change a normal class to plexus component? Should I write some plexus
config file in somewhere?
2. How to get a plexus components?
Use a componentManagement.getComponent(ROLE) can get a component, but
I don't know how to get the componentManagement.
Forget me if those two question is too stupid.
Thanks.
Wang Ning
Hi,
I think I've finished enough in the new rendering implementation so
that we should now start defining formally the new XWiki 2.0 syntax.
However before we do that let me highlight one important limitation
due to the underlying frameworks we use (wikimodel in this case):
Wikimodel is using a JavaCC grammar and thus is not able to do look
ahead and backtracking (ANTLR can do it, but even if JavaCC could do
it it would still be too expensive to use). This means that wikimodel
is not able to support the following example:
This is a * that is not a bold.
When wikimodel sees one of XWiki's special char (like the star for
bold) it'll put everything that comes after as bold, till it find
another star or till the end of the document.
There are 2 solutions out of this:
* We don't allow users to enter non-escaped star for example.
* Or better we change our syntax for bold so that it uses a 2 chars.
For example **. It's less likely people will use 2 stars in their
content and this is the reason most wikis use 2 chars. This is also
consistent with our other syntaxes for underline, strikethrough,
italics, etc. Note that this is also inline with the creole syntax: http://www.wikicreole.org/
The same problem exists for links. We're currently using single
brackets which means people cannot use brackets in their text. I'd
also propose to use double brackets for links as in: [[This is a
link]]. Again this is consistent with the rest.
There are several other topics to address but let's start with Bold
and Link syntaxes right now. Once we agree on them, I'll do the
following:
* Create a XWiki 2.0 syntax page on xwiki.org and put Bold and Linkj
syntax there
* Send change requests to wikimodel for the changes we decide
* Adapt the new rendering module code
* Send other emails for remaining syntax elements
To summarize the vote here is about:
* Using ** for bold in the new XWiki 2.0 syntax
* Using [[ for links in the new XWiki 2.0 syntax
Here's my +1 to both.
Thanks
-Vincent
Hi all,
As XE 1.5 just been released I would like to follow with XEM 1.3.
It's mainly XE dependency upgrade fro 1.4.1 to 1.5 and wiki descriptor
editor improvements.
You can see complete release note at
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXEM13RC1
Here is my +1
--
Thomas Mortagne
I am building XWiki Workspace from the source. i made a change to XWiki core
and built it fine. I see it being installed to the local repository as well.
However, when i try to build the Workspace web module I always see the old
xwiki-core-1.4.1.jar being picked up from elsewhere instead of pikcing the
one from my local repository. Can someone tell me what I am doing wrong. Are
there any dependency issues? Your help is greatly appreciated.
/ns
Hi Ludovic and all,
I have completed refactoring xwiki-webdav code base.
*Benefits:*
1. Code is easy to read & understand (still missing javadoc though).
2. Increased modularity.
3. Very easy to extend (Add new views, types etc).
*Features :*
1. True parent-child navigations is possible (wasn't possible before).
2. Add / Remove child pages into / from pages.
3. Edit Wiki content of pages.
4. Delete child pages / Attachments.
5. (Adding attachments is one step ahead - need 1.6 core)
6. Add / Remove pages into / from spaces.
7. Add / Remove spaces - partially done.
Ludovic, please have a look at the new code and let me know what you think
:)
*Missing :*
1. Copy / Move operations.
2. Locking & Versionning.
*Questions / Concerns :*
1. What should be the content-length of collection resources (currrently 0)
2. Is it meaning full to have GET / HEAD methods on collection resources (as
this would mean downloading a directory hierarchy, which is not possible
AFAIK)
3. LIBRARY_VIEW : I didn't implement this view (yet) because i don't
understand how we can upload a directory hierarchy into a server as
mentioned on the
design<http://dev.xwiki.org/xwiki/bin/view/Design/WebDAVService>.
Can someone please explain what exactly 'uploading a directory' means ?
4. Deleting collection resources seems to present few complications :
i) Some clients (nautilus) uses a recursive delete procedure. Some clients
(dav explorer) does not allow deleting collection resources.
ii) If a page is deleted recursively, all child pages are deleted before the
parent is removed :(
5. attachments / orphans views, should we allow pages to be added / deleted
on this views ?
*What's Next :*
I will start to write test cases for xwiki-webdav using jakarta
slide<http://jakarta.apache.org/slide/>for next week to come (but i
don't have much of an idea what it would be
like).
It would be nice to have some comments on the current code base and possibly
answers to above questions :)
Thanks.
- Asiri
---------- Forwarded message ----------
From: Asiri Rathnayake <asiri.rathnayake(a)gmail.com>
Date: Sat, Jul 26, 2008 at 11:48 AM
Subject: Re: [GSOC][WEBDAV] Status (Integration Testing)
To: Ludovic Dubost <ludovic(a)xwiki.org>
Hi Ludovic,
On Sat, Jul 26, 2008 at 4:10 AM, Ludovic Dubost <ludovic(a)xwiki.org> wrote:
>
> Asiri,
>
> The integration tests are really looking good. This is great to have tests
> like that to see the webdav server working.
> Yes I think you should replicate them on the different view.
>
> The more tricky part is going to replicate the behavior of clients that are
> doing some complex things, like trying to save temporary files
> (.wiki.txt.swp like vi does)
>
Yes, this is going to be challenging. But if the editor is aware of the fact
that it is handling a dav file, it might resolve to some other technique to
store swap files, but we cannot depend on that, true.
>
> Make sure you verify that your tests are really testing by introducing an
> error in your webdav code.
>
Well, i encountered few bugs in the code while writing the tests and fixed
them along .. :P
>
> Once you have decent testing, the most important will be to have the
> Windows and Mac webdav client behave properly especially with standard
> applications (Notepad, MS Word on Windows, TextEdit, OpenOffice on Mac)
Yeah, as i mentioned in one of my previous mails, some editors (ex: notepad)
doesn't even know what is DAV. I mean it complains that it is an invalid
protocol or something, there is not a single request listed on the server. I
doubt whether we can fix such issues. Anyway, i will look into it bit
thoroughly.
Thanks.
- Asiri
>
>
> Ludovic
>
>
> Asiri Rathnayake wrote:
>
>> Hi Ludovic,
>>
>> I have setup the pom file to allow integration tests. Also, plain old
>> junit tests can be added if required (**/*TTest.java : unit-tests,
>> **/*ITest.java : integration-tests). Also, I have added integration tests
>> for basic operations on spaces and pages. I was thinking if i should
>> replicate these tests across different views ? WDYT ?
>>
>> To run the tests, simply execute `mvn clean integration-test`
>>
>> Thanks.
>>
>> - Asiri
>>
>
>
> --
> Ludovic Dubost
> Blog: http://blog.ludovic.org/
> XWiki: http://www.xwiki.com
> Skype: ldubost GTalk: ldubost
>
>
Hi Ludovic,
I have setup the pom file to allow integration tests. Also, plain old junit
tests can be added if required (**/*TTest.java : unit-tests, **/*ITest.java
: integration-tests). Also, I have added integration tests for basic
operations on spaces and pages. I was thinking if i should replicate these
tests across different views ? WDYT ?
To run the tests, simply execute `mvn clean integration-test`
Thanks.
- Asiri