Re: [xwiki-users] unable to deploy xwiki on JBoss 5

2011-01-31 Thread Sergiu Dumitriu
On 02/01/2011 07:04 AM, smita srivastava wrote:
> Hi Dumitriu,
> Thanks for the reply . However,I am deploying xwiki as an exploded webapp 
> only. xwiki.war has been exploded into the directory xwiki.war and kept 
> inside the server/default/deploy/ directory of JBoss.
>

Hm, indeed, I've searched a bit about this and it seems that JBoss 
returns VFS URLs all the time.

Looks like the only solution is to manually pre-process the URLs before 
passing them to the org.reflections.Reflections class.

In the meantime, you can simply remove the xwiki-core-extension* jars 
from WEB-INF/lib and try again. The extension manager is not that 
critical at the moment.

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


Re: [xwiki-users] unable to deploy xwiki on JBoss 5

2011-01-31 Thread smita srivastava
Hi Dumitriu,
Thanks for the reply . However,I am deploying xwiki as an exploded webapp only. 
xwiki.war has been exploded into the directory xwiki.war and kept inside the 
server/default/deploy/ directory of JBoss. 


On Mon, 31 Jan 2011 03:48:26 +0530 Sergiu Dumitriu  wrote

>On 01/28/2011 11:16 AM, smita srivastava wrote:

>> I am trying to deploy xwiki on JBoss 5 using HSQL database. I have

>> followed the Installation steps. When i start JBoss ,it is unable to

>> deploy xwiki.war . The other wars in the application are however

>> deployed. The error message is given below.

>

>...

>

>> Exception: could not create

>> Vfs.Dir from url, no matching UrlType was found

>> 
[vfszip:/F:/gid_1/jboss/server/default/deploy/xwiki-enterprise-web-2.7.war/WEB-INF/lib/xwiki-core-rendering-macro-groovy-2.7.jar/META-INF/maven/]either

>> use fromur-l(final URL url, final List<UrlType> 
urlTypes) or

>> use the static setDefaultURLTypes(final List<UrlType> 
urlTypes)

>> or addDefaultURLTypes(UrlType urlType) with your specialized UrlType.

>

>This looks like a limitation in the Reflections library, it can only 

>handle file: URLs, or standard in-jar paths containing ".jar!" in them.

>

>The problem is that JBoss tries to deploy the war as an archive, 

>virtually uncompressed at runtime, thus it creates URLs with the vfszip 

>protocol.

>

>Can you deploy the war as an exploded webapp?

>

>-- 

>Sergiu Dumitriu

>http://purl.org/net/sergiu/

>___

>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


[xwiki-users] [xem] Wiki alias not found exception

2011-01-31 Thread Stéphane Laurière
Hi everyone,

I'm running XEM based on XE 2.6.33077 with several wikis which behave
normally. However, I get plenty of exceptions in the log files such as
the one below. I checked what could be wrong with the documents having
an attached XWikiServerClass instance but I cannot find anything
suspect, and, again, the wikis seem to behave perfectly well.

Do you have any idea why I get this exception and how I can stop having
it raised?

==
ERROR wikimanager.WikiManagerPluginApi - Wiki [xwiki_edos] alias cant be
found
com.xpn.xwiki.plugin.wikimanager.WikiManagerException: Error number
50034 in 5: com.xpn.xwiki.plugin.wikimanager.WikiManagerPlugin: Wiki
alias [xwiki_edos] document does not exist
Wrapped Exception: Error number 2 in 2: xwiki_edos object does not exist

[...]
com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.XObjectDocumentDoesNotExistException:
Error number 2 in 2: xwiki_edos object does not exist
at
com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractXClassManager.getXObjectDocument(AbstractXClassManager.java:821)
at
com.xpn.xwiki.plugin.wikimanager.doc.XWikiServerClass.getXObjectDocument(XWikiServerClass.java:440)
==

Thanks and cheers

Stéphane


-- 
Stéphane Laurière
Mandriva http://mandriva.com

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


Re: [xwiki-users] [Extensions] Space Color Theme

2011-01-31 Thread Guillaume Lerouge
Someone's having fun with color themes lately ;-)

