[xwiki-users] WYSIWYG doesn't work on Windows installation

2016-06-30 Thread PatrickVoirol
Hi all

I just installed XWiki 8.1 on my Windows Laptop and everything works well
just the WYSIWYG-Editor is hanging up. I tried to find some similar Problem,
but it seems like I'm the only one.

Has somebody an idea why it's happen?

Regards Patrick



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/WYSIWYG-doesn-t-work-on-Windows-installation-tp7600179.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


[xwiki-users] force edit inline and redirect

2016-06-30 Thread Pascal BASTIEN
Hi xwiki citizen,

I try to redirect to another page users when they edit a page...

Then I use this velocity code in my origin page:

#if ($xcontext.action=='edit')
  $response.sendRedirect($xwiki.getURL('MySpace.MaTargetPage', 'edit'))
  #stop
#end

Redirect (to MyOriginPage in edit mode) working well if user open MyOriginPage 
in inline mode:
aka /bin/edit/MySpace/MyOriginPage?editor=inline

But my users are "simple user" then I try to force inline mode when they click 
on 'Edit'

What I tested is: add an XWiki.SheetClass object to "MyOriginPage" with 
"Default Edit Mode"=inline ...
but I have a very  strange behaviour: it's working only for "Admin" user :-(

With simple user, when I 'Edit' my Page, I obtain target Page with all xwiki 
menu INSIDE editor like this ugly things
https://snag.gy/SrkIua.jpg

If someone have an idea...
Thxs

Pascal B




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


Re: [xwiki-users] WYSIWYG doesn't work on Windows installation

2016-06-30 Thread Vincent Massol
Hi Patrick,

> On 30 Jun 2016, at 12:05, PatrickVoirol  wrote:
> 
> Hi all
> 
> I just installed XWiki 8.1 on my Windows Laptop and everything works well
> just the WYSIWYG-Editor is hanging up. I tried to find some similar Problem,
> but it seems like I'm the only one.
> 
> Has somebody an idea why it's happen?

Make sure you force-refresh your browser cache.

Let us know if it helps.
Thanks
-Vincent

> Regards Patrick
> 
> 
> 
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/WYSIWYG-doesn-t-work-on-Windows-installation-tp7600179.html

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


Re: [xwiki-users] NullPointerException at HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)

2016-06-30 Thread Kemalettin OCAK
Hi,
I found the reason. It's all beacause ojdbc6.jar. There are different jars for 
every different minor version change. I used jdbc connector for Oracle 11g ( 
11.2.0.4.0 ) and my database version is  11.2.0.1.0.  After i download correct 
one, problem solved. One thing to remember is Oracle named all of them as 
ojdbc6.jar.

Thanks all.

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Kemalettin OCAK
Sent: Wednesday, June 29, 2016 3:02 PM
To: XWiki Users
Subject: Re: [xwiki-users] NullPointerException at HqlSqlWalker.lookupProperty( 
HqlSqlWalker.java:560)

Yes, i read that thread till the end but didn't tried MySql. I tried H2 to be 
sure if it's database related issue but same stack trace. I am planning to use 
that wiki in our server environment. We use weblogic as application server and 
Oracle11g as database server. Actually, after i test standalone version in my 
desktop, i tried to deploy xwiki to weblogic and had several errors. I passed 
all of them and stucked at this one. After that i gave a try to Apache Tomcat 
and same issue. I am trying to make it work for a week but i am desperate now. 
I think, i will use standalone version at the production environment :)

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Clemens 
Klein-Robbenhaar
Sent: Wednesday, June 29, 2016 2:54 PM
To: users@xwiki.org
Subject: Re: [xwiki-users] NullPointerException at HqlSqlWalker.lookupProperty( 
HqlSqlWalker.java:560)

Uh, oh, this looks like this problem reported last year:
http://markmail.org/thread/4iigsjpxdaw2qzzq

the issue went away there when using mySQL - for unknown reasons, so that time 
we did not really find a solution.
hope we can do better this time.


- Ursprüngliche Nachricht -
Von: Kemalettin Ocak
Am:  Wednesday, 29.06.2016, 12:20
An: Xwiki Users
Betreff: Re: [xwiki-users] NullPointerException at  
HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)


