Re: [xwiki-users] bad rtf exportation and customizing the pdf export look and feel

2010-05-21 Thread Wilson Leão Neto
"Actually, I didn't try but I took a look at it and I was able to add some
little things. I don't think I can help you but... who knows ? What are your
problems ?"

I wanna be able to modify also the TOC. Specifically, I wanna be able to
modify it:

$msg.get('core.pdf.tableOfContents')

Like, inside it...

---
Best Regards,

Wilson

2010/5/21 Wilson Leão Neto 

> "Besides, it's weird because I saw in
> pdf*.vm files some calls to the XWiki.PDFClass... But i don't really know
> how it works..."
>
> Same here, I saw those calls almost everywhere... Don't know how they work.
> Could you, reader, be gentle enough to exlpain it to us ;)
>
> Wilson
>
> 2010/5/21 Marine Julian 
>
>
>> Hi Wilson !
>>
>>
>> Wilson Leão Neto wrote:
>> >
>> > Hey! I had the same problem, regarding the PDF export customization, I'm
>> > still not able to do it creating the Class document like they've done in
>> > the
>> > tutorial. I was suggested to add a *pdf.css *file into the
>> > *\Xwiki\templates
>> > * folder. Add the css code into the file and test it. It should work.
>> >
>> Indeed, it works when I create a pdf.css file in the \Xwiki\templates
>> folder. So thank you it could be an alternative for what i'm trying to do.
>> In fact, i'm using a farm and i would prefer have one customization per
>> wiki. So, it will be great if the tutorial method can work !
>> Anyone encounters this issue (can't be able to customize creating the
>> PDFClass) and find a way to do it ? Besides, it's weird because I saw in
>> pdf*.vm files some calls to the XWiki.PDFClass... But i don't really know
>> how it works...
>>
>>
>> Wilson Leão Neto wrote:
>> >
>> > Also, have you tried to edit the header, footer or toc? I'm having
>> > problems
>> > editing the toc, if you know something, please tell me.
>> >
>> Actually, I didn't try but I took a look at it and I was able to add some
>> little things. I don't think I can help you but... who knows ? What are
>> your
>> problems ?
>> --
>> View this message in context:
>> http://xwiki.475771.n2.nabble.com/bad-rtf-exportation-and-customizing-the-pdf-export-look-and-feel-tp5079790p5083950.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
>>
>
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] bad rtf exportation and customizing the pdf export look and feel

2010-05-21 Thread Wilson Leão Neto
"Besides, it's weird because I saw in
pdf*.vm files some calls to the XWiki.PDFClass... But i don't really know
how it works..."

Same here, I saw those calls almost everywhere... Don't know how they work.
Could you, reader, be gentle enough to exlpain it to us ;)

Wilson

2010/5/21 Marine Julian 

>
> Hi Wilson !
>
>
> Wilson Leão Neto wrote:
> >
> > Hey! I had the same problem, regarding the PDF export customization, I'm
> > still not able to do it creating the Class document like they've done in
> > the
> > tutorial. I was suggested to add a *pdf.css *file into the
> > *\Xwiki\templates
> > * folder. Add the css code into the file and test it. It should work.
> >
> Indeed, it works when I create a pdf.css file in the \Xwiki\templates
> folder. So thank you it could be an alternative for what i'm trying to do.
> In fact, i'm using a farm and i would prefer have one customization per
> wiki. So, it will be great if the tutorial method can work !
> Anyone encounters this issue (can't be able to customize creating the
> PDFClass) and find a way to do it ? Besides, it's weird because I saw in
> pdf*.vm files some calls to the XWiki.PDFClass... But i don't really know
> how it works...
>
>
> Wilson Leão Neto wrote:
> >
> > Also, have you tried to edit the header, footer or toc? I'm having
> > problems
> > editing the toc, if you know something, please tell me.
> >
> Actually, I didn't try but I took a look at it and I was able to add some
> little things. I don't think I can help you but... who knows ? What are
> your
> problems ?
> --
> View this message in context:
> http://xwiki.475771.n2.nabble.com/bad-rtf-exportation-and-customizing-the-pdf-export-look-and-feel-tp5079790p5083950.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
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] bad rtf exportation and customizing the pdf export look and feel

2010-05-20 Thread Wilson Leão Neto
@Marine

Hey! I had the same problem, regarding the PDF export customization, I'm
still not able to do it creating the Class document like they've done in the
tutorial. I was suggested to add a *pdf.css *file into the *\Xwiki\templates
* folder. Add the css code into the file and test it. It should work.

Also, have you tried to edit the header, footer or toc? I'm having problems
editing the toc, if you know something, please tell me.

Best regards,

Wilson

2010/5/20 Marine JULIAN 

> Hello,
>
> I notice that exportation in rtf format has some bad behaviors:
>
>   - Two things are not really important because, like it's rtf format, we
>   can modify the document. But the rendering is a little weird : the
>   importation doesn't create a cover page with the main title and puts the
>   beginning of the table of content at the bottom of the first page...
>   - As well (and it's the big point to me), tables are rendered in a
>   strange way: the column width is so thin that we cannot notice the
>   content of cells... We can thin "No matter, we can modify the larger in
> the
>   rtf document" but we can only do that cell by cell... For small tables,
> it's
>   okay but, for bigger ones, it's not very useful ! I put an example in
>   attachment of this table so that you can see the issue:
>   |=column 1|=column 2
>   |content 1|content 2
>
> To finish, I just have one question about customizing exportation. I tried
> to customize the PDF export Look & Feel by creating a PDFClass and a
> PDFClassTemplate. The template has a textearea "style" property which
> contains (just to test) :
> h1{
> color : red;
> }
> div{
> color : red;
> }
> p{
> color : red;
> }
> I added the "&template=XWiki.PDFClassTemplate" line to the exportation link
> but the rendering is always the same... Did I forgot to do something ?
> For your knowledge, I tried that because I would like to customize the
> table
> look and feel. I don't like that they don't have borders...
>
> Thank you in advance for your help.
> Marine
>
> ___
> 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] Error while exporting PDF including children

2010-05-20 Thread Wilson Leão Neto
Hello all!

@Sergiu

Thanks! I took a look at the pdf.css and sought the cause of the problem...
Didn't find it :/

@Wouter

Jackpot! I did it and now it works! Do you have any idea why that solves the
problem?

Best regards,

Wilson

2010/5/20 Wouter Boasson 