Keep the nice themes coming!

Guillaume

On Mon, Jan 24, 2011 at 09:39, Raluca Stavro  wrote:

> Hello all,
>
> I added a new ('Space') Color Theme extension on xwiki.org.
> Grab it from here:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Space+ColorTheme
> .
>
> Raluca.
> ___
> 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] How to produce a doc from a set of XWiki pages ?Youradvice is welcome

2011-01-31 Thread Vincent Massol

On Jan 31, 2011, at 3:51 PM, Sergiu Dumitriu wrote:

> On 01/31/2011 03:10 PM, Le Génie wrote:
>> Final episode, the multipage export.
>> The images included in the child pages are never present in the generated
>> pdf. In the log, a lot of "Image not found" messages appear. In fact, the
>> images of a child page are looked up in the primary one.
>> 
>> Tell me if you want more details.
> 
> I think this is known, it's caused by the fact that image:filename.png 
> doesn't use the correct base document. It's a problem with the rendering 
> engine,

Yes i have that on my todo to fix. As Sergiu said, absolute refs should work 
fine.

Thanks
-Vincent

> not with the PDF export. Can you try to use the full reference 
> for images, as in image:real.docum...@filename.png, and see if it works?
> 
>> 
>> 
>> 2011/1/31 Le Génie
>> 
>>> Hi Sergiu,
>>> 
>>> I'm testing with the 3.0 snapshot.
>>> 
>>> Image 1 [[image:Copie01.jpg||width="50%"]] PDF ok
>>> Image 2 [[image:Copie02.jpg||height="65%" width="65%"]] PDF ok
>>> Image 3 [[image:Copie03.jpg||width="400px"]] DOES NOT appear in the PDF
>>> 
>>> Now I will test the multipage PDF export.
>>> 
>>> Regards,
>>> Maxime
>>> 
>>> 
>>> 2011/1/30 Sergiu Dumitriu
>>> 
>>> On 01/28/2011 09:57 AM, Schömer, Jörg wrote:
> Hi all,
> 
> the PDF export works fine if the width attribute is set in percent, but
 when measured in pixel the image is missing.
> 
> XWIKI ENTERPRISE 2.6.33065
 
 I made some improvements in the PDF export handling of images (only on
 trunk at the moment, will be part of the future 3.0M2). Could someone
 verify this works fine for their images? Download the latest build from
 
 http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-jetty-hsqldb/3.0-SNAPSHOT/
 and check the PDF export.
 
> Best regards,
>   Jörg
> 
> 
> -Original Message-
> From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On
 Behalf Of Schömer, Jörg
> Sent: Tuesday, January 11, 2011 11:01 AM
> To: XWiki Users
> Subject: Re: [xwiki-users] How to produce a doc from a set of XWiki
 pages ?Youradvice is welcome
> 
> Hi Maxime,
> 
> I figured out, that images with attributes width or hight are not
 rendered into the PDF. Remove the attributes and try again.
> 
> e.g.
> [[image:your.png||height="480" width="640"]]
> should be changed to
> [[image:your.png]]
> 
> Best regards,
>   Jörg
> 
> -Ursprüngliche Nachricht-
> Von: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Im
 Auftrag von Le Génie
> Gesendet: Freitag, 7. Januar 2011 13:04
> An: XWiki Users
> Betreff: [xwiki-users] How to produce a doc from a set of XWiki pages ?
 Youradvice is welcome
> 
> Hi XWikiers,
> 
> We have written a software specification (SRD) inside our wiki. This
> specification is a set of pages with graphics (as attached images) and
> mockups (using Balsamiq Mockups).
> 
> Now, we want to communicate easily this specification to our external
> partner and, of course, they can't access our wiki (intranet only).
> Our first idea was to produce a document (PDF). We try to use the PDF
 export
> but it seems that the inclusion of the children pages doesn't work.
 Other
> problem with PDF (with a unique page), the included images don't appear.
> 
> Just for info, we are using the last 2.7 release of XWiki.
> 
> So, do you have encountered the same need and how did you solve it ? Do
> XWord may help ? Other idea ?
> Thanks for your response.

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