> Here is the root cause:
> 
> HTTP Status 500 - com.xpn.xwiki.XWikiException: Error number 11007 in 0: 
> Failed to extract Entity Resource Reference from URL 
> [http://localhost:8080/xwiki/bin/view/Main/]
> 
> type Exception report
> 
> message com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to 
> extract Entity Resource Reference from URL 
> [http://localhost:8080/xwiki/bin/view/Main/]
> 
> description The server encountered an internal error that prevented it from 
> fulfilling this request.
> 
> exception
> 
> javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 
> 11007 in 0: Failed to extract Entity Resource Reference from URL 
> [http://localhost:8080/xwiki/bin/view/Main/]
>   
> org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520)
[...]
> 
> root cause
> 
> com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract 
> Entity Resource Reference from URL 
> [http://localhost:8080/xwiki/bin/view/Main/]
>   com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:821)
>   com.xpn.xwiki.XWiki.getXWiki(XWiki.java:764)
[...]
> root cause
> 
> java.lang.RuntimeException: Failed to locate wiki descriptor for alias 
> [localhost]
>   
> org.xwiki.url.internal.standard.AbstractWikiReferenceExtractor.getWikiDescriptorByAlias(AbstractWikiReferenceExtractor.java:80)
>   
> org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.resolveDomainBasedWikiReference(DomainWikiReferenceExtractor.java:61)
[...]

here is where the XWQL query is send as HQL query instead of being translated:

> 
> root cause
> 
> org.xwiki.query.QueryException: Exception while executing query. Query 
> statement = [ select doc.fullName from XWikiDocument as doc , BaseObject as 
> _o1 where ( doc.object ( XWiki.XWikiServerClass ) . server = :wikiAlias and 
> doc.name like 'XWikiServer%' ) and doc.fullName=_o1.name and 
> _o1.className='XWiki.XWikiServerClass' ]
>   
> com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:175)
>   
> org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:72)
>   org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287)
>   
> org.xwiki.query.xwql.internal.XWQLQueryExecutor.execute(XWQLQueryExecutor.java:118)
[..]
> root cause
> 
> java.lang.NullPointerException
>   org.hibernate.hql.ast.HqlSqlWalker.lookupProperty(HqlSqlWalker.java:560)
>   
> org.hibernate.hql.antlr.HqlSqlBaseWalker.addrExpr(HqlSqlBaseWalker.java:4774)
>   
> org.hibernate.hql.antlr.HqlSqlBaseWalker.expr(HqlSqlBaseWalker.java:1326)
[...]

 and here the dot in " doc.fullName" or "doc.object" triggers the NPE in the 
hibernate HQL Query parser :-/

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Dikkat: Bu elektronik posta mesaji kisisel ve ozeldir. Eger size 
gonderilmediyse lutfen gondericiyi bilgilendirip me

Re: [xwiki-users] NullPointerException at HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)

2016-06-30 Thread Vincent Massol
Thanks for reporting back!

I’ve added an entry at 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationOracle#HNullPointerExceptionatHqlSqlWalker

Thanks
-Vincent