> Hi,
>
> I had a similar problem (users Digest Vol 34, Issue 20,8, May 10, 2010).
> In my case it appears to be a problem in de Space.WebPreferences page:
> when removing the parent link to the Space.WebHome page (which can be done
> safely), the problem vapours instantaneously :-)
>
> It would be good to have an escape mechanism for invalid properties.
>
> Regards
> Wouter
>
> --
>
> Message: 1
> Date: Wed, 19 May 2010 07:06:09 +0200
> From: Sergiu Dumitriu 
> Subject: Re: [xwiki-users] Error while exporting PDF including
> children
> To: XWiki Users 
> Message-ID: <4bf371c1.1070...@xwiki.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> On 05/18/2010 11:28 PM, Wilson Le?o Neto wrote:
> > Also... It may seem weird. But if I remove the pdf.css file from the
> > templates folder, it works just fine...
>
>  Wrapped Exception: org.apache.fop.fo.ValidationException: Invalid
> property encountered on "fo:block-container": overflow-x (See position
> 43:916)
>
> This is a style exception, an element gets the "overflow-x" property,
> which is not valid in XSL-FO. Just find out where it comes from and
> remove it.
>
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
>
>
> --
>
> Wouter Boasson (MSc)
> Geo-IT Research and Coordination
>
> RIVM - National Institute for Public Health and the Environment
> Expertise Centre for Methodology and Information Services
>
> Contact information
> ---
> RIVM
> VenZ/EMI, Pb 86
> t.a.v. dhr. Drs. Wouter Boasson
> Postbus 1
> 3720 BA Bilthoven
>
> T +31(0)302748518
> F +31(0)302744456
> E wouter.boas...@rivm.nl
> mo - th
>
>
> Disclaimer RIVM
> ___
> 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] Error while exporting PDF including children

2010-05-18 Thread Wilson Leão Neto
Also... It may seem weird. But if I remove the pdf.css file from the
templates folder, it works just fine...

I'm a bit confused right now.

Best regards,

Wilson

2010/5/18 Wilson Leão Neto 

> Hello again!
>
> Also, I don't know if it is a problem or not... Every children page I
> create comes with *xwiki *as a prefix.
>
> E.g. *xwiki*:Space1.0101
>
> In the macro, the search is based on "where *doc.parent='$page'* order by
> doc.creationDate". It only gets the documents without xwiki, in my case,
> none. I added the xwiki getting "where *doc.parent='xwiki:$page'* order by
> doc.creationDate".
>
> I don't know if this is the cause of my problem, but I tested without the
> xwiki and it works.
>
> Any clues on how to deal with those problems?
>
> Best regards,
>
> Wilson
>
> 2010/5/18 Wilson Leão Neto 
>
>> Hello there! I get the error only when I try to export with the property
>> includechilds with a value  >= 2
>>
>> e.g, &includechilds=2
>>
>> Here is the macro:
>>
>> #macro(includeChildren $page $withPageBreaks)
>>  #if($clevel!=0)
>>   #foreach($childDocName in $xwiki.searchDocuments("where
>> doc.parent='$page' order by doc.creationDate"))
>> #set($childDoc = $xwiki.getDocument($childDocName))
>>
>>  
>> #if(($childDoc)&&($childDoc.getSpace()!="Panels")&&($childDoc.getSpace()!="XWiki"))
>>  #if($withPageBreaks)
>>  #pagebreak()
>>  #end
>>  $childDoc.getRenderedContent()
>>  #set($clevel = $xwiki.add($clevel,-1))
>>  #includeChildren($childDocName $withPageBreaks)
>>  #set($clevel = $xwiki.add($clevel,1))
>> #end
>>   #end
>>  #end
>> #end
>>
>>
>> Don't know where is the error... The recursion works just fine.
>>
>> Wilson
>>
>> 2010/5/18 Wilson Leão Neto 
>>
>> Hello there!
>>>
>>> I'm trying to export a PDF including children pages, but everytime I
>>> tried it I got an exception.
>>>
>>> Detailed information:
>>>
>>> Error number 11015 in 11: Exception while exporting
>>> Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF
>>> Wrapped Exception: org.apache.fop.fo.ValidationException: Invalid property 
>>> encountered on "fo:block-container": overflow-x (See position 43:916)
>>> com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while 
>>> exporting
>>> Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF
>>> Wrapped Exception: org.apache.fop.fo.ValidationException: Invalid property 
>>> encountered on "fo:block-container": overflow-x (See position 43:916)
>>> at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:67)
>>> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:214)
>>>
>>> ...
>>>
>>>
>>> I've googled it, looked at the macros, scavenged the code for an error... 
>>> Nothing.
>>>
>>>
>>> Any clues?
>>>
>>>
>>> Best regards,
>>>
>>>
>>> Wilson
>>>
>>>
>>
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Error while exporting PDF including children

2010-05-18 Thread Wilson Leão Neto
Hello again!

Also, I don't know if it is a problem or not... Every children page I create
comes with *xwiki *as a prefix.

E.g. *xwiki*:Space1.0101

In the macro, the search is based on "where *doc.parent='$page'* order by
doc.creationDate". It only gets the documents without xwiki, in my case,
none. I added the xwiki getting "where *doc.parent='xwiki:$page'* order by
doc.creationDate".

I don't know if this is the cause of my problem, but I tested without the
xwiki and it works.

Any clues on how to deal with those problems?

Best regards,

Wilson

2010/5/18 Wilson Leão Neto 

> Hello there! I get the error only when I try to export with the property
> includechilds with a value  >= 2
>
> e.g, &includechilds=2
>
> Here is the macro:
>
> #macro(includeChildren $page $withPageBreaks)
>  #if($clevel!=0)
>   #foreach($childDocName in $xwiki.searchDocuments("where
> doc.parent='$page' order by doc.creationDate"))
> #set($childDoc = $xwiki.getDocument($childDocName))
>
>  
> #if(($childDoc)&&($childDoc.getSpace()!="Panels")&&($childDoc.getSpace()!="XWiki"))
>  #if($withPageBreaks)
>  #pagebreak()
>  #end
>  $childDoc.getRenderedContent()
>  #set($clevel = $xwiki.add($clevel,-1))
>  #includeChildren($childDocName $withPageBreaks)
>  #set($clevel = $xwiki.add($clevel,1))
> #end
>   #end
>  #end
> #end
>
>
> Don't know where is the error... The recursion works just fine.
>
> Wilson
>
> 2010/5/18 Wilson Leão Neto 
>
> Hello there!
>>
>> I'm trying to export a PDF including children pages, but everytime I tried
>> it I got an exception.
>>
>> Detailed information:
>>
>> Error number 11015 in 11: Exception while exporting
>> Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF
>> Wrapped Exception: org.apache.fop.fo.ValidationException: Invalid property 
>> encountered on "fo:block-container": overflow-x (See position 43:916)
>> com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while 
>> exporting
>> Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF
>> Wrapped Exception: org.apache.fop.fo.ValidationException: Invalid property 
>> encountered on "fo:block-container": overflow-x (See position 43:916)
>>  at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:67)
>>  at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:214)
>>
>> ...
>>
>>
>> I've googled it, looked at the macros, scavenged the code for an error... 
>> Nothing.
>>
>>
>> Any clues?
>>
>>
>> Best regards,
>>
>>
>> Wilson
>>
>>
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Error while exporting PDF including children