Re: [xwiki-users] How to produce a doc from a set of XWiki pages ?Youradvice is welcome

2011-01-31 Thread Le Génie
You are right, it works with the full page name specified in the image
expression.

2011/1/31 Sergiu Dumitriu 

> On 01/31/2011 03:10 PM, Le Génie wrote:
> > Final episode, the multipage export.
> > The images included in the child pages are never present in the generated
> > pdf. In the log, a lot of "Image not found" messages appear. In fact, the
> > images of a child page are looked up in the primary one.
> >
> > Tell me if you want more details.
>
> I think this is known, it's caused by the fact that image:filename.png
> doesn't use the correct base document. It's a problem with the rendering
> engine, not with the PDF export. Can you try to use the full reference
> for images, as in image:real.docum...@filename.png, and see if it works?
>
> >
> >
> > 2011/1/31 Le Génie
> >
> >> Hi Sergiu,
> >>
> >> I'm testing with the 3.0 snapshot.
> >>
> >> Image 1 [[image:Copie01.jpg||width="50%"]] PDF ok
> >> Image 2 [[image:Copie02.jpg||height="65%" width="65%"]] PDF ok
> >> Image 3 [[image:Copie03.jpg||width="400px"]] DOES NOT appear in the PDF
> >>
> >> Now I will test the multipage PDF export.
> >>
> >> Regards,
> >> Maxime
> >>
> >>
> >> 2011/1/30 Sergiu Dumitriu
> >>
> >> On 01/28/2011 09:57 AM, Schömer, Jörg wrote:
>  Hi all,
> 
>  the PDF export works fine if the width attribute is set in percent,
> but
> >>> when measured in pixel the image is missing.
> 
>  XWIKI ENTERPRISE 2.6.33065
> >>>
> >>> I made some improvements in the PDF export handling of images (only on
> >>> trunk at the moment, will be part of the future 3.0M2). Could someone
> >>> verify this works fine for their images? Download the latest build from
> >>>
> >>>
> http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-jetty-hsqldb/3.0-SNAPSHOT/
> >>> and check the PDF export.
> >>>
>  Best regards,
>  Jörg
> 
> 
>  -Original Message-
>  From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On
> >>> Behalf Of Schömer, Jörg
>  Sent: Tuesday, January 11, 2011 11:01 AM
>  To: XWiki Users
>  Subject: Re: [xwiki-users] How to produce a doc from a set of XWiki
> >>> pages ?Youradvice is welcome
> 
>  Hi Maxime,
> 
>  I figured out, that images with attributes width or hight are not
> >>> rendered into the PDF. Remove the attributes and try again.
> 
>  e.g.
>  [[image:your.png||height="480" width="640"]]
>  should be changed to
>  [[image:your.png]]
> 
>  Best regards,
>  Jörg
> 
>  -Ursprüngliche Nachricht-
>  Von: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Im
> >>> Auftrag von Le Génie
>  Gesendet: Freitag, 7. Januar 2011 13:04
>  An: XWiki Users
>  Betreff: [xwiki-users] How to produce a doc from a set of XWiki pages
> ?
> >>> Youradvice is welcome
> 
>  Hi XWikiers,
> 
>  We have written a software specification (SRD) inside our wiki. This
>  specification is a set of pages with graphics (as attached images) and
>  mockups (using Balsamiq Mockups).
> 
>  Now, we want to communicate easily this specification to our external
>  partner and, of course, they can't access our wiki (intranet only).
>  Our first idea was to produce a document (PDF). We try to use the PDF
> >>> export
>  but it seems that the inclusion of the children pages doesn't work.
> >>> Other
>  problem with PDF (with a unique page), the included images don't
> appear.
> 
>  Just for info, we are using the last 2.7 release of XWiki.
> 
>  So, do you have encountered the same need and how did you solve it ?
> Do
>  XWord may help ? Other idea ?
>  Thanks for your response.
> >>>
>
>
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
> ___
> 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] How to produce a doc from a set of XWiki pages ?Youradvice is welcome