> On 30 Jun 2016, at 14:34, Kemalettin OCAK  wrote:
> 
> Hi,
> I found the reason. It's all beacause ojdbc6.jar. There are different jars 
> for every different minor version change. I used jdbc connector for Oracle 
> 11g ( 11.2.0.4.0 ) and my database version is  11.2.0.1.0.  After i download 
> correct one, problem solved. One thing to remember is Oracle named all of 
> them as ojdbc6.jar.
> 
> Thanks all.
> 
> -Original Message-
> From: users [mailto:users-boun...@xwiki.org] On Behalf Of Kemalettin OCAK
> Sent: Wednesday, June 29, 2016 3:02 PM
> To: XWiki Users
> Subject: Re: [xwiki-users] NullPointerException at 
> HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)
> 
> Yes, i read that thread till the end but didn't tried MySql. I tried H2 to be 
> sure if it's database related issue but same stack trace. I am planning to 
> use that wiki in our server environment. We use weblogic as application 
> server and Oracle11g as database server. Actually, after i test standalone 
> version in my desktop, i tried to deploy xwiki to weblogic and had several 
> errors. I passed all of them and stucked at this one. After that i gave a try 
> to Apache Tomcat and same issue. I am trying to make it work for a week but i 
> am desperate now. I think, i will use standalone version at the production 
> environment :)
> 
> -Original Message-
> From: users [mailto:users-boun...@xwiki.org] On Behalf Of Clemens 
> Klein-Robbenhaar
> Sent: Wednesday, June 29, 2016 2:54 PM
> To: users@xwiki.org
> Subject: Re: [xwiki-users] NullPointerException at 
> HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)
> 
> Uh, oh, this looks like this problem reported last year:
> http://markmail.org/thread/4iigsjpxdaw2qzzq
> 
> the issue went away there when using mySQL - for unknown reasons, so that 
> time we did not really find a solution.
> hope we can do better this time.
> 
> 
> - Ursprüngliche Nachricht -
> Von: Kemalettin Ocak
> Am:  Wednesday, 29.06.2016, 12:20
> An: Xwiki Users
> Betreff: Re: [xwiki-users] NullPointerException   at  
> HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)
> 
> 
>> Here is the root cause:
>> 
>> HTTP Status 500 - com.xpn.xwiki.XWikiException: Error number 11007 in 0: 
>> Failed to extract Entity Resource Reference from URL 
>> [http://localhost:8080/xwiki/bin/view/Main/]
>> 
>> type Exception report
>> 
>> message com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to 
>> extract Entity Resource Reference from URL 
>> [http://localhost:8080/xwiki/bin/view/Main/]
>> 
>> description The server encountered an internal error that prevented it from 
>> fulfilling this request.
>> 
>> exception
>> 
>> javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 
>> 11007 in 0: Failed to extract Entity Resource Reference from URL 
>> [http://localhost:8080/xwiki/bin/view/Main/]
>>  
>> org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:520)
> [...]
>> 
>> root cause
>> 
>> com.xpn.xwiki.XWikiException: Error number 11007 in 0: Failed to extract 
>> Entity Resource Reference from URL 
>> [http://localhost:8080/xwiki/bin/view/Main/]
>>  com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:821)
>>  com.xpn.xwiki.XWiki.getXWiki(XWiki.java:764)
> [...]
>> root cause
>> 
>> java.lang.RuntimeException: Failed to locate wiki descriptor for alias 
>> [localhost]
>>  
>> org.xwiki.url.internal.standard.AbstractWikiReferenceExtractor.getWikiDescriptorByAlias(AbstractWikiReferenceExtractor.java:80)
>>  
>> org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.resolveDomainBasedWikiReference(DomainWikiReferenceExtractor.java:61)
> [...]
> 
> here is where the XWQL query is send as HQL query instead of being translated:
> 
>> 
>> root cause
>> 
>> org.xwiki.query.QueryException: Exception while executing query. Query 
>> statement = [ select doc.fullName from XWikiDocument as doc , BaseObject as 
>> _o1 where ( doc.object ( XWiki.XWikiServerClass ) . server = :wikiAlias and 
>> doc.name like 'XWikiServer%' ) and doc.fullName=_o1.name and 
>> _o1.className='XWiki.XWikiServerClass' ]
>>  
>> com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:175)
>>  
>> org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:72)
>>  org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287)
>>  
>> org.xwiki.query.xwql.internal.XWQLQueryExecutor.execute(XWQLQueryExecutor.java:118)
> [..]
>> root cause
>> 
>> java.lang.NullPointerException
>>  org.hibernate.hql.ast.HqlSqlWalker.lookupProperty(HqlSqlWalker.java:560)
>>  
>> org.hibernate.hql.antlr.HqlSqlBaseWalker.addrExpr(HqlSqlBaseWalker.java:4774)
>>  
>> org.hibernate.hql.antlr.HqlSqlBaseW

Re: [xwiki-users] WYSIWYG doesn't work on Windows installation

2016-06-30 Thread PatrickVoirol
Hi

I just changed the page Syntax from 2.1 to 2.0 and back. Now it works
perfectly.

Thanks



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/WYSIWYG-doesn-t-work-on-Windows-installation-tp7600179p7600188.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] force edit inline and redirect