2010-05-18 Thread Wilson Leão Neto
Hello there! I get the error only when I try to export with the property
includechilds with a value  >= 2

e.g, &includechilds=2

Here is the macro:

#macro(includeChildren $page $withPageBreaks)
 #if($clevel!=0)
  #foreach($childDocName in $xwiki.searchDocuments("where doc.parent='$page'
order by doc.creationDate"))
#set($childDoc = $xwiki.getDocument($childDocName))

 
#if(($childDoc)&&($childDoc.getSpace()!="Panels")&&($childDoc.getSpace()!="XWiki"))
 #if($withPageBreaks)
 #pagebreak()
 #end
 $childDoc.getRenderedContent()
 #set($clevel = $xwiki.add($clevel,-1))
 #includeChildren($childDocName $withPageBreaks)
 #set($clevel = $xwiki.add($clevel,1))
#end
  #end
 #end
#end


Don't know where is the error... The recursion works just fine.

Wilson

2010/5/18 Wilson Leão Neto 

> Hello there!
>
> I'm trying to export a PDF including children pages, but everytime I tried
> it I got an exception.
>
> Detailed information:
>
> Error number 11015 in 11: Exception while exporting
> Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF
> Wrapped Exception: org.apache.fop.fo.ValidationException: Invalid property 
> encountered on "fo:block-container": overflow-x (See position 43:916)
> com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while 
> exporting
> Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF
> Wrapped Exception: org.apache.fop.fo.ValidationException: Invalid property 
> encountered on "fo:block-container": overflow-x (See position 43:916)
>   at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:67)
>   at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:214)
>
> ...
>
>
> I've googled it, looked at the macros, scavenged the code for an error... 
> Nothing.
>
>
> Any clues?
>
>
> Best regards,
>
>
> Wilson
>
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Error while exporting PDF including children

2010-05-18 Thread Wilson Leão Neto
Hello there!

I'm trying to export a PDF including children pages, but everytime I tried
it I got an exception.

Detailed information:

Error number 11015 in 11: Exception while exporting
Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF
Wrapped Exception: org.apache.fop.fo.ValidationException: Invalid
property encountered on "fo:block-container": overflow-x (See position
43:916)
com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception
while exporting
Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF
Wrapped Exception: org.apache.fop.fo.ValidationException: Invalid
property encountered on "fo:block-container": overflow-x (See position
43:916)
at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:67)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:214)

...


I've googled it, looked at the macros, scavenged the code for an
error... Nothing.


Any clues?


Best regards,


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


Re: [xwiki-users] Automatic Numbering - macro problems

2010-05-13 Thread Wilson Leão Neto
Numbering headings, yes, that's what I was trying to get. Thank you for your
answer ;)

Wilson

2010/5/13 Sergiu Dumitriu 

> On 05/13/2010 10:25 PM, Wilson Leão Neto wrote:
> > Hello there!
> >
> > I'm trying to create a macro that would allow the user to use the
> automatic
> > numbering "power".
>
> What are you trying to number? The table of contents only, or the
> in-page headings? If it's only the toc, then try {{toc numbered=true/}}.
> Numbering headings is not currently implemented for documents written in
> syntax xwiki/2.0.
>
> > I used this code:
> > #set ($context.tocNumbered = true)
> > #set ($context.tocData = $tdoc.getTOC(1, 6, true))
>
> This code only works for documents written in syntax xwiki/1.0, since it
> uses the old rendering engine.
>
> > to create the macro.
> >
> > I created the macro. However, when I tried to use it, it just didnt seem
> > work. After a little time searching I found the problem, or not...
> >
> > Maybe there's something related to the version in which I'm creating and
> > using the macro. Either 2.0 or 1.0.
> >
> > I've seen this issue which is related to the fact I pointed above:
> >
> > http://jira.xwiki.org/jira/browse/XWIKI-3733
> >
> > Any clues?
> >
> > Thank you very much,
> >
> > Wilson
>
> --
> 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] Replace the wysiwyg editor

2010-05-13 Thread Wilson Leão Neto
Hello Vincent!

My friend here, Erica, did it. Here it is:

http://jira.xwiki.org/jira/browse/XWIKI-5186

If there is any doubt, please ask.

Thanks,

Wilson

2010/5/5 Vincent Massol 