2011-01-31 Thread Sergiu Dumitriu
On 01/31/2011 03:10 PM, Le Génie wrote:
> Final episode, the multipage export.
> The images included in the child pages are never present in the generated
> pdf. In the log, a lot of "Image not found" messages appear. In fact, the
> images of a child page are looked up in the primary one.
>
> Tell me if you want more details.

I think this is known, it's caused by the fact that image:filename.png 
doesn't use the correct base document. It's a problem with the rendering 
engine, not with the PDF export. Can you try to use the full reference 
for images, as in image:real.docum...@filename.png, and see if it works?

>
>
> 2011/1/31 Le Génie
>
>> Hi Sergiu,
>>
>> I'm testing with the 3.0 snapshot.
>>
>> Image 1 [[image:Copie01.jpg||width="50%"]] PDF ok
>> Image 2 [[image:Copie02.jpg||height="65%" width="65%"]] PDF ok
>> Image 3 [[image:Copie03.jpg||width="400px"]] DOES NOT appear in the PDF
>>
>> Now I will test the multipage PDF export.
>>
>> Regards,
>> Maxime
>>
>>
>> 2011/1/30 Sergiu Dumitriu
>>
>> On 01/28/2011 09:57 AM, Schömer, Jörg wrote:
 Hi all,

 the PDF export works fine if the width attribute is set in percent, but
>>> when measured in pixel the image is missing.

 XWIKI ENTERPRISE 2.6.33065
>>>
>>> I made some improvements in the PDF export handling of images (only on
>>> trunk at the moment, will be part of the future 3.0M2). Could someone
>>> verify this works fine for their images? Download the latest build from
>>>
>>> http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-jetty-hsqldb/3.0-SNAPSHOT/
>>> and check the PDF export.
>>>
 Best regards,
 Jörg


 -Original Message-
 From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On
>>> Behalf Of Schömer, Jörg
 Sent: Tuesday, January 11, 2011 11:01 AM
 To: XWiki Users
 Subject: Re: [xwiki-users] How to produce a doc from a set of XWiki
>>> pages ?Youradvice is welcome

 Hi Maxime,

 I figured out, that images with attributes width or hight are not
>>> rendered into the PDF. Remove the attributes and try again.

 e.g.
 [[image:your.png||height="480" width="640"]]
 should be changed to
 [[image:your.png]]

 Best regards,
 Jörg

 -Ursprüngliche Nachricht-
 Von: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Im
>>> Auftrag von Le Génie
 Gesendet: Freitag, 7. Januar 2011 13:04
 An: XWiki Users
 Betreff: [xwiki-users] How to produce a doc from a set of XWiki pages ?
>>> Youradvice is welcome

 Hi XWikiers,

 We have written a software specification (SRD) inside our wiki. This
 specification is a set of pages with graphics (as attached images) and
 mockups (using Balsamiq Mockups).

 Now, we want to communicate easily this specification to our external
 partner and, of course, they can't access our wiki (intranet only).
 Our first idea was to produce a document (PDF). We try to use the PDF
>>> export
 but it seems that the inclusion of the children pages doesn't work.
>>> Other
 problem with PDF (with a unique page), the included images don't appear.

 Just for info, we are using the last 2.7 release of XWiki.

 So, do you have encountered the same need and how did you solve it ? Do
 XWord may help ? Other idea ?
 Thanks for your response.
>>>


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


Re: [xwiki-users] How to produce a doc from a set of XWiki pages ?Youradvice is welcome

2011-01-31 Thread Le Génie
Final episode, the multipage export.
The images included in the child pages are never present in the generated
pdf. In the log, a lot of "Image not found" messages appear. In fact, the
images of a child page are looked up in the primary one.

Tell me if you want more details.

Regards,
Maxime Mathieu


2011/1/31 Le Génie 