2016-06-30 Thread Pascal BASTIEN
hum
$doc.getDefaultEditMode() return 'edit' even on doc edited in inline mode by 
default :-(
http://maven.xwiki.org/site/docs/xwiki-javadoc-4.1.x/com/xpn/xwiki/api/Document.html#getDefaultEditMode%28%29

(I'm on xwiki 7.0.1)


En date de : Jeu 30.6.16, Pascal BASTIEN  a écrit :

 Objet: force edit inline and redirect
 À: "XWiki Users" 
 Date: Jeudi 30 juin 2016, 12h08
 
 Hi xwiki citizen,
 
 I try to redirect to another page users when they edit a
 page...
 
 Then I use this velocity code in my origin page:
 
 #if ($xcontext.action=='edit')
  
 $response.sendRedirect($xwiki.getURL('MySpace.MaTargetPage',
 'edit'))
   #stop
 #end
 
 Redirect (to MyOriginPage in edit mode) working well if user
 open MyOriginPage in inline mode:
 aka /bin/edit/MySpace/MyOriginPage?editor=inline
 
 But my users are "simple user" then I try to force inline
 mode when they click on 'Edit'
 
 What I tested is: add an XWiki.SheetClass object to
 "MyOriginPage" with "Default Edit Mode"=inline ...
 but I have a very  strange behaviour: it's working only
 for "Admin" user :-(
 
 With simple user, when I 'Edit' my Page, I obtain target
 Page with all xwiki menu INSIDE editor like this ugly
 things
 https://snag.gy/SrkIua.jpg
 
 If someone have an idea...
 Thxs
 
 Pascal B
 
 
 
 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] force edit inline and redirect

2016-06-30 Thread Vincent Massol
hmm javadoc says:

/**
 * @return "inline" if the document should be edited in inline mode by default 
or "edit" otherwise.
 * @throws XWikiException if an error happens when computing the edit mode
 */
public String getDefaultEditMode() throws XWikiException

So that would be a bug…

Thanks
-Vincent


> On 30 Jun 2016, at 15:37, Pascal BASTIEN  wrote:
> 
> hum
> $doc.getDefaultEditMode() return 'edit' even on doc edited in inline mode by 
> default :-(
> http://maven.xwiki.org/site/docs/xwiki-javadoc-4.1.x/com/xpn/xwiki/api/Document.html#getDefaultEditMode%28%29
> 
> (I'm on xwiki 7.0.1)
> 
> 
> En date de : Jeu 30.6.16, Pascal BASTIEN  a écrit :
> 
> Objet: force edit inline and redirect
> À: "XWiki Users" 
> Date: Jeudi 30 juin 2016, 12h08
> 
> Hi xwiki citizen,
> 
> I try to redirect to another page users when they edit a
> page...
> 
> Then I use this velocity code in my origin page:
> 
> #if ($xcontext.action=='edit')
>  
> $response.sendRedirect($xwiki.getURL('MySpace.MaTargetPage',
> 'edit'))
>   #stop
> #end
> 
> Redirect (to MyOriginPage in edit mode) working well if user
> open MyOriginPage in inline mode:
> aka /bin/edit/MySpace/MyOriginPage?editor=inline
> 
> But my users are "simple user" then I try to force inline
> mode when they click on 'Edit'
> 
> What I tested is: add an XWiki.SheetClass object to
> "MyOriginPage" with "Default Edit Mode"=inline ...
> but I have a very  strange behaviour: it's working only
> for "Admin" user :-(
> 
> With simple user, when I 'Edit' my Page, I obtain target
> Page with all xwiki menu INSIDE editor like this ugly
> things
> https://snag.gy/SrkIua.jpg
> 
> If someone have an idea...
> Thxs
> 
> Pascal B
> 
> 
> 
> 
> ___
> 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] [ANN] Release of Nested Pages Migrator Application 0.5.1

2016-06-30 Thread Guillaume Delhumeau
Hello

A new version of the Nested Pages Migrator Application extension is
available. See
http://extensions.xwiki.org/xwiki/bin/view/Extension/Nested+Pages+Migrator+Application#Hv0.5.1
You can install or upgrade with the Extension Manager.

The application is still a beta version that you should use carefully. But
this version brings some important bug fixes.

Enjoy!

-- 
Guillaume Delhumeau (guillaume.delhum...@xwiki.com)
Research & Development Engineer at XWiki SAS
Committer on the XWiki.org project
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] [ANN] XWiki 7.4.4 released

2016-06-30 Thread Vincent Massol
The XWiki development team is proud to announce the availability of XWiki 7.4.4.
This is a bugfix release that fixes important bugs discovered in the 7.4.3 
version.

You can download it here: http://www.xwiki.org/xwiki/bin/view/Main/Download

Make sure to review the release notes:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki744

The following people have contributed code to this release (sorted 
alphabetically):

Alexandru Cotiuga
Clemens Robbenhaar
Denis Gervalle
Eduard Moraru
Guillaume Delhumeau
Marius Dumitru Florea
Medjdoub
Pascal Bastien
Thomas Mortagne
Vincent Massol

Thanks for your support
-The XWiki dev team
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Missing numbers of headings in pdf export when using macro numberedheadings

2016-06-30 Thread Alina Kupgisch

Hi Vincent,

thanks for your quick answer. I already tried setting the numbers by 
css, but that causes an "ValidationException: Invalid property 
encountered on "fo:block": counter-reset" (see below). Do you have 
another idea or more links where this is described?


_*Css:*_
body {counter-reset: section}
h2 {counter-reset: sub-section}
h3 {counter-reset: composite}
h4 {counter-reset: detail}

h2:before {
counter-increment: section;
content: counter(section) " ";
}

h3:before {
counter-increment: sub-section;
content: counter(section) "." counter(sub-section) " ";
}

h4:before {
counter-increment: composite;
content: counter(section) "." counter(sub-section) "." 
counter(composite) " ";

}

h5:before {
counter-increment: detail;
content: counter(section) "." counter(sub-section) "." 
counter(composite) "." counter(detail) " ";

}


*_Result:_*
Error number 11015 in 11: Exception while exporting
com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception 
while exporting

[...]
Caused by: javax.xml.transform.TransformerException: 
org.apache.fop.fo.ValidationException: Invalid property encountered on 
"fo:block": counter-reset (Siehe Position 32:56529)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:502)
at 
com.xpn.xwiki.pdf.impl.PdfExportImpl.renderXSLFO(PdfExportImpl.java:357)

... 53 more
Caused by: org.apache.fop.fo.ValidationException: Invalid property 
encountered on "fo:block": counter-reset (Siehe Position 32:56529)
at 
org.apache.fop.events.ValidationExceptionFactory.createException(ValidationExceptionFactory.java:38)
at 
org.apache.fop.events.EventExceptionManager.throwException(EventExceptionManager.java:58)
at 
org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:175)

at com.sun.proxy.$Proxy107.invalidProperty(Unknown Source)
at 
org.apache.fop.fo.PropertyList.handleInvalidProperty(PropertyList.java:557)
at 
org.apache.fop.fo.PropertyList.convertAttributeToProperty(PropertyList.java:476)
at 
org.apache.fop.fo.PropertyList.addAttributesToList(PropertyList.java:386)

at org.apache.fop.fo.FObj.processNode(FObj.java:124)
at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:291)