> Hi Wilson,
>
> Regarding the stack trace it would be great if you could create a jira
> issue in http://jira.xwiki.org/jira/browse/XWIKI describing the problem
> you've found below and attach to this issue a source file that we can use to
> reproduce the problem.
>
> Once we can reproduce it we'll be able to fix it quickly.
>
> Thanks a lot
> -Vincent
>
> On May 5, 2010, at 8:29 PM, Wilson Leão Neto wrote:
>
> > Hello all!
> >
> > @Vincent
> > Your steps are being very helpful, thanks a lot! I'm studying it right
> now.
> >
> > @Vincent and Asiri
> >
> > As requested, the stacktrace:
> > 2010-05-05 12:56:35,447 [
> http://localhost:8086/xwiki/bin/preview/Main/teste]
> > *ERROR internal.DefaultHTMLConverter*   - Failed to parse input source
> > *org.xwiki.rendering.parser.ParseException: Failed to parse input source*
> > at
> >
> org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:136)
> > at
> >
> org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:97)
> > at
> >
> com.xpn.xwiki.wysiwyg.server.converter.internal.DefaultHTMLConverter.fromHTML(DefaultHTMLConverter.java:100)
> > at
> >
> com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:117)
> > at
> >
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
> > at
> >
> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
> > at
> >
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
> > at
> >
> com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:304)
> > at
> >
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
> > at
> >
> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
> > at
> >
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
> > at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
> > at
> >
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> > at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> > at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
> > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
> > at
> >
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> > at
> >
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> > at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> > at org.mortbay.jetty.Server.handle(Server.java:326)
> > at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
> > at
> >
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930)
> > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
> > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
> > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
> > at
> >
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
> > at
> >
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> > Caused by: org.wikimodel.wem.WikiParserException:
> > java.lang.NullPointerException
> > at org.wikimodel.wem.xhtml.XhtmlParser.parse(XhtmlParser.java:107)
> > at
> >
> org.xwiki.rendering.internal.parser.wikimodel.AbstractWikiModelParser.parse(AbstractWikiModelParser.java:134)
> > ... 26 more
> > Caused by: java.lang.NullPointerException
> > at
> >
> org.xwiki.rendering.internal.parser.wikimodel.xhtml.XWikiReferenceTagHandler.end(XWikiReferenceTagHandler.java:169)
> > at
> >
> org.wikimodel.wem.xhtml.handler.TagHandler.endElement(TagHandler.java:129)
> > at
> >
> org.wikimodel.wem.xhtml.impl.XhtmlHandler$TagStack$TagContext.endElement(XhtmlHandler.java:113)
> > at
> >
> org.wikimodel.wem.xhtml.impl.XhtmlHandler$TagStack.endElement(XhtmlHandler.java:203)
> > at
> >
> org.wikimodel.wem.xhtml.impl.XhtmlHandler.endElement(XhtmlHandler.java:517)
> > at org.xml.sax.helpers.XMLFilterIm

[xwiki-users] Automatic Numbering - macro problems

2010-05-13 Thread Wilson Leão Neto
Hello there!

I'm trying to create a macro that would allow the user to use the automatic
numbering "power".

I used this code:
#set ($context.tocNumbered = true)
#set ($context.tocData = $tdoc.getTOC(1, 6, true))

to create the macro.

I created the macro. However, when I tried to use it, it just didnt seem
work. After a little time searching I found the problem, or not...

Maybe there's something related to the version in which I'm creating and
using the macro. Either 2.0 or 1.0.

I've seen this issue which is related to the fact I pointed above:

http://jira.xwiki.org/jira/browse/XWIKI-3733

Any clues?

Thank you very much,

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


Re: [xwiki-users] Downgrade a version

2010-05-07 Thread Wilson Leão Neto
Hello Sergiu!

Thank you for your answer. My friend wants to test a feature he implemented.
Since we have some versions here, he was willing to install some different
ones and test it on them.

Wilson

2010/5/6 Sergiu Dumitriu 

> On 05/06/2010 11:43 PM, Wilson Leão Neto wrote:
> > Hello there!
> >
> > I would like to know if it's possible to downgrade the XWiki. My friend
> is
> > willing to uninstall and install an old version, but he wasn't able to
> find
> > any old version to download.
> >
> > Any clues?
> >
> > Thank you,
>
> Old versions can be taken from
>
> http://maven.xwiki.org/releases/com/xpn/xwiki/products/xwiki-enterprise-jetty-hsqldb/
>
> If you've been using the standalone distribution, the database is
> located in the "database" subdirectory of the location where you
> installed the wiki.
>
> Why do you want to downgrade? Normally, the right thing to do is to
> upgrade, since newer versions have many bugfixes.
>
> --
> 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] Downgrade a version

2010-05-06 Thread Wilson Leão Neto
Hello there!

I would like to know if it's possible to downgrade the XWiki. My friend is
willing to uninstall and install an old version, but he wasn't able to find
any old version to download.

Any clues?

Thank you,

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


Re: [xwiki-users] Replace the wysiwyg editor

2010-05-05 Thread Wilson Leão Neto
ource)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333)
at
org.wikimodel.wem.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:44)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333)
at
org.wikimodel.wem.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:44)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333)
at
org.wikimodel.wem.xhtml.filter.DefaultXMLFilter.parse(DefaultXMLFilter.java:44)
at org.wikimodel.wem.xhtml.XhtmlParser.parse(XhtmlParser.java:104)
... 27 more
2010-05-05 12:56:39,379 [
http://localhost:8086/xwiki/bin/edit/Main/Missing.png] ERROR web.XWikiAction
- Connection aborted
2010-05-05 12:56:47,820 [
http://localhost:8086/xwiki/bin/edit/Main/Missing.png] ERROR web.XWikiAction
- Connection aborted


Best regards,

Wilson

2010/5/5 Marius Dumitru Florea 

> Hi Wilson,
>
> Wilson Leão Neto wrote:
> > Hello Vincent,
> >
> > We are having problems trying to import .doc documents. We are getting
> this:
> > "content: Exception while parsing HTML"
>
> A stack trace would be very useful.
>
> >
> > Our version: XWiki Enterprise 2.2.5.28407
> >
> > Also, we would like to be able to customize the wysiwyg editor. I've read
> > the:
> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/WysiwygEditor
> > And I'm striving to create a button that would add a pagebreak into the
> > code. That would allow the pdf export to properly generate the document.
> >
> >> Velocity code:
> > {{velocity filter="none"}}
> > {{html clean="false" wiki="true"}}
> > #pagebreak()
> > {{/velocity}}
>
> You should start by creating a pagebreak wiki macro
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial so
> that your users can insert a page break through the Insert Macro wizard.
>
> Next, if you want to insert the pagebreak macro with one single click,
> using a tool bar button, you have two options:
>
> (1) Use the Command Manager API exposed in JavaScript (
>
> http://code.xwiki.org/xwiki/bin/view/Modules/WysiwygEditorModule#HCommandManager
> ) to insert the pagebreak macro:
>
> editor.getCommandManager().execute('macroInsert',
> 'startmacro:pagebreak|-|')
>
> Currently we don't save a reference to the WYSIWYG editor used to edit
> wiki pages but you can observe the xwiki:wysiwyg:created event with
> prototype and get the editor instance from the 'instance' property of
> the event (I don't know prototype that well, others may help you here).
>
> To place a button on the tool bar from outside of the WYSIWYG editor
> code you can take a look at what the full screen editing feature does.
>
> (2) It may be easier and cleaner to write a small plugin for the WYSIWYG
> editor. You can take
>
> http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/xwiki-gwt-wysiwyg-client/src/main/java/org/xwiki/gwt/wysiwyg/client/plugin/symbol/SymbolPlugin.java
> as an example. For this you'll have to checkout the WYSIWYG editor
> source code ( mainly
>
> http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/xwiki-gwt-wysiwyg-client/
> and
>
> http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/xwiki-gwt-wysiwyg-server/
> ), write the plugin in Java, rebuild the editor and update your XWiki
> installation.
>
> Hope this helps,
> Marius
>
> >
> > It may seems like I'm "POGging" around... If you know a better way to do
> it,
> > please, tell me. ;)
> >
> > Thank you! You're being very helpful!
> >
> > Wilson
> >
> >
> >
> >
> >
> >
> > 2010/5/4 Vincent Massol 
> >
> >> Hi,
> >>
> >> On May 4, 2010, at 8:15 PM, Wilson Leão Neto wrote:
> >>
> >>> Hello all!
> >>>
> >>> Is it possible to completely replace the xwiki wysiwyg editor? For
> >> instance,
> >>> use the http://ckeditor.com/demo. If so, how should I procede? Will
> the
> >> work
> >>> be almost impossible?
> >> Nothing is impossible but you'd loose a lot of features.
> >>
> >> Why would you be interested in doing this?
> >>
> >> 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] Replace the wysiwyg editor

2010-05-04 Thread Wilson Leão Neto
Hello Vincent,

We are having problems trying to import .doc documents. We are getting this:
"content: Exception while parsing HTML"

Our version: XWiki Enterprise 2.2.5.28407

Also, we would like to be able to customize the wysiwyg editor. I've read
the:
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/WysiwygEditor
And I'm striving to create a button that would add a pagebreak into the
code. That would allow the pdf export to properly generate the document.

> Velocity code:
{{velocity filter="none"}}
{{html clean="false" wiki="true"}}
#pagebreak()
{{/velocity}}

It may seems like I'm "POGging" around... If you know a better way to do it,
please, tell me. ;)