> Hi Sergiu,
>
> I'm testing with the 3.0 snapshot.
>
> Image 1 [[image:Copie01.jpg||width="50%"]] PDF ok
> Image 2 [[image:Copie02.jpg||height="65%" width="65%"]] PDF ok
> Image 3 [[image:Copie03.jpg||width="400px"]] DOES NOT appear in the PDF
>
> Now I will test the multipage PDF export.
>
> Regards,
> Maxime
>
>
> 2011/1/30 Sergiu Dumitriu 
>
> On 01/28/2011 09:57 AM, Schömer, Jörg wrote:
>> > Hi all,
>> >
>> > the PDF export works fine if the width attribute is set in percent, but
>> when measured in pixel the image is missing.
>> >
>> > XWIKI ENTERPRISE 2.6.33065
>>
>> I made some improvements in the PDF export handling of images (only on
>> trunk at the moment, will be part of the future 3.0M2). Could someone
>> verify this works fine for their images? Download the latest build from
>>
>> http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-jetty-hsqldb/3.0-SNAPSHOT/
>> and check the PDF export.
>>
>> > Best regards,
>> >Jörg
>> >
>> >
>> > -Original Message-
>> > From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On
>> Behalf Of Schömer, Jörg
>> > Sent: Tuesday, January 11, 2011 11:01 AM
>> > To: XWiki Users
>> > Subject: Re: [xwiki-users] How to produce a doc from a set of XWiki
>> pages ?Youradvice is welcome
>> >
>> > Hi Maxime,
>> >
>> > I figured out, that images with attributes width or hight are not
>> rendered into the PDF. Remove the attributes and try again.
>> >
>> > e.g.
>> > [[image:your.png||height="480" width="640"]]
>> > should be changed to
>> > [[image:your.png]]
>> >
>> > Best regards,
>> >Jörg
>> >
>> > -Ursprüngliche Nachricht-
>> > Von: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Im
>> Auftrag von Le Génie
>> > Gesendet: Freitag, 7. Januar 2011 13:04
>> > An: XWiki Users
>> > Betreff: [xwiki-users] How to produce a doc from a set of XWiki pages ?
>> Youradvice is welcome
>> >
>> > Hi XWikiers,
>> >
>> > We have written a software specification (SRD) inside our wiki. This
>> > specification is a set of pages with graphics (as attached images) and
>> > mockups (using Balsamiq Mockups).
>> >
>> > Now, we want to communicate easily this specification to our external
>> > partner and, of course, they can't access our wiki (intranet only).
>> > Our first idea was to produce a document (PDF). We try to use the PDF
>> export
>> > but it seems that the inclusion of the children pages doesn't work.
>> Other
>> > problem with PDF (with a unique page), the included images don't appear.
>> >
>> > Just for info, we are using the last 2.7 release of XWiki.
>> >
>> > So, do you have encountered the same need and how did you solve it ? Do
>> > XWord may help ? Other idea ?
>> > Thanks for your response.
>>
>>
>> --
>> Sergiu Dumitriu
>> http://purl.org/net/sergiu/
>> ___
>> 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] FAQ application - how to add new object automatically

2011-01-31 Thread Raluca Stavro
Hello,

On Mon, Jan 31, 2011 at 11:45 AM, Piotr Dziubecki wrote:

> Dear all,
>
> I'm trying to extend a FAQ application from the tutorial on xwiki site.
>
> I would like to add some FAQ entries from the external file in an automated
> or semi-automated way.
>
> In the FAQ example there are: question, answer fields for every FAQ entry.
> Is it possible to add new entries
> basing on the external data user provided ?
>
> like to take a data from a text area in a form like:
>
> "question1", "answer1"
> "question2", "answer2"
>
> and then create 2 new FAQ objects ?
>
> I've found such a code snippet and fixed it to have:
>
> ## Create an object
> #set($obj = $doc.newObject("FAQ.FAQClass"))
> $obj.set("question","q1")
> $obj.set("answer", "a1")
>
> ## Save the object in the page
> $doc.save()
>

As long as you have edit rights on the current document ($doc), the code
above should work fine.
Are you sure FAQ.FAQClas exists?


>
> Even with that it fails to add new object to the existing list. Any clues
> how to accomplish that ?
>
> Just to recap, I have two questions :
>
> 1. Could someone provide a code snippet, or point me to a documentation on
> creating/adding new objects in
> the xwiki ( like how to set parentSpace, basic fields in that object and
> add it to the xwiki database ).
>

Check out the documentation for the current API:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/API/ .
For example, in order to set the parent of the current document, the
following code lines:

$doc.setParent('ParentSpaceName.ParentPageName')
$doc.save()