at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:179)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1073)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:485)

... 54 more


Best regards
Alina


Am 05.06.2016 um 13:28 schrieb Vincent Massol:

Hi Alina,


On 03 Jun 2016, at 15:56, Alina Kupgisch  wrote:

Hi at all,

we are using the macro "numberedheadings" in our pages, which works fine. But 
on pdf export, the numbers get lost. I tried to use css for creating automatic numbers, 
but this produces an error. Is there any other opportunity to achieve an automatic 
numbering?

Disclaimer: the “numbered headings” macro is not supported by the XWiki dev 
team; it’s a contribution.

FYI the “numbered headings” macro from 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Numbered+Headings just 
adds CSS to the pages where it’s used (see 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Numbered+Headings#HImplementation).

Now the reason why you don’t see it applied to the PDF export is because of a 
current limitation: SSX objects are not applied during PDF exports see 
https://jira.xwiki.org/browse/XWIKI-13071

So the current workaround you have is to customize the CSS used for the PDF 
export and use some similar CSS than the one used in that macro:
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizingthePDFexportLook26Feel

Thanks
-Vincent

PS: Note to self and to xwiki devs: It would be great to have some simple to 
read tutorial on customizing the PDF export.

Thanks and best regards

Alina

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



--
---
SOURCEPARK GmbH
B.Sc. Alina Kupgisch

Partner der Allianz für Cyber-Sicherheit
des Bundesamtes für Sicherheit in der
Informationstechnik (BSI)

Hohenzollern

Re: [xwiki-users] Missing numbers of headings in pdf export when using macro numberedheadings

2016-06-30 Thread Vincent Massol

> On 30 Jun 2016, at 18:53, Alina Kupgisch  wrote:
> 
> Hi Vincent,
> 
> thanks for your quick answer. I already tried setting the numbers by css, but 
> that causes an "ValidationException: Invalid property encountered on 
> "fo:block": counter-reset" (see below). Do you have another idea or more 
> links where this is described?

The only link that comes to mind is 
https://xmlgraphics.apache.org/fop/compliance.html which mentions which fo 
properties are supported by FOP which is the lib we use.

Thanks
-Vincent

> _*Css:*_
> body {counter-reset: section}
> h2 {counter-reset: sub-section}
> h3 {counter-reset: composite}
> h4 {counter-reset: detail}
> 
> h2:before {
>counter-increment: section;
>content: counter(section) " ";
> }
> 
> h3:before {
>counter-increment: sub-section;
>content: counter(section) "." counter(sub-section) " ";
> }
> 
> h4:before {
>counter-increment: composite;
>content: counter(section) "." counter(sub-section) "." counter(composite) 
> " ";
> }
> 
> h5:before {
>counter-increment: detail;
>content: counter(section) "." counter(sub-section) "." counter(composite) 
> "." counter(detail) " ";
> }
> 
> 
> *_Result:_*
> Error number 11015 in 11: Exception while exporting
>com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while 
> exporting
> [...]
> Caused by: javax.xml.transform.TransformerException: 
> org.apache.fop.fo.ValidationException: Invalid property encountered on 
> "fo:block": counter-reset (Siehe Position 32:56529)
>at 
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:502)
>at com.xpn.xwiki.pdf.impl.PdfExportImpl.renderXSLFO(PdfExportImpl.java:357)
>... 53 more
> Caused by: org.apache.fop.fo.ValidationException: Invalid property 
> encountered on "fo:block": counter-reset (Siehe Position 32:56529)
>at 
> org.apache.fop.events.ValidationExceptionFactory.createException(ValidationExceptionFactory.java:38)
>at 
> org.apache.fop.events.EventExceptionManager.throwException(EventExceptionManager.java:58)
>at 
> org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:175)
>at com.sun.proxy.$Proxy107.invalidProperty(Unknown Source)
>at 
> org.apache.fop.fo.PropertyList.handleInvalidProperty(PropertyList.java:557)
>at 
> org.apache.fop.fo.PropertyList.convertAttributeToProperty(PropertyList.java:476)
>at 
> org.apache.fop.fo.PropertyList.addAttributesToList(PropertyList.java:386)
>at org.apache.fop.fo.FObj.processNode(FObj.java:124)
>at 
> org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:291)
>at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:179)
>at 
> org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1073)
>at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
>at 
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown 
> Source)
>at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>  Source)
>at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
> Source)
>at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>at 
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:485)
>... 54 more
> 
> 
> Best regards
> Alina
> 
> 
> Am 05.06.2016 um 13:28 schrieb Vincent Massol:
>> Hi Alina,
>> 
>>> On 03 Jun 2016, at 15:56, Alina Kupgisch  
>>> wrote:
>>> 
>>> Hi at all,
>>> 
>>> we are using the macro "numberedheadings" in our pages, which works fine. 
>>> But on pdf export, the numbers get lost. I tried to use css for creating 
>>> automatic numbers, but this produces an error. Is there any other 
>>> opportunity to achieve an automatic numbering?
>> Disclaimer: the “numbered headings” macro is not supported by the XWiki dev 
>> team; it’s a contribution.
>> 
>> FYI the “numbered headings” macro from 
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Numbered+Headings just 
>> adds CSS to the pages where it’s used (see 
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Numbered+Headings#HImplementation).
>> 
>> Now the reason why you don’t see it applied to the PDF export is because of 
>> a current limitation: SSX objects are not applied during PDF exports see 
>> https://jira.xwiki.org/browse/XWIKI-13071
>> 
>> So the current workaround you have is to customize the CSS used for the PDF 
>> export and use some similar CSS than the one used in that macro:
>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizingthePDFexportLook26Feel
>> 
>> Thanks
>> -Vincent
>> 
>> PS

Re: [xwiki-users] [ANN] Release of Nested Pages Migrator Application 0.5.1

2016-06-30 Thread Raluca Stavro
That's great !
Thank you !

Raluca.
On Jun 30, 2016 6:15 PM, "Guillaume Delhumeau" <
guillaume.delhum...@xwiki.com> wrote:

> Hello
>
> A new version of the Nested Pages Migrator Application extension is
> available. See
>
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Nested+Pages+Migrator+Application#Hv0.5.1
> You can install or upgrade with the Extension Manager.
>
> The application is still a beta version that you should use carefully. But
> this version brings some important bug fixes.
>
> Enjoy!
>
> --
> Guillaume Delhumeau (guillaume.delhum...@xwiki.com)
> Research & Development Engineer at XWiki SAS
> Committer on the XWiki.org project
> ___
> 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] 5