Thank you! You're being very helpful!

Wilson






2010/5/4 Vincent Massol 

> Hi,
>
> On May 4, 2010, at 8:15 PM, Wilson Leão Neto wrote:
>
> > Hello all!
> >
> > Is it possible to completely replace the xwiki wysiwyg editor? For
> instance,
> > use the http://ckeditor.com/demo. If so, how should I procede? Will the
> work
> > be almost impossible?
>
> Nothing is impossible but you'd loose a lot of features.
>
> Why would you be interested in doing this?
>
> 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


[xwiki-users] Replace the wysiwyg editor

2010-05-04 Thread Wilson Leão Neto
Hello all!

Is it possible to completely replace the xwiki wysiwyg editor? For instance,
use the http://ckeditor.com/demo. If so, how should I procede? Will the work
be almost impossible?

Thank you in advance,

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


Re: [xwiki-users] PDF export - Footer/Header/View

2010-05-03 Thread Wilson Leão Neto
Hey Ludovic and all!

Could you explain the following to me.

Why is the following line of code used almost everywhere in the .vm files
used to export pdfs.
>> $pdfdoc.use("XWiki.PDFClass")

Is it significant?


Also, I would like to create another class like the cover and the toc. For
instance, every document here has a last page with the company's data. So, I
would like to be able to enable and disable it through the URL, just like
the toc and cover. I've done something similiar with another parameter,
which I get using the $request and use it to perform some specific actions
in the .vm codes.

Has anyone worked with something similar?

I'm asking all those questions because I'm extremely newbie with XWiki (as
you all can see), hahaha, and I need to get this customized pdf export
working until friday...

Thank you in advance,

Wilson



2010/5/3 Wilson Leão Neto 

> Yes! It works with the pdf.css file!
>
> With a bit of workarounds I believe I will be able to reach my goals... I
> think so... I'll be back later with more problems, hehe.
>
> Thanks!
>
> Wilson
>
> 2010/5/3 Ludovic Dubost 
>
>> Yes create one.
>>
>> For the translation either create a translation page or override the
>> templates using it
>>
>> Envoyé de mon iPhone
>>
>> Le 3 mai 2010 à 21:22, Wilson Leão Neto 
>> a écrit :
>>
>> > Hello Ludovic!
>> >
>> > Here it is: XWIKI ENTERPRISE 2.2.5.28407
>> >
>> >
>> >
>> >
>> > There's no pdf.css. Should I create one?
>> >
>> >
>> >
>> > I have another question. Could you tell me where do I find the
>> > content of this msg: $msg.get('core.pdf.tableOfContents').
>> > I wanna be able to create some more and eventually change the
>> > already existing ones.
>> >
>> > Best regards,
>> >
>> > Wilson
>> >
>> >
>> > 2010/5/3 Ludovic Dubost 
>> >
>> > Which version of XWiki are your running on ?
>> >
>> > I've been using this succesfully on multiple projects.
>> >
>> > --
>> > Can you try directly modifying pdf.css in webapps/xwiki/templates/
>> >
>> > --
>> >
>> > However, note that pdf.css can only be used to style using "id" and
>> > "element", but not classes.
>> >
>> > There is a patch for this in:
>> http://jira.xwiki.org/jira/browse/XWIKI-4869
>> >
>> >
>> > Le 03/05/10 19:04, Wilson Leão Neto a écrit :
>> > I've tried with both syntaxes. Either way, it just doesn't work.. :/
>> >
>> >
>> > I've successfully changed the .vm files. But I'm still not able to
>> > apply any
>> > kind of css.
>> >
>> > Thanks for the help though.
>> >
>> >
>> > Best regards,
>> > Wilson
>> >
>> >
>> > 2010/5/3 Sergiu Dumitriu
>> >
>> > On 05/03/2010 05:50 PM, Vincent Massol wrote:
>> > On May 3, 2010, at 5:38 PM, Wilson Leão Neto wrote:
>> >
>> > Hello Vincent!
>> >
>> > Thank you for your answer!
>> >
>> > I've followed the tutorial on
>> >
>> >
>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizingthePDFexportLookFeel
>> > And I've tried to export the pdf using the URL:
>> >
>> >
>> >
>> http://10.11.1.221:9086/xwiki/bin/export/Teste/WebHome?format=pdf&pdfcover=0&pdftoc=0&pdftemplate=XWiki.teste1
>> > <
>> >
>> http://10.11.1.221:9086/xwiki/bin/export/Teste/WebHome?format=pdf&pdfcover=0&pdftoc=0&pdftemplate=XWiki.teste1
>> > The
>> > XWiki.teste1 page has the "style" textarea property with the following
>> > code
>> > h1 {
>> >
>> > color: white;
>> >
>> > background: black;
>> >
>> > margin-left: 3cm;
>> >
>> > margin-bottom: 9cm;
>> > }
>> >
>> > I'm still not able to see any changes in the exported pdf...
>> >
>> > Any clues on what I'm doing wrong?
>> > hmmm... Make sure that page is written in XWiki 1.0 syntax maybe. I
>> > have
>> > no idea if it works in XWiki 2.0 syntax but probably not since this
>> > is some
>> > code older than the new XWiki Syntax 2.0.
>> >
>> > It should, since the customization steps are applied on the generated
>&g