should do the trick.


>
> 2. Are there any scenarios on importing data in to the XWiki ( would like
> to inject a lot of FAQ entries at
> once, tried to do that directly to the database but that failed, I guess I
> should do that via velocity code ? ).


What you can do is to use an Excel file, attach it to a document inside your
XWiki Enterprice instance, then get it with Velocity, parse its content
(line by line) and inject the data into your instance.

Raluca.



>
> Thanks a lot for any help :)
>
> Regards,
> Piotr
>
> ___
> 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] Adding objects to pages in inline mode

2011-01-31 Thread Sergiu Dumitriu
On 01/31/2011 10:19 AM, xwikiad...@lazypapertiger.org wrote:
> Sergiu Dumitriu wrote ..
>>
>> Try this:
>>
>> {{html clean="false"}}
>> 
>> 
>> 
>> 
>> 
>> {{/html}}
>
> Fantastic.  Thanks.  I should have thought to look at the comments...
>
>> The trick is the name of the submit button. action_objectadd instructs
>> the server to ignore the action specified in the URL where the form was
>> submitted, and instead to use the action that's specified after the
>> "action_" part, in this case "objectadd". This special form parameter
>> gets submitted only when clicking the "Send comment" button.
>
> Out of interest where is that caught, I'd like to take a look at the
> processing.  If you're pretty busy don't worry - I'll probably
> grep around in the files or code till I find it anyway!
>

core/xwiki-core/src/main/java/com/xpn/xwiki/web/ActionFilter.java

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


Re: [xwiki-users] How to produce a doc from a set of XWiki pages ?Youradvice is welcome

2011-01-31 Thread Le Génie
Hi Sergiu,

I'm testing with the 3.0 snapshot.

Image 1 [[image:Copie01.jpg||width="50%"]] PDF ok
Image 2 [[image:Copie02.jpg||height="65%" width="65%"]] PDF ok
Image 3 [[image:Copie03.jpg||width="400px"]] DOES NOT appear in the PDF

Now I will test the multipage PDF export.

Regards,
Maxime


2011/1/30 Sergiu Dumitriu 

> On 01/28/2011 09:57 AM, Schömer, Jörg wrote:
> > Hi all,
> >
> > the PDF export works fine if the width attribute is set in percent, but
> when measured in pixel the image is missing.
> >
> > XWIKI ENTERPRISE 2.6.33065
>
> I made some improvements in the PDF export handling of images (only on
> trunk at the moment, will be part of the future 3.0M2). Could someone
> verify this works fine for their images? Download the latest build from
>
> http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-jetty-hsqldb/3.0-SNAPSHOT/
> and check the PDF export.
>
> > Best regards,
> >Jörg
> >
> >
> > -Original Message-
> > From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf
> Of Schömer, Jörg
> > Sent: Tuesday, January 11, 2011 11:01 AM
> > To: XWiki Users
> > Subject: Re: [xwiki-users] How to produce a doc from a set of XWiki pages
> ?Youradvice is welcome
> >
> > Hi Maxime,
> >
> > I figured out, that images with attributes width or hight are not
> rendered into the PDF. Remove the attributes and try again.
> >
> > e.g.
> > [[image:your.png||height="480" width="640"]]
> > should be changed to
> > [[image:your.png]]
> >
> > Best regards,
> >Jörg
> >
> > -Ursprüngliche Nachricht-
> > Von: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Im Auftrag
> von Le Génie
> > Gesendet: Freitag, 7. Januar 2011 13:04
> > An: XWiki Users
> > Betreff: [xwiki-users] How to produce a doc from a set of XWiki pages ?
> Youradvice is welcome
> >
> > Hi XWikiers,
> >
> > We have written a software specification (SRD) inside our wiki. This
> > specification is a set of pages with graphics (as attached images) and
> > mockups (using Balsamiq Mockups).
> >
> > Now, we want to communicate easily this specification to our external
> > partner and, of course, they can't access our wiki (intranet only).
> > Our first idea was to produce a document (PDF). We try to use the PDF
> export
> > but it seems that the inclusion of the children pages doesn't work. Other
> > problem with PDF (with a unique page), the included images don't appear.
> >
> > Just for info, we are using the last 2.7 release of XWiki.
> >
> > So, do you have encountered the same need and how did you solve it ? Do
> > XWord may help ? Other idea ?
> > Thanks for your response.
>
>
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
> ___
> 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] meaning of "milestone 1" of XE 3.0?