2016-06-30 Thread ChengmiN Ding
z
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Livetable URL Question

2016-06-30 Thread Jeff Cyre
I am looking to have a link in an object property.

I have an object like the following

 Name : string

Description : string

SupportPage : string



The SupportPage should be a link to another page with more information (in
the wiki)

Next I want a livetable that will display that with a clickable link.

For column properties the Livetable says the following

--

link The type of link to use for this column. Can be one of:

•auto: link to the URL provided by the _url row property from
the JSON results; falls back on the doc_url property

 --



My problem is I do not know how to set the _url. so every time
it comes back blank and then defaults to the doc_url.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Livetable URL Question

2016-06-30 Thread Vincent Massol
Hi Jeff,

> On 01 Jul 2016, at 03:33, Jeff Cyre  wrote:
> 
> I am looking to have a link in an object property.
> 
> I have an object like the following
> 
> Name : string
> 
> Description : string
> 
> SupportPage : string
> 
> 
> 
> The SupportPage should be a link to another page with more information (in
> the wiki)

You should use a “Page” xobject propery instead (see 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/DataModel).

Thanks
-Vincent

> Next I want a livetable that will display that with a clickable link.
> 
> For column properties the Livetable says the following
> 
> --
> 
> link The type of link to use for this column. Can be one of:
> 
> •auto: link to the URL provided by the _url row property from
> the JSON results; falls back on the doc_url property
> 
> --
> 
> 
> 
> My problem is I do not know how to set the _url. so every time
> it comes back blank and then defaults to the doc_url.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] force edit inline and redirect