Re: [xwiki-users] PDF export - Footer/Header/View

2010-05-03 Thread Wilson Leão Neto
Yes! It works with the pdf.css file!

With a bit of workarounds I believe I will be able to reach my goals... I
think so... I'll be back later with more problems, hehe.

Thanks!

Wilson

2010/5/3 Ludovic Dubost 

> Yes create one.
>
> For the translation either create a translation page or override the
> templates using it
>
> Envoyé de mon iPhone
>
> Le 3 mai 2010 à 21:22, Wilson Leão Neto 
> a écrit :
>
> > Hello Ludovic!
> >
> > Here it is: XWIKI ENTERPRISE 2.2.5.28407
> >
> >
> >
> >
> > There's no pdf.css. Should I create one?
> >
> >
> >
> > I have another question. Could you tell me where do I find the
> > content of this msg: $msg.get('core.pdf.tableOfContents').
> > I wanna be able to create some more and eventually change the
> > already existing ones.
> >
> > Best regards,
> >
> > Wilson
> >
> >
> > 2010/5/3 Ludovic Dubost 
> >
> > Which version of XWiki are your running on ?
> >
> > I've been using this succesfully on multiple projects.
> >
> > --
> > Can you try directly modifying pdf.css in webapps/xwiki/templates/
> >
> > --
> >
> > However, note that pdf.css can only be used to style using "id" and
> > "element", but not classes.
> >
> > There is a patch for this in:
> http://jira.xwiki.org/jira/browse/XWIKI-4869
> >
> >
> > Le 03/05/10 19:04, Wilson Leão Neto a écrit :
> > I've tried with both syntaxes. Either way, it just doesn't work.. :/
> >
> >
> > I've successfully changed the .vm files. But I'm still not able to
> > apply any
> > kind of css.
> >
> > Thanks for the help though.
> >
> >
> > Best regards,
> > Wilson
> >
> >
> > 2010/5/3 Sergiu Dumitriu
> >
> > On 05/03/2010 05:50 PM, Vincent Massol wrote:
> > On May 3, 2010, at 5:38 PM, Wilson Leão Neto wrote:
> >
> > Hello Vincent!
> >
> > Thank you for your answer!
> >
> > I've followed the tutorial on
> >
> >
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizingthePDFexportLookFeel
> > And I've tried to export the pdf using the URL:
> >
> >
> >
> http://10.11.1.221:9086/xwiki/bin/export/Teste/WebHome?format=pdf&pdfcover=0&pdftoc=0&pdftemplate=XWiki.teste1
> > <
> >
> http://10.11.1.221:9086/xwiki/bin/export/Teste/WebHome?format=pdf&pdfcover=0&pdftoc=0&pdftemplate=XWiki.teste1
> > The
> > XWiki.teste1 page has the "style" textarea property with the following
> > code
> > h1 {
> >
> > color: white;
> >
> > background: black;
> >
> > margin-left: 3cm;
> >
> > margin-bottom: 9cm;
> > }
> >
> > I'm still not able to see any changes in the exported pdf...
> >
> > Any clues on what I'm doing wrong?
> > hmmm... Make sure that page is written in XWiki 1.0 syntax maybe. I
> > have
> > no idea if it works in XWiki 2.0 syntax but probably not since this
> > is some
> > code older than the new XWiki Syntax 2.0.
> >
> > It should, since the customization steps are applied on the generated
> > content. The only place where the rendering engine is used is in
> > pdf.vm,
> > in a call to $pageDoc.getRenderedContent().
> >
> > Thanks
> > -Vincent
> >
> > Best regards,
> >
> > Wilson
> >
> >
> >
> > 2010/5/3 Vincent Massol
> >
> > Hi Wilson,
> >
> > On Apr 30, 2010, at 6:56 PM, Wilson Leão Neto wrote:
> >
> > Hello all!
> >
> > I'm working with XWiki and I'm a newbie... I've read the tutorial
> > available
> > on http://code.xwiki.org/xwiki/bin/view/Modules/RenderingModule and
> > the
> > customization part of the pdf export. I'm still clueless on how to do
> > it
> > properly... I have java experience, so I can code what is necessary, I
> > just
> > don't know where to go.
> >
> > All I want to do is change the default template. Changing the footer,
> > header, TOC and breaking a page on every h1 found.
> >
> > I would be glad if someone could give me a hint.
> > PDF export is not done using the new rendering system. It's still
> > using
> > some older system.
> > The customization is described here:
> >
> >
> >
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizingthePDFexportLookFeel
> > Thanks
> > -Vincent
> >
> > --
> > 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
> >
> >
> >
> > --
> > Ludovic Dubost
> > Blog: http://blog.ludovic.org/
> > XWiki: http://www.xwiki.com
> > Skype: ldubost GTalk: ldubost
> >
> >
> > --
> > Ludovic Dubost
> > Blog: http://blog.ludovic.org/
> > XWiki: http://www.xwiki.com
> > Skype: ldubost GTalk: ldubost
> >
> ___
> 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] PDF export - Footer/Header/View

2010-05-03 Thread Wilson Leão Neto
Hello Ludovic!

Here it is: XWIKI ENTERPRISE 2.2.5.28407




There's no pdf.css. Should I create one?



I have another question. Could you tell me where do I find the content of
this msg: $msg.get('core.pdf.tableOfContents').
I wanna be able to create some more and eventually change the already
existing ones.

Best regards,

Wilson


2010/5/3 Ludovic Dubost 