2011-01-31 Thread Vincent Massol
Hi Guys,

I've started a page on xwiki.org to explain the different types of releases 
here:
http://dev.xwiki.org/xwiki/bin/view/Community/VersioningAndReleasePractices

Thanks
-Vincent

On Jan 30, 2011, at 3:07 PM, Sergiu Dumitriu wrote:

> On 01/30/2011 07:38 AM, Mark D. Anderson wrote:
>> Hi -
>> 
>> I see that XWiki Enterprise 3.0 Milestone 1 was just released a week ago.
>> I also found the roadmap at 
>> http://enterprise.xwiki.org/xwiki/bin/view/Main/Roadmap
>> 
>> I can't tell from the announcement however what the intended use is...
>> Is this something that is likely to blow up ("alpha" quality)?
> 
> All our releases are as stable as possible. It is very unlikely that 
> something will "blow up", as we're using Continuous Integration to 
> assure that at almost any point XWiki is stable 
> (https://secure.wikimedia.org/wikipedia/en/wiki/Continuous_Integration)
> 
> The main difference between a milestone and a final release is that 
> during milestones new features introduced are not yet tested in many 
> different environments, so they might look badly in certain versions of 
> IE, or there might be problems on a different database, but this usually 
> only affects new features introduced in that milestone. Something that 
> was working in the previous stable version should still work in the new 
> milestone.
> 
> Between a milestone release and the final release, most of the 
> development efforts go into testing and polishing the new features, so 
> that the "stable" 3.0 version is as stable as possible.
> 
> The "bugfix" releases, like 3.0.1 or 2.6.2, rarely solve critical bugs 
> in their equivalent major release, but usually backport bugs solved 
> during the future release. These bugs aren't blockers, just things that 
> need to be ironed out, so instead of waiting for the 2.7.5 release, 
> better try the 3.0 release, since it is almost as stable, but with even 
> more bugs fixed and some new features.
> 
>> At what point in the roadmap does it make
>> sense for a new install to try a 3.0.x release instead of 2.x release?
> 
> If by "try" you mean installing it in production, then 3.0. If you need 
> really fast something that is only present in the latest milestone, then 
> it should be fairly safe to use a milestone in production, but you 
> should upgrade as soon as the stable version is released.
> 
> If by "try" you mean start preparing for a production deployment, the 
> answer is, in my opinion, the first release candidate (3.0-rc-1). It's 
> what will be in the final 3.0 release, and it gives you time to prepare 
> the environment and test the wiki before the stable release is out.
> 
> If by "try" you mean start exploring for an eventual deployment, then 
> you can already start that, although the best point will be the last 
> milestone (in this case it looks like 3.0-milestone-2), since it will 
> have most of the features planned for the final 3.0 release.
> 
> If by "try" you mean testing it and trying to help the community, then 
> you can take any snapshot (from 
> http://maven.xwiki.org/snapshots/org/xwiki/enterprise/ ) and test it, 
> test the new features introduced, report any bugs encountered, or even 
> things you don't like (usability, interface), things you'd like to be 
> better (better functionality of the features), etc.
> 
>> In addition to stability of the software, what about stability of any
>> APIs - are those frozen in M1?
>> If I adopt M1, will M2 automatically upgrade from M1, or are automatic
>> upgrades only assured for migration from a stable 2.x release?
> 
> Scriptable APIs are stable, so most of the Velocity code that you write 
> should work in future versions. The APIs that are broken (as listed on 
> http://www.xwiki.org/xwiki/bin/ReleaseNotes/ReleaseNotesXWikiEnterprise30M1#HAPIBreakages
>  
> for example) are usually internal APIs (SPIs), that you should be 
> concerned about only if you're writing custom Java components.
> 
> 3.0 is an exceptional case, since we're actually removing deprecated 
> public APIs, but those APIs have been deprecated for a long time, and 
> it's highly unlikely that they are still used.
> 
> Platform upgrades should work pretty well between any two versions, 
> provided you do the upgrade correctly. The closer the two versions, the 
> safer the upgrade. Again, what could break is custom components that 
> rely on internal SPIs.
> 
>> When 3.0 final is out, will work on 2.7 basically stop?
> 
> No, the rule is that we maintain two old branches in parallel to the 
> trunk. When 3.0 will be out, the trunk will already be on 3.1-SNAPSHOT, 
> and the previously maintained branches will become 3.0 and 2.7. At that 
> moment in theory the 2.6 branch will be dropped.
> 
> We sometimes make exceptions from this rule, for example right now we're 
> maintaining 3 older branches (starting with 2.5, see 
> https://svn.xwiki.org/svnroot/xwiki/platform/core/branches/ ).
> 
>> Will the current release of XWord work with XE 3.0M1?
>

Re: [xwiki-users] Adding objects to pages in inline mode

2011-01-31 Thread Marius Dumitru Florea
On 01/31/2011 11:19 AM, xwikiad...@lazypapertiger.org wrote:
> Sergiu Dumitriu wrote ..
>>
>> Try this:
>>
>> {{html clean="false"}}
>> 
>> 
>> 
>> 
>> 
>> {{/html}}
>
> Fantastic.  Thanks.  I should have thought to look at the comments...
>
>> The trick is the name of the submit button. action_objectadd instructs
>> the server to ignore the action specified in the URL where the form was
>> submitted, and instead to use the action that's specified after the
>> "action_" part, in this case "objectadd". This special form parameter
>> gets submitted only when clicking the "Send comment" button.
>

> Out of interest where is that caught, I'd like to take a look at the
> processing.  If you're pretty busy don't worry - I'll probably
> grep around in the files or code till I find it anyway!

I believe this is the place 
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/ActionFilter.java

Hope this helps,
Marius

>
> Cheers,
>
> Adam
>
>
>
> ___
> 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


[xwiki-users] FAQ application - how to add new object automatically

2011-01-31 Thread Piotr Dziubecki
Dear all,

I'm trying to extend a FAQ application from the tutorial on xwiki site.

I would like to add some FAQ entries from the external file in an automated or 
semi-automated way.

In the FAQ example there are: question, answer fields for every FAQ entry. Is 
it possible to add new entries 
basing on the external data user provided ?

like to take a data from a text area in a form like:

"question1", "answer1"
"question2", "answer2"

and then create 2 new FAQ objects ?

I've found such a code snippet and fixed it to have:

## Create an object
#set($obj = $doc.newObject("FAQ.FAQClass"))
$obj.set("question","q1")
$obj.set("answer", "a1")

## Save the object in the page
$doc.save()

Even with that it fails to add new object to the existing list. Any clues how 
to accomplish that ?

Just to recap, I have two questions :

1. Could someone provide a code snippet, or point me to a documentation on 
creating/adding new objects in 
the xwiki ( like how to set parentSpace, basic fields in that object and add it 
to the xwiki database ).

2. Are there any scenarios on importing data in to the XWiki ( would like to 
inject a lot of FAQ entries at 
once, tried to do that directly to the database but that failed, I guess I 
should do that via velocity code ? ).

Thanks a lot for any help :)

Regards,
Piotr

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


Re: [xwiki-users] Adding objects to pages in inline mode

2011-01-31 Thread xwikiadmin
Sergiu Dumitriu wrote ..
> 
> Try this:
> 
> {{html clean="false"}}
> 
> 
> 
> 
> 
> {{/html}}

Fantastic.  Thanks.  I should have thought to look at the comments...

> The trick is the name of the submit button. action_objectadd instructs
> the server to ignore the action specified in the URL where the form was
> submitted, and instead to use the action that's specified after the 
> "action_" part, in this case "objectadd". This special form parameter 
> gets submitted only when clicking the "Send comment" button.

Out of interest where is that caught, I'd like to take a look at the 
processing.  If you're pretty busy don't worry - I'll probably 
grep around in the files or code till I find it anyway!

Cheers,

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