2016-06-30 Thread Pascal BASTIEN
Are there a simple (or recommanded) way to redirect user to another page (in 
edit mode) when he edit a page?
Thxs

...
 >
 
 > En date de : Jeu 30.6.16, Pascal BASTIEN
 
 a écrit :
 > 
 > Objet:
 force edit inline and redirect
 > À:
 "XWiki Users" 
 > Date: Jeudi 30 juin 2016, 12h08
 > 
 > Hi xwiki citizen,
 > 
 > I try to redirect to
 another page users when they edit a
 >
 page...
 > 
 > Then I
 use this velocity code in my origin page:
 > 
 > #if
 ($xcontext.action=='edit')
 > 
 
 >
 $response.sendRedirect($xwiki.getURL('MySpace.MaTargetPage',
 > 'edit'))
 >   #stop
 >
 #end
 > 
 > Redirect (to
 MyOriginPage in edit mode) working well if user
 > open MyOriginPage in inline mode:
 > aka
 /bin/edit/MySpace/MyOriginPage?editor=inline
 > 
 > But my users are
 "simple user" then I try to force inline
 > mode when they click on 'Edit'
 > 
 > What I tested is:
 add an XWiki.SheetClass object to
 >
 "MyOriginPage" with "Default Edit
 Mode"=inline ...
 > but I have a
 very  strange behaviour: it's working only
 > for "Admin" user :-(
 > 
 > With simple user,
 when I 'Edit' my Page, I obtain target
 > Page with all xwiki menu INSIDE editor
 like this ugly
 > things
 > https://snag.gy/SrkIua.jpg
 > 
 > If someone have an
 idea...
 > Thxs
 > 
 > Pascal B
 > 
 > 
 > 
 > 
 >
 ___
 > 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