[xwiki-users] velocity escape char [ ]

2008-04-11 Thread Raffaele Viola
Hi all,

I'm try to use javascript into a macro like this
document.getElementById('levelone').options[0] = new Option(-Empty
\*-,);
but whe it is executed what I get is
document.getElementById('levelone').options0 = new Option(-Empty \*-,);
How can I solve this problem???

Thanks all,
Raffo
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Xwiki jmeter test

2008-03-18 Thread Raffaele Viola
Hi all,

I want to make some load test to xwiki using jmeter.
I have a problem with the login because I don't understand which parameters
I have to add to the request /xwiki/bin/login/XWiki/XWikiLogin

Cna someone help me??

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


[xwiki-users] view page without loggin

2008-03-03 Thread Raffaele Viola
Hi all,

how can I view a page without need to logg-in?

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


[xwiki-users] copy rigths to page

2008-02-14 Thread Raffaele Viola
Hi all,

I'm trying to copy the rights from a page to another without any success
using this code.

Can someone help me?

Thanks
raffo

#set($targetDoc = $xwiki.getDocument('paginavuota2'))
$targetDoc.getName()

#foreach($obj in $doc.getObjects(XWiki.XWikiGlobalRights))
#set($levels = $obj.getProperty('levels').getValue()) ## get the levels
#set($users = $obj.getProperty('users').getValue())
#set($groups = $obj.getProperty('groups').getValue())
#set($allow = $obj.getProperty('allow').getValue())
#set($entry=$targetDoc.newObject(XWiki.XWikiRights))
$entry.set('groups',$levels)
$entry.set('users',$users)
$entry.set('levels',$groups)
$entry.set('allow',$allow)
#end

#foreach($obj in $doc.getObjects(XWiki.XWikiRights))
#set($levels = $obj.getProperty('levels').getValue()) ## get the levels
#set($users = $obj.getProperty('users').getValue())
#set($groups = $obj.getProperty('groups').getValue())
#set($allow = $obj.getProperty('allow').getValue())
#set($entry=$targetDoc.newObject(XWiki.XWikiRights))
$entry.set('groups',$levels)
$entry.set('users',$users)
$entry.set('levels',$groups)
$entry.set('allow',$allow)
#end

$targetDoc.save()
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Warning: iframe escaping malformed URI reference

2008-02-05 Thread Raffaele Viola
I removed the space in the zip file name and now the message: Warning:
iframe escaping malformed URI reference doesn't appears.
The problem is that PDF export still not include the htm file.

Can someone help me?

Thanks
Raffo

2008/2/5, Raffaele Viola [EMAIL PROTECTED]:

 Hi all,

 im using this macro to include HTML file into my page

 #macro(displayppt $zipname $htmlname)
 #set ($url = $xwiki.zipexplorer.getFileLink($doc, $zipname,
 $htmlname))
 iframe src=$url frameborder=0 scrolling=0 width=800
 height=600/iframe
 #end

 It works but when I try to export my page in PDF the generated PDF doesn't
 contains the included file and in the console appears something like
 Warning: iframe escaping malformed URI reference.

 the URI
 /xwiki/bin/download/Discussione/MasterPlan/Piano%20Principale.zip/Piano
 Principale.htm
 is traslated in:

 file:/C:/workspace%2Dxwiki/apache%2Dtomcat%2D5.5.25/work/Catalina/localhost/xwiki/h5khbL0n/
 Discussione.MasterPlan.Piano Principale.zip/Piano Principale.htm

 Regards
 Raffo

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


[xwiki-users] Include Child in PDF

2008-02-04 Thread Raffaele Viola
Hi all,

I chenged in the file menuview.vm the row:
#submenuitem($doc.getURL(export, format=pdfamp;$docvariant) $msg.get(
core.menu.export.pdf))
in
#submenuitem($doc.getURL(export,
format=pdfincludechilds=1amp;$docvariant) $msg.get(core.menu.export.pdf
))

to include childs pages  into PDF export but when I try to execute export in
PDF I get this exception

com.xpn.xwiki.XWikiException: Error number 12002 in 12: Exception while
exporting PDF
Wrapped Exception: org.apache.fop.fo.ValidationException: null:118:234:
Property id HInventory previously used; id values must be unique in
document.
at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportXMLFO(PdfExportImpl.java
:194)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportXHtml(PdfExportImpl.java
:134)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportHtml(PdfExportImpl.java
:202)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.export(PdfExportImpl.java:225)
at com.xpn.xwiki.web.ExportAction.exportPDFOrRTF(ExportAction.java:198)

It seems the validator has problems parsing the link in the text created
joining the parent with childs pages.

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


[xwiki-users] tag img problem

2008-02-04 Thread Raffaele Viola
Hi all,

I have some problems trying to exporta as pdf a page.
In the source code there is an image

 img src=/xwiki/bin/download/Discussione/MasterPlan/Masterplan.png alt=
 Masterplan.png title=Masterplan.png/


but in the pdf I see also this line

 8080xwiki/H4RLVAa1/Discussione.MasterPlan.Masterplan.png alt=
 Masterplan.png title=Masterplan.png/


and in the console these lines appears

line 29 column 1 - Warning: img attribute with missing trailing quote mark
 line 29 column 1 - Warning: img escaping malformed URI reference
 line 29 column 1 - Warning: img lacks alt attribute


Can someone help me??


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


[xwiki-users] GeneratePdfForChildrenPages

2008-01-29 Thread Raffaele Viola
Hi all,

In the page
http://code.xwiki.org/xwiki/bin/view/Snippets/GeneratePdfForChildrenPagesSnippetI
read:

Since XWiki 1.2 it's possible to export several pages as PDF or RTF, using
 the currently undocumented includechilds=1, includelinks=1 and
 pagebreaks=1 request parameters. See XWIKI-1289 to follow the status on
 this.


I see in the menuview.vm the code

#submenuitem($doc.getURL(export, format=pdfamp;$docvariant) $msg.get(
 core.menu.export.pdf))


to compile the request URL and I find the variable $docvariant set in
xwikivars.vm

 ## Check revision option
 #if ($request.rev)


Can someone help me to find where to put includechilds=1 to make it icluded
in the link?

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


[xwiki-users] copy a page

2008-01-23 Thread Raffaele Viola
Hi all,

can someone explain me the meaning of Target Doc in the Copy a document
page who does it works?

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


[xwiki-users] error coping a document

2008-01-23 Thread Raffaele Viola
Hi all,

using the Copy a document page with:

   - source document=XWiki.provaCopia
   - target document mySpace.provaCopia

I get this result:

   - Copying document XWiki.provaCopia () from xwiki to xwiki:
   $xwiki.xWiki.copyDocument($sourcedoc, $targetdoc, $sourcewiki, $targetwiki,
   $language, false, $context.context)

and the copy is not done.

Can you help me??
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] change parent

2008-01-21 Thread Raffaele Viola
Hi all,

I create a page to change the parent to a chosen page using:

#set ($mydoc = $xwiki.getDocument(some.page))
$mydoc.setParent($targetdoc)
$mydoc.save()

It works but in the tree page I see the changed page into its original tree
location.

What is my fault ??

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


[xwiki-users] move page

2008-01-21 Thread Raffaele Viola
Hi all,
how can I move a page from a space to another space?
Is it possible changing the parent of that page?

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


[xwiki-users] copy the rigths

2008-01-21 Thread Raffaele Viola
How can I copy automatically the rights, set on a page, to another page?

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