>
> Which version of XWiki are your running on ?
>
> I've been using this succesfully on multiple projects.
>
> --
> Can you try directly modifying pdf.css in webapps/xwiki/templates/
>
> --
>
> However, note that pdf.css can only be used to style using "id" and
> "element", but not classes.
>
> There is a patch for this in: http://jira.xwiki.org/jira/browse/XWIKI-4869
>
>
> Le 03/05/10 19:04, Wilson Leão Neto a écrit :
>
>> I've tried with both syntaxes. Either way, it just doesn't work.. :/
>>
>>
>> I've successfully changed the .vm files. But I'm still not able to apply
>> any
>> kind of css.
>>
>> Thanks for the help though.
>>
>>
>> Best regards,
>> Wilson
>>
>>
>> 2010/5/3 Sergiu Dumitriu
>>
>>  On 05/03/2010 05:50 PM, Vincent Massol wrote:
>>>
>>>> On May 3, 2010, at 5:38 PM, Wilson Leão Neto wrote:
>>>>
>>>>  Hello Vincent!
>>>>>
>>>>> Thank you for your answer!
>>>>>
>>>>> I've followed the tutorial on
>>>>>
>>>>>
>>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizingthePDFexportLookFeel
>>>
>>>> And I've tried to export the pdf using the URL:
>>>>>
>>>>>
>>>>>
>>> http://10.11.1.221:9086/xwiki/bin/export/Teste/WebHome?format=pdf&pdfcover=0&pdftoc=0&pdftemplate=XWiki.teste1
>>>
>>>> <
>>>>>
>>>>
>>> http://10.11.1.221:9086/xwiki/bin/export/Teste/WebHome?format=pdf&pdfcover=0&pdftoc=0&pdftemplate=XWiki.teste1
>>>
>>>> The
>>>>
>>>>> XWiki.teste1 page has the "style" textarea property with the following
>>>>>
>>>> code
>>>
>>>> h1 {
>>>>>
>>>>> color: white;
>>>>>
>>>>> background: black;
>>>>>
>>>>> margin-left: 3cm;
>>>>>
>>>>> margin-bottom: 9cm;
>>>>> }
>>>>>
>>>>> I'm still not able to see any changes in the exported pdf...
>>>>>
>>>>> Any clues on what I'm doing wrong?
>>>>>
>>>> hmmm... Make sure that page is written in XWiki 1.0 syntax maybe. I have
>>>>
>>> no idea if it works in XWiki 2.0 syntax but probably not since this is
>>> some
>>> code older than the new XWiki Syntax 2.0.
>>>
>>> It should, since the customization steps are applied on the generated
>>> content. The only place where the rendering engine is used is in pdf.vm,
>>> in a call to $pageDoc.getRenderedContent().
>>>
>>>  Thanks
>>>> -Vincent
>>>>
>>>>  Best regards,
>>>>>
>>>>> Wilson
>>>>>
>>>>>
>>>>>
>>>>> 2010/5/3 Vincent Massol
>>>>>
>>>>>  Hi Wilson,
>>>>>>
>>>>>> On Apr 30, 2010, at 6:56 PM, Wilson Leão Neto wrote:
>>>>>>
>>>>>>  Hello all!
>>>>>>>
>>>>>>> I'm working with XWiki and I'm a newbie... I've read the tutorial
>>>>>>>
>>>>>> available
>>>>>>
>>>>>>> on http://code.xwiki.org/xwiki/bin/view/Modules/RenderingModule and
>>>>>>>
>>>>>> the
>>>
>>>> customization part of the pdf export. I'm still clueless on how to do
>>>>>>>
>>>>>> it
>>>
>>>> properly... I have java experience, so I can code what is necessary, I
>>>>>>>
>>>>>> just
>>>>>>
>>>>>>> don't know where to go.
>>>>>>>
>>>>>>> All I want to do is change the default template. Changing the footer,
>>>>>>> header, TOC and breaking a page on every h1 found.
>>>>>>>
>>>>>>> I would be glad if someone could give me a hint.
>>>>>>>
>>>>>> PDF export is not done using the new rendering system. It's still
>>>>>> using
>>>>>> some older system.
>>>>>> The customization is described here:
>>>>>>
>>>>>>
>>>>>>
>>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizingthePDFexportLookFeel
>>>
>>>> Thanks
>>>>>> -Vincent
>>>>>>
>>>>>
>>> --
>>> 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
>>
>>
>
> --
> Ludovic Dubost
> Blog: http://blog.ludovic.org/
> XWiki: http://www.xwiki.com
> Skype: ldubost GTalk: ldubost
>
>
> --
> Ludovic Dubost
> Blog: http://blog.ludovic.org/
> XWiki: http://www.xwiki.com
> Skype: ldubost GTalk: ldubost
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] PDF export - Footer/Header/View

2010-05-03 Thread Wilson Leão Neto
I've tried with both syntaxes. Either way, it just doesn't work.. :/

I've successfully changed the .vm files. But I'm still not able to apply any
kind of css.

Thanks for the help though.


Best regards,
Wilson


2010/5/3 Sergiu Dumitriu 

> On 05/03/2010 05:50 PM, Vincent Massol wrote:
> >
> > On May 3, 2010, at 5:38 PM, Wilson Leão Neto wrote:
> >
> >> Hello Vincent!
> >>
> >> Thank you for your answer!
> >>
> >> I've followed the tutorial on
> >>
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizingthePDFexportLookFeel
> >>
> >> And I've tried to export the pdf using the URL:
> >>
> >>
> http://10.11.1.221:9086/xwiki/bin/export/Teste/WebHome?format=pdf&pdfcover=0&pdftoc=0&pdftemplate=XWiki.teste1
> >>
> >> <
> http://10.11.1.221:9086/xwiki/bin/export/Teste/WebHome?format=pdf&pdfcover=0&pdftoc=0&pdftemplate=XWiki.teste1
> >The
> >> XWiki.teste1 page has the "style" textarea property with the following
> code
> >>
> >> h1 {
> >>
> >> color: white;
> >>
> >> background: black;
> >>
> >> margin-left: 3cm;
> >>
> >> margin-bottom: 9cm;
> >> }
> >>
> >> I'm still not able to see any changes in the exported pdf...
> >>
> >> Any clues on what I'm doing wrong?
> >
> > hmmm... Make sure that page is written in XWiki 1.0 syntax maybe. I have
> no idea if it works in XWiki 2.0 syntax but probably not since this is some
> code older than the new XWiki Syntax 2.0.
>
> It should, since the customization steps are applied on the generated
> content. The only place where the rendering engine is used is in pdf.vm,
> in a call to $pageDoc.getRenderedContent().
>
> > Thanks
> > -Vincent
> >
> >>
> >> Best regards,
> >>
> >> Wilson
> >>
> >>
> >>
> >> 2010/5/3 Vincent Massol
> >>
> >>> Hi Wilson,
> >>>
> >>> On Apr 30, 2010, at 6:56 PM, Wilson Leão Neto wrote:
> >>>
> >>>> Hello all!
> >>>>
> >>>> I'm working with XWiki and I'm a newbie... I've read the tutorial
> >>> available
> >>>> on http://code.xwiki.org/xwiki/bin/view/Modules/RenderingModule and
> the
> >>>> customization part of the pdf export. I'm still clueless on how to do
> it
> >>>> properly... I have java experience, so I can code what is necessary, I
> >>> just
> >>>> don't know where to go.
> >>>>
> >>>> All I want to do is change the default template. Changing the footer,
> >>>> header, TOC and breaking a page on every h1 found.
> >>>>
> >>>> I would be glad if someone could give me a hint.
> >>>
> >>> PDF export is not done using the new rendering system. It's still using
> >>> some older system.
> >>> The customization is described here:
> >>>
> >>>
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizingthePDFexportLookFeel
> >>>
> >>> Thanks
> >>> -Vincent
>
>
> --
> 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] PDF export - Footer/Header/View

