[xwiki-users] [Announcement] XWiki Enterprise 4.0 Release Candidate 1 Released

2012-04-10 Thread Sergiu Dumitriu
The XWiki development team is proud to announce the availability of 
XWiki Commons, XWiki Rendering, XWiki Platform, XWiki Enterprise and 
XWiki Enterprise Manager 4.0 Release Candidate 1.


This is the first and hopefully last release candidate for XWiki 
Enterprise 4.0 version. This is mostly a polishing release before the 
final one.


See the full release notes at 
http://www.xwiki.org/xwiki/bin/ReleaseNotes/ReleaseNotesXWikiEnterprise40RC1 
for more details.

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


Re: [xwiki-users] [xwiki-devs] Logging problem

2012-04-10 Thread Vincent Massol

On Apr 11, 2012, at 6:06 AM, du du wrote:

> Hi, all,
> 
> I have the following logback.xml file, I developed a servlet, and used
> common logging library,
> 
> import org.apache.commons.logging.Log;
> import org.apache.commons.logging.LogFactory;
> Log logger = LogFactory.getLog(FileTestServlet.class);

You should use SLF4J instead, not JCL.

Thanks
-Vincent

PS: Don't cross post on lists, keep your messages on the xwiki users ilst. The 
devs one is for development of xwiki **itself**

> 
> I also added this to the logback.xml:
> 
> 
> In the code, I have the following code:
> 
> logger.debug("FileTestServlet doGet...");
> 
> But in the xwiki.log file, the message is not logged to the log file,
> anything wrong? I tried to configure log4j.properties in the classes
> folder, used log4j logger for logging, there is no message logged either.
> 
> Thanks for your help.
> 
> Dave
> 
> 
> 
> 
>   class="ch.qos.logback.core.rolling.RollingFileAppender">
>

[xwiki-users] Logging problem

2012-04-10 Thread du du
Hi, all,

 I have the following logback.xml file, I developed a servlet, and used
common logging library,

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
 Log logger = LogFactory.getLog(FileTestServlet.class);

I also added this to the logback.xml:


In the code, I have the following code:

 logger.debug("FileTestServlet doGet...");

But in the xwiki.log file, the message is not logged to the log file,
anything wrong? I tried to configure log4j.properties in the classes
folder, used log4j logger for logging, there is no message logged either.

Thanks for your help.

Dave




  

Re: [xwiki-users] XWiki Syntax 2.0: is it possible to escape newline

2012-04-10 Thread Vincent Massol

On Apr 10, 2012, at 8:26 PM, Arnaud bourree wrote:

> Hello,
> 
> I don't really understand need of velocity macro in you use-case.
> Personally, when I want a new line in list, table ..., I used ((( )))
> Then you have:
> * [[Platform (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] -
> [[Component 
> Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]](((
> )))
> * [[Writing XWiki
> components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
> -
> [[GitHub>>https://github.com/xwiki]](((
> )))
> 
> Same result, there are always many path for same result :-D

Except that it's not the same result… ;)

What Frank wanted was to have content rendered on a single line but displayed 
on multiple lines when editing it.

Thanks
-Vincent

> Regards,
> 
> Arnaud.
> 
> 2012/4/10 Frank Fischer :
>> Perfect
>> 
>> Frank
>> 
>> 
>> 
>> On 04/10/2012 04:33 PM, Vincent Massol wrote:
>>> 
>>> See below
>>> 
>>> On Apr 10, 2012, at 4:28 PM, Frank Fischer wrote:
>>> 
 Ok - i did get what i wanted ;-) ,
 
 i tested your proposal with another example but
 was accustomed to the JSPWiki list syntax:
 
 *first line
 still first line
 *second line
 still second line
 
 If i put this whole list into the macro the second '*' is
 not at the start of the line. This (and a typo typed by
 myself) made me think that your first answer would
 not work for me.
 
 But putting each list item into a separate macro works
 well and is sufficient for me:
 
 
 === works ===
 
 * {{velocity filter="html"}}
 [[**Platform**
 (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] -
 [[Component
 Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]
 {{/velocity}}
 * {{velocity filter="html"}}
 [[Writing XWiki
 components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
 -
 [[GitHub>>https://github.com/xwiki]]
 {{/velocity}}
 
 === does not work (somewhat cleaner) ===
 
 {{velocity filter="html"}}
 * [[Platform (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]]
 -
  [[Component
 Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]
 * [[Writing XWiki
 components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
 -
  [[GitHub>>https://github.com/xwiki]]
 {{/velocity}}
>>> 
>>> You need to read:
>>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Velocity+Macro+Filter
>>> 
>>> It explains the various filters and how they work.
>>> 
>>> The HTML filter doesn't put any new line.
>>> 
>>> What you want  in your second example is:
>>> 
>>> {{velocity filter="html"}}
>>> * [[Platform (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]]
>>> -
>>>  [[Component
>>> Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]$nl
>>> * [[Writing XWiki
>>> components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
>>> -
>>>  [[GitHub>>https://github.com/xwiki]]
>>> {{/velocity}}
>>> 
>>> (note the $nl to insert a new line).
>>> 
>>> Thanks
>>> -Vincent
>>> 
 Thank you again
  Frank
 
> Yes it's possible ;)
> 
> As I said in my answer this is already possible. Try this in your wiki:
> 
> {{velocity filter="html"}}
> [[Platform (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]]
> -
> [[Component
> Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]
> -
> [[Writing XWiki
> components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
> -
> [[GitHub>>https://github.com/xwiki]] -
> [[User's Guide>>http://enterprise.xwiki.org/xwiki/bin/view/UserGuide/]]
> -
> [[Getting
> started>>http://enterprise.xwiki.org/xwiki/bin/view/GettingStarted/]] -
> [[Syntax>>http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax]] -
> [[Administrator's
> Guide>>http://platform.xwiki.org/xwiki/bin/view/AdminGuide/]] -
> [[Developer's
> Guide>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/]] -
> [[Development Zone>>http://dev.xwiki.org/xwiki/bin/view/Main/]] -
> [[Platform
> Features>>http://platform.xwiki.org/xwiki/bin/view/Features/]] -
> [[Extensions>>http://extensions.xwiki.org/xwiki/bin/view/Main/WebHome]]
> -
> [[FAQ>>http://www.xwiki.org/xwiki/bin/view/FAQ/]]
> {{/velocity}}
> 
> Thanks
> -Vincent
> 
> 
 ___
 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
>>> 
>> 
>> ___
>> users mailin

Re: [xwiki-users] XWiki Syntax 2.0: is it possible to escape newline

2012-04-10 Thread Arnaud bourree
Hello,

I don't really understand need of velocity macro in you use-case.
Personally, when I want a new line in list, table ..., I used ((( )))
Then you have:
* [[Platform (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] -
 [[Component 
Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]](((
)))
* [[Writing XWiki
components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
-
 [[GitHub>>https://github.com/xwiki]](((
)))

Same result, there are always many path for same result :-D

Regards,

Arnaud.

2012/4/10 Frank Fischer :
> Perfect
>
> Frank
>
>
>
> On 04/10/2012 04:33 PM, Vincent Massol wrote:
>>
>> See below
>>
>> On Apr 10, 2012, at 4:28 PM, Frank Fischer wrote:
>>
>>> Ok - i did get what i wanted ;-) ,
>>>
>>> i tested your proposal with another example but
>>> was accustomed to the JSPWiki list syntax:
>>>
>>> *first line
>>> still first line
>>> *second line
>>> still second line
>>>
>>> If i put this whole list into the macro the second '*' is
>>> not at the start of the line. This (and a typo typed by
>>> myself) made me think that your first answer would
>>> not work for me.
>>>
>>> But putting each list item into a separate macro works
>>> well and is sufficient for me:
>>>
>>>
>>> === works ===
>>>
>>> * {{velocity filter="html"}}
>>> [[**Platform**
>>> (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] -
>>> [[Component
>>> Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]
>>> {{/velocity}}
>>> * {{velocity filter="html"}}
>>> [[Writing XWiki
>>> components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
>>> -
>>> [[GitHub>>https://github.com/xwiki]]
>>> {{/velocity}}
>>>
>>> === does not work (somewhat cleaner) ===
>>>
>>> {{velocity filter="html"}}
>>> * [[Platform (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]]
>>> -
>>>  [[Component
>>> Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]
>>> * [[Writing XWiki
>>> components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
>>> -
>>>  [[GitHub>>https://github.com/xwiki]]
>>> {{/velocity}}
>>
>> You need to read:
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Velocity+Macro+Filter
>>
>> It explains the various filters and how they work.
>>
>> The HTML filter doesn't put any new line.
>>
>> What you want  in your second example is:
>>
>> {{velocity filter="html"}}
>> * [[Platform (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]]
>> -
>>  [[Component
>> Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]$nl
>> * [[Writing XWiki
>> components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
>> -
>>  [[GitHub>>https://github.com/xwiki]]
>> {{/velocity}}
>>
>> (note the $nl to insert a new line).
>>
>> Thanks
>> -Vincent
>>
>>> Thank you again
>>>  Frank
>>>
 Yes it's possible ;)

 As I said in my answer this is already possible. Try this in your wiki:

 {{velocity filter="html"}}
 [[Platform (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]]
 -
 [[Component
 Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]
 -
 [[Writing XWiki
 components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
 -
 [[GitHub>>https://github.com/xwiki]] -
 [[User's Guide>>http://enterprise.xwiki.org/xwiki/bin/view/UserGuide/]]
 -
 [[Getting
 started>>http://enterprise.xwiki.org/xwiki/bin/view/GettingStarted/]] -
 [[Syntax>>http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax]] -
 [[Administrator's
 Guide>>http://platform.xwiki.org/xwiki/bin/view/AdminGuide/]] -
 [[Developer's
 Guide>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/]] -
 [[Development Zone>>http://dev.xwiki.org/xwiki/bin/view/Main/]] -
 [[Platform
 Features>>http://platform.xwiki.org/xwiki/bin/view/Features/]] -
 [[Extensions>>http://extensions.xwiki.org/xwiki/bin/view/Main/WebHome]]
 -
 [[FAQ>>http://www.xwiki.org/xwiki/bin/view/FAQ/]]
 {{/velocity}}

 Thanks
 -Vincent


>>> ___
>>> 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
>>
>
> ___
> 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 Syntax 2.0: is it possible to escape newline

2012-04-10 Thread Frank Fischer

Perfect

Frank


On 04/10/2012 04:33 PM, Vincent Massol wrote:

See below

On Apr 10, 2012, at 4:28 PM, Frank Fischer wrote:


Ok - i did get what i wanted ;-) ,

i tested your proposal with another example but
was accustomed to the JSPWiki list syntax:

*first line
still first line
*second line
still second line

If i put this whole list into the macro the second '*' is
not at the start of the line. This (and a typo typed by
myself) made me think that your first answer would
not work for me.

But putting each list item into a separate macro works
well and is sufficient for me:


=== works ===

* {{velocity filter="html"}}
[[**Platform** (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] -
[[Component 
Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]
{{/velocity}}
* {{velocity filter="html"}}
[[Writing XWiki 
components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
 -
[[GitHub>>https://github.com/xwiki]]
{{/velocity}}

=== does not work (somewhat cleaner) ===

{{velocity filter="html"}}
* [[Platform (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] -
  [[Component 
Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]
* [[Writing XWiki 
components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
 -
  [[GitHub>>https://github.com/xwiki]]
{{/velocity}}

You need to read:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Velocity+Macro+Filter

It explains the various filters and how they work.

The HTML filter doesn't put any new line.

What you want  in your second example is:

{{velocity filter="html"}}
* [[Platform (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] -
  [[Component 
Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]$nl
* [[Writing XWiki 
components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
 -
  [[GitHub>>https://github.com/xwiki]]
{{/velocity}}

(note the $nl to insert a new line).

Thanks
-Vincent


Thank you again
  Frank


Yes it's possible ;)

As I said in my answer this is already possible. Try this in your wiki:

{{velocity filter="html"}}
[[Platform (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] -
[[Component 
Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]] 
-
[[Writing XWiki 
components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
 -
[[GitHub>>https://github.com/xwiki]] -
[[User's Guide>>http://enterprise.xwiki.org/xwiki/bin/view/UserGuide/]] -
[[Getting started>>http://enterprise.xwiki.org/xwiki/bin/view/GettingStarted/]] 
-
[[Syntax>>http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax]] -
[[Administrator's Guide>>http://platform.xwiki.org/xwiki/bin/view/AdminGuide/]] 
-
[[Developer's Guide>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/]] -
[[Development Zone>>http://dev.xwiki.org/xwiki/bin/view/Main/]] -
[[Platform Features>>http://platform.xwiki.org/xwiki/bin/view/Features/]] -
[[Extensions>>http://extensions.xwiki.org/xwiki/bin/view/Main/WebHome]] -
[[FAQ>>http://www.xwiki.org/xwiki/bin/view/FAQ/]]
{{/velocity}}

Thanks
-Vincent



___
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



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


Re: [xwiki-users] RESTful API Issue

2012-04-10 Thread Aslam Sayyed
Thanks a lot Mauris.
In our current implementation, we consume virtual wikis only through REST
api and we have extended it to add few functionalities as we needed.

As per your comment, I'm thinking to export existing class definition to
xar / xml and import it to other virtual wiki. Can I copy/create class
definition programatically to other virtual wiki. Pointer to XWiki API /
plugin / class reference will be helpful.

Thanks again.
Regards,
Aslam Sayyed


On Mon, Apr 9, 2012 at 10:17 PM, Aslam Sayyed wrote:

> Hi All,
> I'm using RESTful API, I'm trying to create Xwiki Object and attach to
> existing document using
> /wikis/{wikiName}/spaces/{spaceName}/pages/{pageName}/objects POST method
> Object customObject = new Object();
> customObject.setClassName("XWiki.MyCustomClass");
> Property property = new Property();
> property.setType("com.xpn.xwiki.objects.classes.StringClass");
> property.setName("RefTags");
> property.setValue("Food");
> customObject.withProperties(property);
> ClientResponse response =
>
> resource.accept("application/xml").post(ClientResponse.class, customObject);
> int httpResponseCode = response.getStatus();
> Object resObj = response.getEntity(Object.class);
>
> Problem is Class's Object gets attached to document but properties aren't.
>
> I even tried url encode format found property#name=value
>
> Please help / suggest solution.
> Thanks in advance,
> Aslam Sayyed
>
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Components : Bridge to old core and objects ?

2012-04-10 Thread Diego Jesus
Ok, got it to work. The small test component is running just fine in
XWiki. However, if I try to run unit tests with maven I get the
following error:

Results :

Failed tests:
  testGetDocument(com.aims.DocumentScriptTest): unexpected invocation:
context.getContext()
no expectations specified: did you...
 - forget to start an expectation with a cardinality clause?
 - call a mocked method to specify the parameter of an expectation?
what happened before this: nothing!

This are the relevant parts of my code:

@Component
@Named("documentScript")
@Singleton
public class DocumentScript implements ScriptService
{
@Inject
Execution context;


public Document GetDocument(int id){
try {
ExecutionContext context = this.context.getContext();
// The exception trace points here
XWikiContext wikiContext =
(XWikiContext)context.getProperty("xwikicontext");
XWiki wiki = wikiContext.getWiki();
 



No dia 10 de Abril de 2012 14:37, Marius Dumitru Florea
 escreveu:
>
> On Tue, Apr 10, 2012 at 4:34 PM, Thomas Mortagne
>  wrote:
> > Probably mean you don't have the right configuration in your
> > .m2/settings.xml. See
> > http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven
>
> Yes, I can see the 4.0-SNAPSHOT version of xwiki-platform-oldcore in
> the maven repo 
> http://maven.xwiki.org/snapshots/org/xwiki/platform/xwiki-platform-oldcore/4.0-SNAPSHOT/
> .
>
> Hope this helps,
> Marius
>
> >
> > On Tue, Apr 10, 2012 at 3:24 PM, _diego  wrote:
> >> Well, I've been trying, but maven doesn't find that dependency.
> >>
> >> I've tried with several versions of the following:
> >>
> >> 
> >>    org.xwiki.platform
> >>    xwiki-platform-oldcore
> >>    4.0-SNAPSHOT
> >> 
> >>
> >> I also search in maven repository but there is no reference there to the 
> >> old
> >> core. Should I build the source from git and include the jar in my project?
> >>
> >> --
> >> View this message in context: 
> >> http://xwiki.475771.n2.nabble.com/Components-Bridge-to-old-core-and-objects-tp7208056p7452865.html
> >> Sent from the XWiki- Users mailing list archive at Nabble.com.
> >> ___
> >> users mailing list
> >> users@xwiki.org
> >> http://lists.xwiki.org/mailman/listinfo/users
> >
> >
> >
> > --
> > Thomas Mortagne
> > ___
> > 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
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki Syntax 2.0: is it possible to escape newline

2012-04-10 Thread Vincent Massol
See below

On Apr 10, 2012, at 4:28 PM, Frank Fischer wrote:

> Ok - i did get what i wanted ;-) ,
> 
> i tested your proposal with another example but
> was accustomed to the JSPWiki list syntax:
> 
> *first line
> still first line
> *second line
> still second line
> 
> If i put this whole list into the macro the second '*' is
> not at the start of the line. This (and a typo typed by
> myself) made me think that your first answer would
> not work for me.
> 
> But putting each list item into a separate macro works
> well and is sufficient for me:
> 
> 
> === works ===
> 
> * {{velocity filter="html"}}
> [[**Platform** (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] -
> [[Component 
> Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]
> {{/velocity}}
> * {{velocity filter="html"}}
> [[Writing XWiki 
> components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
>  -
> [[GitHub>>https://github.com/xwiki]]
> {{/velocity}}
> 
> === does not work (somewhat cleaner) ===
> 
> {{velocity filter="html"}}
> * [[Platform (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] -
>  [[Component 
> Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]
> * [[Writing XWiki 
> components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
>  -
>  [[GitHub>>https://github.com/xwiki]]
> {{/velocity}}

You need to read:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Velocity+Macro+Filter

It explains the various filters and how they work.

The HTML filter doesn't put any new line.

What you want  in your second example is:

{{velocity filter="html"}}
* [[Platform (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] -
 [[Component 
Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]$nl
* [[Writing XWiki 
components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
 -
 [[GitHub>>https://github.com/xwiki]]
{{/velocity}}

(note the $nl to insert a new line).

Thanks
-Vincent

> Thank you again
>  Frank
> 
>> Yes it's possible ;)
>> 
>> As I said in my answer this is already possible. Try this in your wiki:
>> 
>> {{velocity filter="html"}}
>> [[Platform (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] -
>> [[Component 
>> Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]
>>  -
>> [[Writing XWiki 
>> components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
>>  -
>> [[GitHub>>https://github.com/xwiki]] -
>> [[User's Guide>>http://enterprise.xwiki.org/xwiki/bin/view/UserGuide/]] -
>> [[Getting 
>> started>>http://enterprise.xwiki.org/xwiki/bin/view/GettingStarted/]] -
>> [[Syntax>>http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax]] -
>> [[Administrator's 
>> Guide>>http://platform.xwiki.org/xwiki/bin/view/AdminGuide/]] -
>> [[Developer's Guide>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/]] -
>> [[Development Zone>>http://dev.xwiki.org/xwiki/bin/view/Main/]] -
>> [[Platform Features>>http://platform.xwiki.org/xwiki/bin/view/Features/]] -
>> [[Extensions>>http://extensions.xwiki.org/xwiki/bin/view/Main/WebHome]] -
>> [[FAQ>>http://www.xwiki.org/xwiki/bin/view/FAQ/]]
>> {{/velocity}}
>> 
>> Thanks
>> -Vincent
>> 
>> 
> 
> ___
> 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 Syntax 2.0: is it possible to escape newline

2012-04-10 Thread Frank Fischer

Ok - i did get what i wanted ;-) ,

i tested your proposal with another example but
was accustomed to the JSPWiki list syntax:

*first line
still first line
*second line
still second line

If i put this whole list into the macro the second '*' is
not at the start of the line. This (and a typo typed by
myself) made me think that your first answer would
not work for me.

But putting each list item into a separate macro works
well and is sufficient for me:


=== works ===

* {{velocity filter="html"}}
[[**Platform** 
(Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] -
[[Component 
Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]

{{/velocity}}
* {{velocity filter="html"}}
[[Writing XWiki 
components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]] 
-

[[GitHub>>https://github.com/xwiki]]
{{/velocity}}

=== does not work (somewhat cleaner) ===

{{velocity filter="html"}}
* [[Platform (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] -
  [[Component 
Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]
* [[Writing XWiki 
components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]] 
-

  [[GitHub>>https://github.com/xwiki]]
{{/velocity}}

Thank you again
  Frank


Yes it's possible ;)

As I said in my answer this is already possible. Try this in your wiki:

{{velocity filter="html"}}
[[Platform (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] -
[[Component 
Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]] 
-
[[Writing XWiki 
components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
 -
[[GitHub>>https://github.com/xwiki]] -
[[User's Guide>>http://enterprise.xwiki.org/xwiki/bin/view/UserGuide/]] -
[[Getting started>>http://enterprise.xwiki.org/xwiki/bin/view/GettingStarted/]] 
-
[[Syntax>>http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax]] -
[[Administrator's Guide>>http://platform.xwiki.org/xwiki/bin/view/AdminGuide/]] 
-
[[Developer's Guide>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/]] -
[[Development Zone>>http://dev.xwiki.org/xwiki/bin/view/Main/]] -
[[Platform Features>>http://platform.xwiki.org/xwiki/bin/view/Features/]] -
[[Extensions>>http://extensions.xwiki.org/xwiki/bin/view/Main/WebHome]] -
[[FAQ>>http://www.xwiki.org/xwiki/bin/view/FAQ/]]
{{/velocity}}

Thanks
-Vincent




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


Re: [xwiki-users] XWiki Syntax 2.0: is it possible to escape newline

2012-04-10 Thread Vincent Massol
Hi Franck,

See below

On Apr 10, 2012, at 3:28 PM, Frank Fischer wrote:

> Thank you both for your quick answers!
> 
> http://jira.xwiki.org/browse/XRENDERING-167  really is my problem.
> 
> A quick (and bad) example is a list of links in one line:
> -
> xwiki: [[Platform 
> (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] - [[Component 
> Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]
>  - [[Writing XWiki 
> components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
>  - [[GitHub>>https://github.com/xwiki]] - [[User's 
> Guide>>http://enterprise.xwiki.org/xwiki/bin/view/UserGuide/]] - [[Getting 
> started>>http://enterprise.xwiki.org/xwiki/bin/view/GettingStarted/]] - 
> [[Syntax>>http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax]] - 
> [[Administrator's 
> Guide>>http://platform.xwiki.org/xwiki/bin/view/AdminGuide/]] - [[Developer's 
> Guide>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/]] - [[Development 
> Zone>>http://dev.xwiki.org/xwiki/bin/view/Main/]] - [[Platform 
> Features>>http://platform.xwiki.org/xwiki/bin/view/Features/]] - 
> [[Extensions>>http://extensions.xwiki.org/xwiki/bin/view/Main/WebHome]] - 
> [[FAQ>>http://www.xwiki.org/xwiki/bin/view/FAQ/]]
> -
> this is rendered as
> 
> xwiki:Platform (Features] 
> -Component Module 
> -Writing
>  XWiki components 
> -GitHub 
> -User's Guide 
> -Getting started 
> -Syntax 
> -Administrator's 
> Guide -Developer's 
> Guide -Development Zone 
> -Platform Features 
> -Extensions 
> -FAQ 
> 
> 
> -
> 
> If i needed to edit this (wrapped) line it is very hard to find something 
> (where is the GitHub link?).
> 
> this way:
> -
> xwiki: ~
> [[Platform (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] - ~
> [[Component 
> Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]
>  - ~
> [[Writing XWiki 
> components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
>  - ~
> [[GitHub>>https://github.com/xwiki]] - ~
> [[User's Guide>>http://enterprise.xwiki.org/xwiki/bin/view/UserGuide/]] - ~
> [[Getting 
> started>>http://enterprise.xwiki.org/xwiki/bin/view/GettingStarted/]] - ~
> [[Syntax>>http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax]] - ~
> [[Administrator's 
> Guide>>http://platform.xwiki.org/xwiki/bin/view/AdminGuide/]] - ~
> [[Developer's Guide>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/]] - ~
> [[Development Zone>>http://dev.xwiki.org/xwiki/bin/view/Main/]] - ~
> [[Platform Features>>http://platform.xwiki.org/xwiki/bin/view/Features/]] - ~
> [[Extensions>>http://extensions.xwiki.org/xwiki/bin/view/Main/WebHome]] - ~
> [[FAQ>>http://www.xwiki.org/xwiki/bin/view/FAQ/]]
> -
> it would be much easier.
> 
> A macro that only escapes the newlines but preserves
> all the markup for the renderer might be a solution.
> 
> {{filter name="escapeNewlines"}}
> ...
> line one ~
> still line one
> second line
> ...
> {{/filter}}
> 
> But i am new to XWiki (but wrote a lot of private
> code for JSPWiki) so i don't know if this is possible.

Yes it's possible ;)

As I said in my answer this is already possible. Try this in your wiki:

{{velocity filter="html"}}
[[Platform (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] - 
[[Component 
Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]] 
- 
[[Writing XWiki 
components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
 - 
[[GitHub>>https://github.com/xwiki]] - 
[[User's Guide>>http://enterprise.xwiki.org/xwiki/bin/view/UserGuide/]] - 
[[Getting started>>http://enterprise.xwiki.org/xwiki/bin/view/GettingStarted/]] 
- 
[[Syntax>>http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax]] - 
[[Administrator's Guide>>http://platform.xwiki.org/xwiki/bin/view/AdminGuide/]] 
- 
[[Developer's Guide>>http://platform.xwiki.org/xwiki/bin/view/De

Re: [xwiki-users] Components : Bridge to old core and objects ?

2012-04-10 Thread Marius Dumitru Florea
On Tue, Apr 10, 2012 at 4:34 PM, Thomas Mortagne
 wrote:
> Probably mean you don't have the right configuration in your
> .m2/settings.xml. See
> http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven

Yes, I can see the 4.0-SNAPSHOT version of xwiki-platform-oldcore in
the maven repo 
http://maven.xwiki.org/snapshots/org/xwiki/platform/xwiki-platform-oldcore/4.0-SNAPSHOT/
.

Hope this helps,
Marius

>
> On Tue, Apr 10, 2012 at 3:24 PM, _diego  wrote:
>> Well, I've been trying, but maven doesn't find that dependency.
>>
>> I've tried with several versions of the following:
>>
>> 
>>    org.xwiki.platform
>>    xwiki-platform-oldcore
>>    4.0-SNAPSHOT
>> 
>>
>> I also search in maven repository but there is no reference there to the old
>> core. Should I build the source from git and include the jar in my project?
>>
>> --
>> View this message in context: 
>> http://xwiki.475771.n2.nabble.com/Components-Bridge-to-old-core-and-objects-tp7208056p7452865.html
>> Sent from the XWiki- Users mailing list archive at Nabble.com.
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>
>
>
> --
> Thomas Mortagne
> ___
> 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] Components : Bridge to old core and objects ?

2012-04-10 Thread Thomas Mortagne
Probably mean you don't have the right configuration in your
.m2/settings.xml. See
http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven

On Tue, Apr 10, 2012 at 3:24 PM, _diego  wrote:
> Well, I've been trying, but maven doesn't find that dependency.
>
> I've tried with several versions of the following:
>
> 
>    org.xwiki.platform
>    xwiki-platform-oldcore
>    4.0-SNAPSHOT
> 
>
> I also search in maven repository but there is no reference there to the old
> core. Should I build the source from git and include the jar in my project?
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Components-Bridge-to-old-core-and-objects-tp7208056p7452865.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



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


[xwiki-users] How to set a class property as topFilter in the livetable?

2012-04-10 Thread Alex
Hey,

i've a  problem, i made a class with some properties and on the class sheet
i have put
a livetable that shows the docs from another class.
Now i want to filter the livetable that is in the first class on every side
with a property of it.

But i dont know how to get the property of the first class and to set it as
a variable to the topFilter of the livetable (shows the docs from an other
class)?

Here is the code:

#set ($pure = $doc.display("number", $obj))
$pure
//HERE the variable shows the variable correctly

{Livetable}
"topFilters": ''
//HERE the variable "pure" has no content
{livetable}



Please help


Thanks, Alex


--
View this message in context: 
http://xwiki.475771.n2.nabble.com/How-to-set-a-class-property-as-topFilter-in-the-livetable-tp7452889p7452889.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki Syntax 2.0: is it possible to escape newline

2012-04-10 Thread Frank Fischer

of course it is rendered as:

xwiki: Platform (Features)  - Component Module - Writing XWiki 
components  - GitHub - User's Guide  - Getting started  - Syntax  - 
Administrator's Guide - Developer's Guide - Development Zone - Platform 
Features - Extensions - FAQ


Frank

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


Re: [xwiki-users] XWiki Syntax 2.0: is it possible to escape newline

2012-04-10 Thread Frank Fischer

Thank you both for your quick answers!

http://jira.xwiki.org/browse/XRENDERING-167  really is my problem.

A quick (and bad) example is a list of links in one line:
-
xwiki: [[Platform 
(Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] - 
[[Component 
Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]] 
- [[Writing XWiki 
components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]] 
- [[GitHub>>https://github.com/xwiki]] - [[User's 
Guide>>http://enterprise.xwiki.org/xwiki/bin/view/UserGuide/]] - 
[[Getting 
started>>http://enterprise.xwiki.org/xwiki/bin/view/GettingStarted/]] - 
[[Syntax>>http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax]] - 
[[Administrator's 
Guide>>http://platform.xwiki.org/xwiki/bin/view/AdminGuide/]] - 
[[Developer's 
Guide>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/]] - 
[[Development Zone>>http://dev.xwiki.org/xwiki/bin/view/Main/]] - 
[[Platform 
Features>>http://platform.xwiki.org/xwiki/bin/view/Features/]] - 
[[Extensions>>http://extensions.xwiki.org/xwiki/bin/view/Main/WebHome]] 
- [[FAQ>>http://www.xwiki.org/xwiki/bin/view/FAQ/]]

-
this is rendered as

xwiki:Platform (Features] 
-Component Module 
-Writing 
XWiki components 
-GitHub 
-User's Guide 
-Getting started 
-Syntax 
-Administrator's 
Guide -Developer's 
Guide -Development 
Zone -Platform Features 
-Extensions 
-FAQ 



-

If i needed to edit this (wrapped) line it is very hard to find 
something (where is the GitHub link?).


this way:
-
xwiki: ~
[[Platform (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] - ~
[[Component 
Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]] 
- ~
[[Writing XWiki 
components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]] 
- ~

[[GitHub>>https://github.com/xwiki]] - ~
[[User's Guide>>http://enterprise.xwiki.org/xwiki/bin/view/UserGuide/]] - ~
[[Getting 
started>>http://enterprise.xwiki.org/xwiki/bin/view/GettingStarted/]] - ~

[[Syntax>>http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax]] - ~
[[Administrator's 
Guide>>http://platform.xwiki.org/xwiki/bin/view/AdminGuide/]] - ~
[[Developer's 
Guide>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/]] - ~

[[Development Zone>>http://dev.xwiki.org/xwiki/bin/view/Main/]] - ~
[[Platform 
Features>>http://platform.xwiki.org/xwiki/bin/view/Features/]] - ~

[[Extensions>>http://extensions.xwiki.org/xwiki/bin/view/Main/WebHome]] - ~
[[FAQ>>http://www.xwiki.org/xwiki/bin/view/FAQ/]]
-
it would be much easier.

A macro that only escapes the newlines but preserves
all the markup for the renderer might be a solution.

{{filter name="escapeNewlines"}}
...
line one ~
still line one
second line
...
{{/filter}}

But i am new to XWiki (but wrote a lot of private
code for JSPWiki) so i don't know if this is possible.

Frank



On 04/10/2012 02:50 PM, Thomas Mortagne wrote:

See http://jira.xwiki.org/browse/XRENDERING-167

On Tue, Apr 10, 2012 at 2:30 PM, Frank Fischer  wrote:

Hello,
using a non-WYSIWIG editor my text lines can get quite large
(especially when some markup is included).

With 1.0 syntax this was no problem:

  line one
  still line one

is rendered in one line.

Is it possible to achieve a similar behaviour with 2.0 (2.1)?

Like:

  line one ~
  still line one

or:

  line one \
  still line one

(both examples result in two rendered lines)

(from http://en.wikipedia.org/wiki/%5C: In the context of line-oriented
text, especially source
code for some programming languages, it is often used at the end of a line
to indicate that
the trailing newline character should be ignored, so that the following line
is treated as if it
were part of the current line. In this context it may be called a
"continuation". The GNU make
manual says, "We split each long line into two lines using
backslash-newline; this is like using
one long line, but

Re: [xwiki-users] Components : Bridge to old core and objects ?

2012-04-10 Thread _diego
Well, I've been trying, but maven doesn't find that dependency.

I've tried with several versions of the following:


org.xwiki.platform
xwiki-platform-oldcore
4.0-SNAPSHOT


I also search in maven repository but there is no reference there to the old
core. Should I build the source from git and include the jar in my project?

--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Components-Bridge-to-old-core-and-objects-tp7208056p7452865.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] RESTful API Issue

2012-04-10 Thread Marius Dumitru Florea
On Tue, Apr 10, 2012 at 3:21 PM, Aslam Sayyed  wrote:
> Some more info on this issue
>
> Class: XWiki.MyCustomClass exists in default wiki "XWiki". But I'm Trying
> to add object as shown below in another wiki (say virtualwiki1).

Currently you can't add objects of a type/class defined in a different
wiki. In other words, the class reference (Space.ClassName) is always
relative to the wiki where you add the object. So the code that adds
the object looks for XWiki.MyCustomClass in virtualwiki1. You need to
copy/move the class there.

Hope this helps,
Marius

>
> On Mon, Apr 9, 2012 at 10:17 PM, Aslam Sayyed wrote:
>
>> Hi All,
>> I'm using RESTful API, I'm trying to create Xwiki Object and attach to
>> existing document using
>> /wikis/{wikiName}/spaces/{spaceName}/pages/{pageName}/objects POST method
>>         Object customObject = new Object();
>>         customObject.setClassName("XWiki.MyCustomClass");
>>         Property property = new Property();
>>         property.setType("com.xpn.xwiki.objects.classes.StringClass");
>>         property.setName("RefTags");
>>         property.setValue("Food");
>>         customObject.withProperties(property);
>>         ClientResponse response =
>>
>> resource.accept("application/xml").post(ClientResponse.class, customObject);
>>         int httpResponseCode = response.getStatus();
>>         Object resObj = response.getEntity(Object.class);
>>
>> Problem is Class's Object gets attached to document but properties aren't.
>>
>> I even tried url encode format found property#name=value
>>
>> Please help / suggest solution.
>> Thanks in advance,
>> Aslam Sayyed
>>
>>
> ___
> 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 Syntax 2.0: is it possible to escape newline

2012-04-10 Thread Thomas Mortagne
See http://jira.xwiki.org/browse/XRENDERING-167

On Tue, Apr 10, 2012 at 2:30 PM, Frank Fischer  wrote:
> Hello,
> using a non-WYSIWIG editor my text lines can get quite large
> (especially when some markup is included).
>
> With 1.0 syntax this was no problem:
>
>  line one
>  still line one
>
> is rendered in one line.
>
> Is it possible to achieve a similar behaviour with 2.0 (2.1)?
>
> Like:
>
>  line one ~
>  still line one
>
> or:
>
>  line one \
>  still line one
>
> (both examples result in two rendered lines)
>
> (from http://en.wikipedia.org/wiki/%5C: In the context of line-oriented
> text, especially source
> code for some programming languages, it is often used at the end of a line
> to indicate that
> the trailing newline character should be ignored, so that the following line
> is treated as if it
> were part of the current line. In this context it may be called a
> "continuation". The GNU make
> manual says, "We split each long line into two lines using
> backslash-newline; this is like using
> one long line, but is easier to read.")
>
> Thank You
>   Frank
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



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


Re: [xwiki-users] XWiki Syntax 2.0: is it possible to escape newline

2012-04-10 Thread Vincent Massol
Hi Frank,

On Apr 10, 2012, at 2:30 PM, Frank Fischer wrote:

> Hello,
> using a non-WYSIWIG editor my text lines can get quite large
> (especially when some markup is included).
> 
> With 1.0 syntax this was no problem:
> 
>  line one
>  still line one
> 
> is rendered in one line.
> 
> Is it possible to achieve a similar behaviour with 2.0 (2.1)?
> 
> Like:
> 
>  line one ~
>  still line one
> 
> or:
> 
>  line one \
>  still line one
> 
> (both examples result in two rendered lines)
> 
> (from http://en.wikipedia.org/wiki/%5C: In the context of line-oriented text, 
> especially source
> code for some programming languages, it is often used at the end of a line to 
> indicate that
> the trailing newline character should be ignored, so that the following line 
> is treated as if it
> were part of the current line. In this context it may be called a 
> "continuation". The GNU make
> manual says, "We split each long line into two lines using backslash-newline; 
> this is like using
> one long line, but is easier to read.")

When we created the XWiki Syntax 2.0 we decided that all characters should be 
meaningful so if you put a newline it's going to be rendered.

Could you explain the problem you have with it? You say your lines can get 
quite large. But whatever editor you're using, it's usually going to wrap them 
so that they fit on your screen.

Now if you really want this behavior you could use the {{velocity}} macro which 
supports filters (see 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Velocity+Macro+Filter).

For example:

{{velocity filter="html"}}
line one
still line one
{{/velocity}}

I agree that we could easily refactor this in a more generic macro independent 
of scripting languages. For example something like:

{{filter name="html"}}
line one
still line one
{{/filter}}

Would that answer your need?

We could decide to escape the last char as you suggested too. I'm not sure 
about this though but why not. It would need a vote since it's changing the 
current syntax. Also it could only be implemented in XWiki Syntax 2.2 since we 
keep backward compatibility for all syntaxes.

Let us know what would work for you.

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


[xwiki-users] XWiki Syntax 2.0: is it possible to escape newline

2012-04-10 Thread Frank Fischer

Hello,
using a non-WYSIWIG editor my text lines can get quite large
(especially when some markup is included).

With 1.0 syntax this was no problem:

  line one
  still line one

is rendered in one line.

Is it possible to achieve a similar behaviour with 2.0 (2.1)?

Like:

  line one ~
  still line one

or:

  line one \
  still line one

(both examples result in two rendered lines)

(from http://en.wikipedia.org/wiki/%5C: In the context of line-oriented 
text, especially source
code for some programming languages, it is often used at the end of a 
line to indicate that
the trailing newline character should be ignored, so that the following 
line is treated as if it
were part of the current line. In this context it may be called a 
"continuation". The GNU make
manual says, "We split each long line into two lines using 
backslash-newline; this is like using

one long line, but is easier to read.")

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


Re: [xwiki-users] RESTful API Issue

2012-04-10 Thread Aslam Sayyed
Some more info on this issue

Class: XWiki.MyCustomClass exists in default wiki "XWiki". But I'm Trying
to add object as shown below in another wiki (say virtualwiki1).

On Mon, Apr 9, 2012 at 10:17 PM, Aslam Sayyed wrote:

> Hi All,
> I'm using RESTful API, I'm trying to create Xwiki Object and attach to
> existing document using
> /wikis/{wikiName}/spaces/{spaceName}/pages/{pageName}/objects POST method
> Object customObject = new Object();
> customObject.setClassName("XWiki.MyCustomClass");
> Property property = new Property();
> property.setType("com.xpn.xwiki.objects.classes.StringClass");
> property.setName("RefTags");
> property.setValue("Food");
> customObject.withProperties(property);
> ClientResponse response =
>
> resource.accept("application/xml").post(ClientResponse.class, customObject);
> int httpResponseCode = response.getStatus();
> Object resObj = response.getEntity(Object.class);
>
> Problem is Class's Object gets attached to document but properties aren't.
>
> I even tried url encode format found property#name=value
>
> Please help / suggest solution.
> Thanks in advance,
> Aslam Sayyed
>
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xwiki-enterprise-common 3.5 upgrade/installation failing on debian squeeze

2012-04-10 Thread Thomas Mortagne
Hi Matt,

Sorry did not had much time to look at it before.

What package did you installed exactly ? Since 3.5 you should install
one of the xwiki-enterprise-tomcat- (for example
xwiki-enterprise-tomcat6-mysql) packages.

On Sun, Apr 8, 2012 at 10:48 PM, Matt Hammond
 wrote:
> I spoke too soon. My xwiki installation doesn't want to start up :-(
>
> I'm seeing the same problem with tomcat6 or 5.5. I have xwiki set as my
> ROOT webapp. The problems seem to start with:
>
> """
> INFO: Deploying configuration descriptor ROOT.xml
> 08-Apr-2012 21:33:36 org.apache.catalina.core.StandardContext listenerStart
> SEVERE: Exception sending context initialized event to listener instance
> of class org.xwiki.container.servlet.XWikiServletContextListener
> java.lang.RuntimeException: Failed to find the Observation Manager component
> """
>
> More complete trace from catalina.out here: http://pastebin.com/28C5n5fJ
>
>
> Any suggestions on what I could do to fix this?
>
>
> cheers
>
>
>
> Matt
>
>
>> Update:
>>
>> uninstalling, then installing the package again seems to have fixed the
>> issue.
>>
>> Just need to check all my configs and db contents are still in place :-)
>> (all backed up of course!)
>>
>>
>>
>> Matt
>>
>>> Hi,
>>>
>>> I've been trying to upgrade a 3.3 installation of the
>>> xwiki-enterprise-common package to 3.5 today. Unfortunately it seems to
>>> have failed, leaving me with no installation:
>>>
>>> It took me through modifications to the config files in /etc/xwiki,
>>> enabling me to keep my changes and update where appropriate, but after
>>> that point:
>>>
>>> """
>>> Installing new version of config file /etc/xwiki/xwiki.properties ...
>>> ln: target `/usr/lib/xwiki/WEB-INF/' is not a directory: No such file or
>>> directory
>>> dpkg: error processing xwiki-enterprise-common (--configure):
>>>  subprocess installed post-installation script returned error exit
>>> status
>>> 1
>>> configured to not write apport reports
>>>                                       Errors were encountered while
>>> processing:
>>>  xwiki-enterprise-common
>>> E: Sub-process /usr/bin/dpkg returned an error code (1)
>>> A package failed to install.  Trying to recover:
>>>
>>> Current status: 0 updates [-1].
>>> """
>>>
>>> Manually creating the /usr/lib/xwiki and /usr/lib/xwiki/WEB-INF
>>> directories and then doing an aptitude (re)install results in
>>> installation
>>> completing and files being placed into /usr/lib/xwiki/WEB-INF; but there
>>> are no files created in /usr/lib/xwiki, as indicated that there should
>>> be
>>> [1]
>>>
>>> Any suggestions?
>>>
>>>
>>> Matt
>>>
>>> [1]
>>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT#HXWiki
>>>
>>>
>>>
>>>
>>>
>>> --
>>> | Matt Hammond
>>> |
>>> | [anything you like unless it bounces] 'at' matthammond 'dot' org
>>>
>>>
>>
>>
>> --
>>
>>
>
>
> --
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



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