2010-05-03 Thread Wilson Leão Neto
Hello Vincent!

Thank you for your answer!

I've followed the tutorial on
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizingthePDFexportLookFeel

And I've tried to export the pdf using the URL:

http://10.11.1.221:9086/xwiki/bin/export/Teste/WebHome?format=pdf&pdfcover=0&pdftoc=0&pdftemplate=XWiki.teste1

<http://10.11.1.221:9086/xwiki/bin/export/Teste/WebHome?format=pdf&pdfcover=0&pdftoc=0&pdftemplate=XWiki.teste1>The
XWiki.teste1 page has the "style" textarea property with the following code

h1 {

color: white;

background: black;

margin-left: 3cm;

margin-bottom: 9cm;
}

I'm still not able to see any changes in the exported pdf...

Any clues on what I'm doing wrong?

Best regards,

Wilson



2010/5/3 Vincent Massol 

> Hi Wilson,
>
> On Apr 30, 2010, at 6:56 PM, Wilson Leão Neto wrote:
>
> > Hello all!
> >
> > I'm working with XWiki and I'm a newbie... I've read the tutorial
> available
> > on http://code.xwiki.org/xwiki/bin/view/Modules/RenderingModule and the
> > customization part of the pdf export. I'm still clueless on how to do it
> > properly... I have java experience, so I can code what is necessary, I
> just
> > don't know where to go.
> >
> > All I want to do is change the default template. Changing the footer,
> > header, TOC and breaking a page on every h1 found.
> >
> > I would be glad if someone could give me a hint.
>
> PDF export is not done using the new rendering system. It's still using
> some older system.
> The customization is described here:
>
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizingthePDFexportLookFeel
>
> 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


[xwiki-users] PDF export - Footer/Header/View

2010-04-30 Thread Wilson Leão Neto
Hello all!

I'm working with XWiki and I'm a newbie... I've read the tutorial available
on http://code.xwiki.org/xwiki/bin/view/Modules/RenderingModule and the
customization part of the pdf export. I'm still clueless on how to do it
properly... I have java experience, so I can code what is necessary, I just
don't know where to go.

All I want to do is change the default template. Changing the footer,
header, TOC and breaking a page on every h1 found.

I would be glad if someone could give me a hint.

Thank you,

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


Re: [xwiki-users] Writing the HelloWorld component - Failed to load component

2010-04-30 Thread Wilson Leão Neto
Thank you very much!

I've read it... I'm still having problems. I'm kinda newbie on it.

2010/4/29 Thomas Mortagne 

> On Thu, Apr 29, 2010 at 18:42, Wilson Leão Neto
>  wrote:
> > Hello all!
> >
> > I've followed the step-by-step available on:
> > http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents
>
> As you can see on this page, this tutorial is deprecated.
>
> "The tutorial below is slightly outdated since some changes have been
> brought to the Component Module since it was written. See the
> Reference document on XWiki Components for fresh information. This
> tutorial needs to be rewritten and duplicate with the Reference
> document removed."
>
> You should at http://code.xwiki.org/xwiki/bin/view/Modules/ComponentModule
> instead.
>
> >
> > <%
> > def greeter = com.xpn.xwiki.web.Utils.getComponent(org.xwiki.component.
> > HelloWorld.class);
> > println greeter.sayHello();
> > %>
> >
> > And all I get when trying to use it with the Groovy code above is:
> >
> > Error:
> > java.lang.RuntimeException: Failed to load component
> xwiki.component.Hello
> > World?<
> http://10.11.1.221:9086/xwiki/bin/edit/org.xwiki.component/HelloWorld?parent=Main.teste9
> >
> > for
> > hint default<
> http://10.11.1.221:9086/xwiki/bin/edit/Main/default?parent=Main.teste9>
> > ? <
> http://10.11.1.221:9086/xwiki/bin/edit/Main/default?parent=Main.teste9>
> >
> > Does anyone have any clue on what I'm doing wrong?
> >
> > Thank you!
> >
> > Wilson
> > ___
> > 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


[xwiki-users] Writing the HelloWorld component - Failed to load component

2010-04-29 Thread Wilson Leão Neto
Hello all!

I've followed the step-by-step available on:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents

<%
def greeter = com.xpn.xwiki.web.Utils.getComponent(org.xwiki.component.
HelloWorld.class);
println greeter.sayHello();
%>

And all I get when trying to use it with the Groovy code above is:

Error:
java.lang.RuntimeException: Failed to load component xwiki.component.Hello
World?
for
hint 
default
? 

Does anyone have any clue on what I'm doing wrong?

Thank you!

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


[xwiki-users] Export a PDF using a template

2010-04-16 Thread Wilson Leão Neto
Hello all,

I've being working with XWiki and I'm stalled on the following issue. I've
being assigned to work on a pdf generation with some already defined
templates.

I took a look at the tutorial:
A -
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizingthePDFexportLookFeel

And studied something about the rendering module:
http://code.xwiki.org/xwiki/bin/view/Modules/RenderingModule

I've followed the steps in A, created the Class and the Page, to which I
attached the previously created Class. Then I tried to generate the pdf
using:
http://wiki.atech.com.br:8086/xwiki/bin/export/Main/p?format=pdf&pdfcover=0&pdftoc=0&includelinks=0&includechilds=0&pdftemplate=XWiki.templateForm002
Where XWiki.templateForm002 is the template page I've just created.

It just doesn't work...

What am I doing wrong? Has anyone experienced something similar?

Best regards,

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


[xwiki-users] wilson.leao.n...@gmail.com

2010-04-16 Thread Wilson Leão Neto
wilson.leao.n...@gmail.com
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users