[xwiki-users] How to see setting changes in XWiki preferences?

2015-04-12 Thread Valdis Vītoliņš
In XWiki configuration document extra panel is not shown, therefore one
cannot easily see changes between settings.

What is best/easiest way to enable this (e.g. enable showing document
extra panel, or something other)?

Thanks!
Valdis

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


[xwiki-users] Description and priority list for XWiki translations

2015-02-19 Thread Valdis Vītoliņš
I'm updating XWiki translations in http://l10n.xwiki.org/ and after
resource redesign I wonder where should I start.

Can you provide some list of description/priorities for all XWiki
platforms and files, which should be translated first to cover needs of
the most usual XWiki users.

Thanks!
Valdis

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


[xwiki-users] Invitation to the conference Open Europe: Open Data for Open Society February 18.-19., 2015, Latvia

2015-01-28 Thread Valdis Vītoliņš
Hello, XWikiers!

Sorry for offtopic, but I feel my message will reach correct
audience :-D

As a member of Latvian Open Technology Association (LATA) I'm pleased to
invite you to the conference Open Europe: Open Data for Open Society
which will take place 18th-19th of February, 2015, Riga  Jelgava.

More info about program and registration:
http://lata.org.lv/conference-2015/ 

Please note, that the conference is free of charge and for few
participants from each unique (European) country there is a possibility
to apply for the coverage of travel and/or accommodation costs, if
necessary (you can note this in registration form or contact at
l...@lata.org.lv).

Sincerely,
Valdis Vitolins

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


Re: [xwiki-users] [myxwiki] new wiki request

2014-12-19 Thread Valdis Vītoliņš
 Enjoy!
 -Vincent
 
 PS: Remember the stability of myxwiki.org is not guaranteed! See 
 http://myxwiki.org

But usually it's not bad though. See for example:
http://stats.pingdom.com/n04jhbg6a16x/910468/2014/12
http://stats.pingdom.com/n04jhbg6a16x/910468/2014/11

Valdis

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


Re: [xwiki-users] localization string missing - xe.blog.code.title

2014-11-11 Thread Valdis Vītoliņš
Probably you need to set object title value for .../Blog/WebHome
document. Note that this is not document title, but object title
open it in form/object editor.

Valdis
 Hi everybody!!!
 
 Please, allow me some small talk... I'm really happy to be here again once 
 I've managed to get and start enjoying a brand new 6.2.4. XWiki installation!
 
 Only a detail: after following the evolution of the 6.x branch and having 
 installed the new 6.2.4 release, a string seems to keep lacking affecting the 
 renderization of Blog.WebHome.
 
 Here it is what I see not only here, but in a number of installations around 
 the net...
 
 http://atriumkm.idisantiago.es/bin/download/ICT/Images/blogLocalizationMissingVariable.png
 
 I guess you get the same result by accessing directly this site...
 
 http://idis1.idisantiago.es:8080/xwiki/bin/view/Blog/
 
 Please, even though it is kind of a trivial problem not affecting, shouldn't 
 it be fixed?
 
 Thanks!
 
 Ricardo
 
 --
 Ricardo Rodríguez
 Research Management and Promotion Technician
 Technical Secretariat
 Health Research Institute of Santiago de Compostela (IDIS)
 http://www.idisantiago.es
 
 
 
 Nota: A información contida nesta mensaxe e os seus posibles documentos 
 adxuntos é privada e confidencial e está dirixida únicamente ó seu 
 destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, 
 por favor elimínea. A distribución ou copia desta mensaxe non está autorizada.
 
 Nota: La información contenida en este mensaje y sus posibles documentos 
 adjuntos es privada y confidencial y está dirigida únicamente a su 
 destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, 
 por favor elimínelo. La distribución o copia de este mensaje no está 
 autorizada.
 
 See more languages: http://www.sergas.es/aviso_confidencialidad.htm
 ___
 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] Flamingo skin in action

2014-09-28 Thread Valdis Vītoliņš
Thanks to all XWiki'ers for Flamingo skin!

You can look at it in action at http://ante.lv/
and it is much more mobile-friendly.

I used {{container}} macro for 1/2 column layout for home page.

I still had to do some adjustments in XWiki.StyleSheetExtension object
to hide some unnecessary items on screen for anonymous users:

#if(!$xcontext.userReference)
.xwikipanelcontents, #rightPanels {
  display:none;
}
#end

And had some weird issues with language selector
http://jira.xwiki.org/browse/XE-1427

Valdis

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


Re: [xwiki-users] [myxwiki] new wiki request

2014-09-10 Thread Valdis Vītoliņš
Probably for your simple needs you can also use
https://etherpad.mozilla.org/

Valdis

 Hi.
 
 Try XWiki cloud services and see if it fits.
 http://www.xwiki.com/lang/en/Offer/XWikiCloud
 
 Or
 Download XWiki Windows Installer and be happy =).
 
 Regards.
 
 2014-09-10 1:48 GMT-03:00 Hush ed firet...@gmail.com:
 
  Heyhi, I just moved into a new house with 3 others and want to create a
  wiki to track house issues and comments.
 
  Owner name: DrewCoon
  Wiki name: CoyoteHouse
  ___
  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] myxwiki sends multiple notification emails

2014-08-28 Thread Valdis Vītoliņš
I think it would be better, to change default XWiki settings in
WEB-INF/xwiki.cfg for watchlists from major to none

Valdis

 Ok I think I found all of them this time.
 
 On Thu, Aug 28, 2014 at 9:32 AM, Thomas Mortagne
 thomas.morta...@xwiki.com wrote:
  Looks like there was watchlist jobs on your wiki for some reason (they
  are supposed to be only on main wiki), I deleted them so that should
  be one less mail. There seems to be another wiki with that issue, not
  sure which one yet.
 
  On Tue, Jun 18, 2013 at 7:38 PM, Stefan Taferner stefan.tafer...@gmx.at 
  wrote:
  Hello all!
 
  We have an interesting problem with our myxwiki installation
  (selfbus.myxwiki.org)
  When one registers for notification emails, one gets 4 emails instead of
  one.
  Is there anything I can do to fix this behaviour?
 
  Thanks in advance,
  Stefan
 
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 
 
 
  --
  Thomas Mortagne
 
 
 


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


Re: [xwiki-users] Write to logger using Velocity

2014-08-26 Thread Valdis Vītoliņš
You need to say that following will be velocity script with
opening/closing tags like this:

{{velocity}}
#set($logger = $services.logging.getLogger(My script))
$logger.info(foobar)
{{/velocity}}

Valdis


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


Re: [xwiki-users] how the page wiki are saved?

2014-08-15 Thread Valdis Vītoliņš
XWiki object model is not simply/directly related to database schema.
It is somehow true for simple document (xwikidoc table), but properties
of custom objects are distributed around several tables regarding to
value type. (It allows adding arbitrary objects without extending
schema):
http://platform.xwiki.org/xwiki/bin/view/DevGuide/DatabaseSchema

By default attachments are stored in database:
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments
Links to them can be created using XWiki attachment macro:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Attachments+Macro

You probably need Velocity/Groovy queries using object model, not SQL
queries on database:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module
http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples

Valdis
 Hi; 
 
 I'm interested in the xwiki, but there are some details that escape me: 
 how the page and versions are saved? 
 
 According to my little experiment: as a script in the database, that is an
 internal link to the images and attachment files that are stored as files,
 and external link to pages on external sites? 
 
 If this is true: where I can find the file or script of a database? and the
 directory that contains the images and attachment files? 
 
 Thank you.
 
 
 
 --
 View this message in context: 
 http://xwiki.475771.n2.nabble.com/how-the-page-wiki-are-saved-tp7591686.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


[xwiki-users] Incorrect creation and modification dates after importing documents from xar

2014-07-21 Thread Valdis Vītoliņš
I've used
http://extensions.xwiki.org/xwiki/bin/view/Extension/Large+XAR+Import
snippet and
http://extensions.xwiki.org/xwiki/bin/view/Extension/XWiki+Platform+-+WikiStream+-+UI
application to migrate XWiki to the new server.
In both cases they show incorrect document creation and last change dates.
E.g.:

Last modified by Administrator on 2011-06-06 17:12
Created by User on 2014-07-21 10:11

but it should be vice versa:

Last modified by Administrator on 2014-07-21 10:11
Created by User on 2011-06-06 17:12

History table shows following:
1.1 Administrator 2011-06-06 17:12 Imported from XAR Current version

Which is also misleading, because if XAR import is noted in history, it
should show last modification date (2014-07-21 10:11), not creation date
(2011-06-06 17:12).

I can register new bug if my thoughts seems reasonable, but I'm more
interested in workaround how to fix it in the way.

Thanks!
Valdis

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


Re: [xwiki-users] Incorrect creation and modification dates after importing documents from xar

2014-07-21 Thread Valdis Vītoliņš
?xml version=1.0 encoding=UTF-8?
xwikidoc
webArts/web
nameDussek/name
language/language
defaultLanguagelv/defaultLanguage
translation0/translation
parentArts.ComposerClass/parent
creatorXWiki.kalvis/creator
authorXWiki.Admin/author
customClass/customClass
contentAuthorXWiki.Admin/contentAuthor
creationDate1196956297000/creationDate
date1307369562000/date
contentUpdateDate1307369562000/contentUpdateDate
version1.1/version
title/title
template/template
defaultTemplate/defaultTemplate
validationScript/validationScript
commentImported from XAR/comment
minorEditfalse/minorEdit
syntaxIdxwiki/1.0/syntaxId
hiddenfalse/hidden
object
class
...
/versions/xwikidoc

Valdis

 Could you print the XML located in the XAR file for the the example
 you gave ? Maybe the issue is at export level.

 On Mon, Jul 21, 2014 at 9:24 AM, Valdis Vītoliņš
 valdis.vitol...@odo.lv wrote:
 I've used
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Large+XAR+Import
 snippet and
 http://extensions.xwiki.org/xwiki/bin/view/Extension/XWiki+Platform+-+WikiStream+-+UI
 application to migrate XWiki to the new server.
 In both cases they show incorrect document creation and last change
 dates.
 E.g.:

 Last modified by Administrator on 2011-06-06 17:12
 Created by User on 2014-07-21 10:11

 but it should be vice versa:

 Last modified by Administrator on 2014-07-21 10:11
 Created by User on 2011-06-06 17:12

 History table shows following:
 1.1 Administrator 2011-06-06 17:12 Imported from XAR Current version

 Which is also misleading, because if XAR import is noted in history, it
 should show last modification date (2014-07-21 10:11), not creation date
 (2011-06-06 17:12).


 I can register new bug if my thoughts seems reasonable, but I'm more
 interested in workaround how to fix it in the way.

 Need to be sure what is the issue exactly first.


 Thanks!
 Valdis

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



 --
 Thomas Mortagne



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


Re: [xwiki-users] Incorrect creation and modification dates after importing documents from xar

2014-07-21 Thread Valdis Vītoliņš
I checked it with XAR export and import for single page and seems it has
bug in date handling http://jira.xwiki.org/browse/XWIKI-10671

Valdis

 ?xml version=1.0 encoding=UTF-8?
 xwikidoc
 webArts/web
 nameDussek/name
 language/language
 defaultLanguagelv/defaultLanguage
 translation0/translation
 parentArts.ComposerClass/parent
 creatorXWiki.kalvis/creator
 authorXWiki.Admin/author
 customClass/customClass
 contentAuthorXWiki.Admin/contentAuthor
 creationDate1196956297000/creationDate
 date1307369562000/date
 contentUpdateDate1307369562000/contentUpdateDate
 version1.1/version
 title/title
 template/template
 defaultTemplate/defaultTemplate
 validationScript/validationScript
 commentImported from XAR/comment
 minorEditfalse/minorEdit
 syntaxIdxwiki/1.0/syntaxId
 hiddenfalse/hidden
 object
 class
 ...
 /versions/xwikidoc

 Valdis

 Could you print the XML located in the XAR file for the the example
 you gave ? Maybe the issue is at export level.

 On Mon, Jul 21, 2014 at 9:24 AM, Valdis Vītoliņš
 valdis.vitol...@odo.lv wrote:
 I've used
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Large+XAR+Import
 snippet and
 http://extensions.xwiki.org/xwiki/bin/view/Extension/XWiki+Platform+-+WikiStream+-+UI
 application to migrate XWiki to the new server.
 In both cases they show incorrect document creation and last change
 dates.
 E.g.:

 Last modified by Administrator on 2011-06-06 17:12
 Created by User on 2014-07-21 10:11

 but it should be vice versa:

 Last modified by Administrator on 2014-07-21 10:11
 Created by User on 2011-06-06 17:12

 History table shows following:
 1.1 Administrator 2011-06-06 17:12 Imported from XAR Current version

 Which is also misleading, because if XAR import is noted in history, it
 should show last modification date (2014-07-21 10:11), not creation
 date
 (2011-06-06 17:12).


 I can register new bug if my thoughts seems reasonable, but I'm more
 interested in workaround how to fix it in the way.

 Need to be sure what is the issue exactly first.


 Thanks!
 Valdis

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



 --
 Thomas Mortagne



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



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


Re: [xwiki-users] installing xwiki as deb packages : use and stick to super stable branch

2014-07-18 Thread Valdis Vītoliņš
Probably you can mark installed package for hold using:
sudo apt-mark hold xwiki-enterprise-common
or
sudo aptitude hold xwiki-enterprise-common

Valdis

 Hi,

 It seems stable and super stable xwiki packages are all contained in
 the same repository at http://maven.xwiki.org/stable/
 (and the DEB installation procedure point to the same document
 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT
 for both versions).

 To install super stable, I could do

 $ sudo apt-get install xwiki-enterprise-common=5.4.5

 But at the next apt-get upgrade, it would upgrade to latest... Whereas I
 want to stick to super stable branch.

 It there a trick here ? A best practice maybe ?

 Thanks !
 ___
 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] StackOverflowError after XWiki startup

2014-07-17 Thread Valdis Vītoliņš
I have installed new XWiki 6.1 instance, using Debian package.
I increased Tomcat7 VM settings in /etc/default/tomcat7 to
JAVA_OPTS=-Djava.awt.headless=true -Xms256m -Xmx512m -XX:MaxPermSize=256m
-XX:+UseConcMarkSweepGC

But after I restart tomcat, anyway get exception:
...
INFO: Deploying configuration descriptor
/etc/tomcat7/Catalina/localhost/xwiki.xml
2014-07-17 12:01:45,654 [pool-2-thread-1] INFO 
o.x.s.s.i.EmbeddedSolrInstance - Starting embedded Solr server...
2014-07-17 12:01:45,671 [pool-2-thread-1] INFO 
o.x.s.s.i.EmbeddedSolrInstance - Using Solr home directory:
[/var/lib/xwiki/data/solr]
2014-07-17 12:01:53,706 [coreLoadExecutor-4-thread-1] WARN 
o.a.s.r.ManagedResource- No stored data found for /rest/managed
2014-07-17 12:01:53,707 [coreLoadExecutor-4-thread-1] WARN 
o.a.s.r.ManagedResource- No registered observers for /rest/managed
2014-07-17 12:01:57,109 [pool-2-thread-1] INFO 
o.x.s.s.i.EmbeddedSolrInstance - Started embedded Solr server.
Jul 17, 2014 12:02:07 PM org.apache.catalina.startup.HostConfig
deployDescriptors
SEVERE: Error waiting for multi-thread deployment of context descriptors
to complete
java.util.concurrent.ExecutionException: java.lang.StackOverflowError
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:188)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:573)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:469)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1412)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
at 
org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:346)
at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1145)
at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:782)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.StackOverflowError
at
org.xwiki.extension.version.internal.DefaultVersion.getValue(DefaultVersion.java:480)
at
org.xwiki.extension.version.internal.DefaultVersion.toString(DefaultVersion.java:488)
at java.lang.String.valueOf(String.java:2854)
at java.lang.StringBuilder.append(StringBuilder.java:128)
at org.xwiki.extension.ExtensionId.toString(ExtensionId.java:106)
at org.xwiki.extension.ExtensionId.hashCode(ExtensionId.java:100)
at
org.xwiki.extension.AbstractExtension.hashCode(AbstractExtension.java:429)
at java.util.HashMap.hash(HashMap.java:366)
at java.util.HashMap.getEntry(HashMap.java:466)
at java.util.HashMap.containsKey(HashMap.java:453)
at java.util.HashSet.contains(HashSet.java:201)
at
org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initializeExtensionInNamespace(DefaultExtensionInitializer.java:158)
at
org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initializeExtensionInNamespace(DefaultExtensionInitializer.java:169)
at
org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initializeExtensionInNamespace(DefaultExtensionInitializer.java:169)
... and many repetitions of previous line which likely causes 
exception...
Jul 17, 2014 12:02:07 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
...


What should I do?
Valdis

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


Re: [xwiki-users] StackOverflowError after XWiki startup

2014-07-17 Thread Valdis Vītoliņš
Thanks, Thomas,
removing everything from /var/lib/xwiki/data/extension/repository folder
helped.
Installation was new, but not clean. Currently I have to work using proxy
server which has short connection timeouts. Therefore after opening of
XWiki application I lost connection during first setup wizard.
After that XWiki didn't look correct and I restarted tomcat, and it failed
with mentioned error.
To be sure I opened
/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladminsection=Import
uploaded xwiki-enterprise-ui-mainwiki-all-6.1.xar , and imported all pages
again from xar file.

Valdis

 Are you sure it's a clean install and not an upgrade or that some
 leftover coulld be in /var/lib/xwiki before you do the install ?

 This exception usually mean you have something wrong in
 /var/lib/xwiki/data/extension/repository but this folder is empty the
 first time you start XWiki.

 On Thu, Jul 17, 2014 at 11:12 AM, Valdis Vītoliņš
 valdis.vitol...@odo.lv wrote:
 I have installed new XWiki 6.1 instance, using Debian package.
 I increased Tomcat7 VM settings in /etc/default/tomcat7 to
 JAVA_OPTS=-Djava.awt.headless=true -Xms256m -Xmx512m
 -XX:MaxPermSize=256m
 -XX:+UseConcMarkSweepGC

 But after I restart tomcat, anyway get exception:
 ...
 INFO: Deploying configuration descriptor
 /etc/tomcat7/Catalina/localhost/xwiki.xml
 2014-07-17 12:01:45,654 [pool-2-thread-1] INFO
 o.x.s.s.i.EmbeddedSolrInstance - Starting embedded Solr server...
 2014-07-17 12:01:45,671 [pool-2-thread-1] INFO
 o.x.s.s.i.EmbeddedSolrInstance - Using Solr home directory:
 [/var/lib/xwiki/data/solr]
 2014-07-17 12:01:53,706 [coreLoadExecutor-4-thread-1] WARN
 o.a.s.r.ManagedResource- No stored data found for /rest/managed
 2014-07-17 12:01:53,707 [coreLoadExecutor-4-thread-1] WARN
 o.a.s.r.ManagedResource- No registered observers for
 /rest/managed
 2014-07-17 12:01:57,109 [pool-2-thread-1] INFO
 o.x.s.s.i.EmbeddedSolrInstance - Started embedded Solr server.
 Jul 17, 2014 12:02:07 PM org.apache.catalina.startup.HostConfig
 deployDescriptors
 SEVERE: Error waiting for multi-thread deployment of context descriptors
 to complete
 java.util.concurrent.ExecutionException: java.lang.StackOverflowError
 at java.util.concurrent.FutureTask.report(FutureTask.java:122)
 at java.util.concurrent.FutureTask.get(FutureTask.java:188)
 at
 org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:573)
 at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:469)
 at
 org.apache.catalina.startup.HostConfig.start(HostConfig.java:1412)
 at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at
 org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
 at
 org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
 at
 org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:346)
 at
 org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1145)
 at
 org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:782)
 at
 org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at
 org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
 at
 org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:744)
 Caused by: java.lang.StackOverflowError
 at
 org.xwiki.extension.version.internal.DefaultVersion.getValue(DefaultVersion.java:480)
 at
 org.xwiki.extension.version.internal.DefaultVersion.toString(DefaultVersion.java:488)
 at java.lang.String.valueOf(String.java:2854)
 at java.lang.StringBuilder.append(StringBuilder.java:128)
 at
 org.xwiki.extension.ExtensionId.toString(ExtensionId.java:106)
 at
 org.xwiki.extension.ExtensionId.hashCode(ExtensionId.java:100)
 at
 org.xwiki.extension.AbstractExtension.hashCode(AbstractExtension.java:429)
 at java.util.HashMap.hash(HashMap.java:366)
 at java.util.HashMap.getEntry(HashMap.java:466)
 at java.util.HashMap.containsKey(HashMap.java:453)
 at java.util.HashSet.contains(HashSet.java:201)
 at
 org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initializeExtensionInNamespace(DefaultExtensionInitializer.java:158)
 at
 org.xwiki.extension.handler.internal.DefaultExtensionInitializer.initializeExtensionInNamespace(DefaultExtensionInitializer.java:169

Re: [xwiki-users] StackOverflowError after XWiki startup

2014-07-17 Thread Valdis Vītoliņš
Thanks, Thomas!
I added paragraph on
http://platform.xwiki.org/xwiki/bin/view/Features/DistributionWizard#HSettingupnewXWikiinstancewithoutreinstalling
please check that this is correct solution.

Valdis
 On Thu, Jul 17, 2014 at 12:31 PM, Valdis Vītoliņš
 valdis.vitol...@odo.lv wrote:
 Thanks, Thomas,
 removing everything from /var/lib/xwiki/data/extension/repository folder
 helped.

 You should have deleted the whole /var/lib/xwiki/data folder content
 before doing an new install.

 Installation was new, but not clean. Currently I have to work using
 proxy
 server which has short connection timeouts. Therefore after opening of
 XWiki application I lost connection during first setup wizard.
 After that XWiki didn't look correct and I restarted tomcat, and it
 failed
 with mentioned error.
 To be sure I opened
 /xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladminsection=Import
 uploaded xwiki-enterprise-ui-mainwiki-all-6.1.xar , and imported all
 pages
 again from xar file.

 That's what caused the issue. You ended up with both ui-all and some
 of the extensions it embeds installed at the same time. See
 http://jira.xwiki.org/browse/XWIKI-10617 for more details.


 Valdis

 Are you sure it's a clean install and not an upgrade or that some
 leftover coulld be in /var/lib/xwiki before you do the install ?

 This exception usually mean you have something wrong in
 /var/lib/xwiki/data/extension/repository but this folder is empty the
 first time you start XWiki.

 On Thu, Jul 17, 2014 at 11:12 AM, Valdis Vītoliņš
 valdis.vitol...@odo.lv wrote:
 I have installed new XWiki 6.1 instance, using Debian package.
 I increased Tomcat7 VM settings in /etc/default/tomcat7 to
 JAVA_OPTS=-Djava.awt.headless=true -Xms256m -Xmx512m
 -XX:MaxPermSize=256m
 -XX:+UseConcMarkSweepGC

 But after I restart tomcat, anyway get exception:
 ...
 INFO: Deploying configuration descriptor
 /etc/tomcat7/Catalina/localhost/xwiki.xml
 2014-07-17 12:01:45,654 [pool-2-thread-1] INFO
 o.x.s.s.i.EmbeddedSolrInstance - Starting embedded Solr server...
 2014-07-17 12:01:45,671 [pool-2-thread-1] INFO
 o.x.s.s.i.EmbeddedSolrInstance - Using Solr home directory:
 [/var/lib/xwiki/data/solr]
 2014-07-17 12:01:53,706 [coreLoadExecutor-4-thread-1] WARN
 o.a.s.r.ManagedResource- No stored data found for
 /rest/managed
 2014-07-17 12:01:53,707 [coreLoadExecutor-4-thread-1] WARN
 o.a.s.r.ManagedResource- No registered observers for
 /rest/managed
 2014-07-17 12:01:57,109 [pool-2-thread-1] INFO
 o.x.s.s.i.EmbeddedSolrInstance - Started embedded Solr server.
 Jul 17, 2014 12:02:07 PM org.apache.catalina.startup.HostConfig
 deployDescriptors
 SEVERE: Error waiting for multi-thread deployment of context
 descriptors
 to complete
 java.util.concurrent.ExecutionException: java.lang.StackOverflowError
 at java.util.concurrent.FutureTask.report(FutureTask.java:122)
 at java.util.concurrent.FutureTask.get(FutureTask.java:188)
 at
 org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:573)
 at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:469)
 at
 org.apache.catalina.startup.HostConfig.start(HostConfig.java:1412)
 at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at
 org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
 at
 org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
 at
 org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:346)
 at
 org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1145)
 at
 org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:782)
 at
 org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at
 org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
 at
 org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
 at java.util.concurrent.FutureTask.run(FutureTask.java:262)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:744)
 Caused by: java.lang.StackOverflowError
 at
 org.xwiki.extension.version.internal.DefaultVersion.getValue(DefaultVersion.java:480)
 at
 org.xwiki.extension.version.internal.DefaultVersion.toString(DefaultVersion.java:488)
 at java.lang.String.valueOf(String.java:2854)
 at java.lang.StringBuilder.append(StringBuilder.java:128)
 at
 org.xwiki.extension.ExtensionId.toString(ExtensionId.java:106)
 at
 org.xwiki.extension.ExtensionId.hashCode(ExtensionId.java:100)
 at
 org.xwiki.extension.AbstractExtension.hashCode

[xwiki-users] http://www.myxwiki.org/ is down

2014-03-29 Thread Valdis Vītoliņš
Can anybody check/restart myxwiki.org site?

Thanks!
Valdis

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


Re: [xwiki-users] crash on tomcat 7.0.47 with xwiki 5.4.2

2014-03-12 Thread Valdis Vītoliņš
You need to increase permanent space (parameter -XX:MaxPermSize), which
is used for static objects, and which is never deallocated, e.g.
-XX:MaxPermSize=256m

Valdis

 Hello,
 
 With xwiki 5.4.1 I hadn't crash of xwiki but with the last version 5.4.2 I 
 have 2 crash per day...
 Log indicate : java.lang.OutOfMemoryError: PermGen space
 
 Here my catalina.sh
 
 JAVA_OPTS=-server -Xms800m -Xmx800m -XX:PermSize=64M -XX:MaxPermSize=196m 
 -Dfile.encoding=utf-8 -Djava.awt.headless=true -XX:+UseParallelGC 
 -XX:MaxGCPauseMillis=100 -Dhttp.proxyHost=beast.dom.cpii.i2 
 -Dhttp.proxyPort=8080
 
 and the log
 
 2014-03-12 10:25:34,306 [http://iwiki.cp2i.i2:8080/bin/view/Main/WebHome] 
 ERROR c.x.x.w.XWikiAction- Uncaught exceptions (inner):  
 com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
 at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:317) 
 ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
 at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:129) 
 ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
 at 
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
  ~[struts-core-1.3.10.jar:1.3.10]
 at 
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228) 
 ~[struts-core-1.3.10.jar:1.3.10]
 at 
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) 
 ~[struts-core-1.3.10.jar:1.3.10]
 at 
 org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) 
 ~[struts-core-1.3.10.jar:1.3.10]
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) 
 ~[servlet-api.jar:na]
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) 
 ~[servlet-api.jar:na]
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
  ~[catalina.jar:7.0.47]
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  ~[catalina.jar:7.0.47]
 at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:121) 
 ~[xwiki-platform-legacy-oldcore-5.4.2.jar:na]
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  ~[catalina.jar:7.0.47]
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  ~[catalina.jar:7.0.47]
 at 
 org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:126)
  ~[xwiki-platform-wysiwyg-server-5.4.2.jar:na]
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  ~[catalina.jar:7.0.47]
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  ~[catalina.jar:7.0.47]
 at 
 org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) 
 ~[tomcat7-websocket.jar:7.0.47]
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  ~[catalina.jar:7.0.47]
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  ~[catalina.jar:7.0.47]
 at 
 com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66) 
 ~[xwiki-platform-webdav-server-5.4.2.jar:na]
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  ~[catalina.jar:7.0.47]
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  ~[catalina.jar:7.0.47]
 at 
 org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
  ~[xwiki-platform-container-servlet-5.4.2.jar:na]
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  ~[catalina.jar:7.0.47]
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  ~[catalina.jar:7.0.47]
 at 
 org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
  ~[xwiki-platform-container-servlet-5.4.2.jar:na]
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  ~[catalina.jar:7.0.47]
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  ~[catalina.jar:7.0.47]
 at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
  ~[catalina.jar:7.0.47]
 at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
  ~[catalina.jar:7.0.47]
 at 
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
  ~[catalina.jar:7.0.47]
 at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) 
 

[xwiki-users] Search stops working in LiveTable with custom JSON results page after few characters entered

2014-01-13 Thread Valdis Vītoliņš
As LiveTable is document oriented and cant show several objects attached
to the document, I have created customized JSON page
following to guide in
http://platform.xwiki.org/xwiki/bin/view/DevGuide/LiveTable

It even works for document name and space. 

But for other fields filtering stops working after 1-2 characters are
entered. I suspect it is somehow related to AJAX requests which send
partial data, because it works with get request
/xwiki/bin/view/NMPDtools/ParticipantsJSONlivetable?firstname=Uldis

Any suggestions?
Thanks!

= LiveTable page =
{{velocity}}
#set($columns = [ doc.name,
doc.space ,firstname  ,lastname  ,personid  ,certid ])
#set($columnsProperties = {
  doc.name : { type : text, link : view, size : 10,
filterable : true, sortable: true, displayName : Kurss },
  firstname : { type : text, size : 10, filterable : true,
sortable: true },
  lastname : { type : text, size : 10, filterable : true,
sortable: true },
  personid : { type : text, size : 10, filterable : true,
sortable: true },
  certid : { type : text, size : 10, filterable : true,
sortable: true },
  doc.space : { type : text, size : 10, filterable :
true, sortable: true, displayName : Organizācija }
})

#set($options = {
className:NMPDtools.ParticipantClass,   
translationPrefix : livetable.,  
tagCloud : true,  
rowCount: 15,  
maxPages : 10,
selectedColumn : doc.title,
defaultOrder : asc,
resultPage:NMPDtools.ParticipantsJSONlivetable
})

#livetable(participant $columns $columnsProperties $options)
{{/velocity}}

= JSON results page =

{{velocity filter=html wiki=false}}
#if($xcontext.action == 'get'  $!{request.outputSyntax} == 'plain')
$response.setContentType('application/json')
#end
## Offset = item # at which to start displaying data
#set($offset = $util.parseInt($request.get('offset')))
## offset starts from 0 in velocity and 1 in javascript
#set($offset = $offset - 1)
#if($offset  0)
 #set($offset = 0)
#end
## Limit = # of items to display
#set($limit = $util.parseInt($request.get('limit')))
## Sort direction
#set($order = $!request.sort)
#if($order != '')
 #set($orderDirection = $!{request.get('dir').toLowerCase()})
 #if($!orderDirection != ''  $!orderDirection != 'asc')
   #set($orderDirection = 'desc')
 #end
#end
##
#set($doc_space=$request.getParameter('doc.space'))
#set($doc_name=$request.getParameter('doc.name'))
#set($firstname=$request.getParameter('firstname'))
#set($lastname=$request.getParameter('lastname'))
#set($personid=$request.getParameter('personid'))
#set($certid=$request.getParameter('certid'))
##
#set($hql=select doc.fullName, personid.id.value from XWikiDocument
doc, BaseObject as obj, StringProperty firstname, StringProperty
lastname, StringProperty personid where doc.fullName=obj.name and
obj.className='NMPDtools.ParticipantClass' and obj.id=firstname.id.id
and firstname.id.name='firstname' and obj.id=lastname.id.id and
lastname.id.name='lastname' and obj.id=personid.id.id and
personid.id.name='personid')
##
#if($doc_name  $doc_name!='')
#set($hql=$hql and doc.name like '${doc_name}%')
#end
#if($doc_space  $doc_space!='')
#set($hql=$hql and doc.space like '${doc_space}%')
#end
#if($firstname  $firstname!='')
#set($hql=$hql and firstname.id.value like '${firstname}%')
#end
#if($lastname  $lastname!='')
#set($hql=$hql and lastname.id.value like '${lastname}%')
#end
#if($personid  $personid!='')
#set($hql=$hql and personid.id.value like '${personid}%')
#end
##
##$hql
#set($results =
$services.query.hql($hql).setLimit($limit).setOffset($offset).execute())
{
totalrows:$results.size(),
matchingtags: {},
tags : [],
returnedrows: $limit,
offset: $offset,
reqNo: $numbertool.integer($request.reqNo),
rows: [
#foreach($item in $results)
#set($partdoc=$xwiki.getDocument($item[0]))
#if($partdoc.hasAccessLevel('view'))
#set($partobj=
$partdoc.getObject('NMPDtools.ParticipantClass','personid',$item[1]))
$!d {doc_viewable : true,
doc_name:$partdoc.name,
doc_url:$xwiki.getURL($item[0]),
doc_space:$partdoc.space,
firstname:$partobj.firstname,
lastname:$partobj.lastname,
personid:$partobj.personid,
certid:$partobj.certid
}
#if(!$d)#set($d=',')#end
#end
#end
]
}
{{/velocity}}



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


Re: [xwiki-users] XWiki with Piwik

2014-01-10 Thread Valdis Vītoliņš
Add piwik tracking code to .../xwiki/templates/htmlfooter.vm file in
file system resulting ~like this:

/div## xwikimaincontainerinner
/div## xwikimaincontainer
#if($isInServletMode)
!-- Piwik --
script type=text/javascript
var pkBaseURL = ((https: == document.location.protocol) ?
https://odo.lv/piwik/; : http://odo.lv/piwik/;);
document.write(unescape(%3Cscript src=' + pkBaseURL + piwik.js'
type='text/javascript'%3E%3C/script%3E));
/scriptscript type=text/javascript
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + piwik.php, 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
/scriptnoscriptpimg src=http://odo.lv/piwik/piwik.php?idsite=1;
style=border:0 alt= //p/noscript
!-- End Piwik Tracking Code --
/body
/html
#else ## Portlet Mode
/div
#end

OR

add htmlfooter.vm textarea object
to /xwiki/bin/edit/XWiki/XWikiSkins?editor=class

then edit /xwiki/bin/edit/XWiki/DefaultSkin skin object and paste above
mentioned code into htmlfooter.vm field.

Valdis

 Anyone is using the Piwik with XWiki?
  I have installed it last week and and it is a nice tool however I couldn’t 
 configure the Track Site Search in order to allow the Piwik to track the 
 principal terms searched in my Xwiki.
 
 Someone know how to configure it?
 
 Thank you
 Danilo
 
 
 Grupo Energisa
 Danilo A. Oliveira
 Analista Suporte Aplicacao TI - DETI
 e-mail: danilo.olive...@energisa.com.br | tel: (32) 3429-6342
 
 Esta mensagem contém informação confidencial. Se você a recebeu por engano, 
 não divulgue ou copie seu conteúdo. Por favor, avise ao remetente 
 imediatamente e apague-a do computador.
 Privileged and confidential. If this message has been received by mistake, do 
 not disclose or copy its contents. Please notify sender and delete 
 immediately.
 
 
 ___
 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] Help: Migration from HSQL to Oracle db

2014-01-08 Thread Valdis Vītoliņš
Maybe you lost permissions when changed XWikiPreferences page during
import. IMHO safer way for full XAR file import is using superadmin
account (set in xwiki.cfg file).

Valdis
 Dmitry, I had attempted the exact steps you had listed but faced the below
 error -
 
 2014-01-07 12:49:23,194
 [http://localhost:8080/xwiki/bin/import/XWiki/XWikiPreferences] ERROR
 c.x.x.p.p.Package  - Failed to save document
 XWiki.XWikiPreferences
 com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving
 document xwiki:XWiki.XWikiPreferences at
 com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:754)
 ~[xwiki-platform-legacy-oldcore-5.2.1.jar:na]
 
 I assumed I was incorrect in my steps. Do you have any recommendations on
 how to fix this error during import? 
 
 
 
 
 --
 View this message in context: 
 http://xwiki.475771.n2.nabble.com/Help-Migration-from-HSQL-to-Oracle-db-tp7588542p7588544.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] XWiki space partially deleted

2014-01-08 Thread Valdis Vītoliņš
There is no Space object in XWiki model, it is property of XWiki
document. Therefore by creating space you actually create
Space.WebHome document. As there was XWiki.WebHome document already,
it probably ignored adding new one.

Try to restart XWiki and hope it will recreate insufficient objects, and
then go to
/xwiki/bin/import/XWiki/XWikiPreferences?editor=globaladminsection=Import
and try to import new XAR file.

Valdis 

 I wanted a metawiki space, so as the Admin user, I created the XWiki
 space. Realizing that we already had a Wiki space, I deleted the XWiki
 space. The deletion to surprisinly long time, so I got suspicious and hit
 Cancel. I didn't think much of it until a few days later, when I was no
 longer able to log in as Admin. That was when I remembered that the
 XWiki space is special. I had deleted a lot more than just a newly
 created empty space.
 
 Now I am no longer allowed to log in as Admin or superadmin. Both
 accounts worked before, but now both give me the error message Invalid
 credentials. Apparently, all users can log in with their ordinary user
 account, but with no admin account I can no longer re-import the XWiki
 pages from the XAR file.
 
 The superadmin account was enabled when I upgraded to the current XWiki
 5.2. It was tested and working, but not any longer.
 
 How on earth to I get around this?
 
 As as side note, I am very surprised that 1) I was able to create the
 XWiki space, just as any other space, and 2) that I was able to delete
 the XWiki space with no notification about this space being vital to
 XWiki.
 
 Any help or pointers are highly appreciated.
 
 Kind regards,
 Peter John Acklam
 ___
 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] help how to inherit a class from another

2014-01-06 Thread Valdis Vītoliņš
If you add different objects from several classes to XWiki document,
common problem is that for document representation sheet of first found
class is used.
Therefore for composite objects you need to add
XWiki.DocumentSheetBinding object 
which points to sheet document, with content like this (not tested!):
{{velocity}}
#set($obj1=$doc.getObject('Space.Obj1Class'))
#set($obj2=$doc.getObject('Space.Obj2Class'))
...
#if($obj1)
#set($class1=obj1.xWikiClass)
#foreach($prop in $class1.properties)
|$prop.prettyName|$doc.display($prop.getName($obj1))
#end
#end
...
#if($obj2)


Look at
http://extensions.xwiki.org/xwiki/bin/view/Extension/Sheet+Module 
for more. Note that you can save all these objects in specific template.

Valdis
 hi,
 
 
 Thanks for your answer. 
 Currently I am using a set of classes to represent my data, for
 display part they just need to directly show the properties. If I use
 composit, for the common part I need to identify if it's common, and
 there will be some if-else in each of the subclasses.
 
 
 I just wandering if we can have some auto-load, so that I don't need
 to use if-else everywhere, and it will be easy to maintain, just
 like the inherited class.
 
 
 
 2014/1/5 Valdis Vītoliņš valdis.vitol...@odo.lv
 If you mean these classes defined in class editor defined
 in .../xwiki/bin/view/XWiki/XWikiClasses
 AFAIK these doesn't support extension.
 
 So, you need to use composition instead. Add object with type
 of the
 common class, and for few other documents add another object
 with type
 of extended class.
 
 You will need to adjust class sheet object to display fields
 of other
 tyepe of objects also (look at
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Sheet
 +Module )
 
 Valdis
 
  hi,
 
  the Class I mean is XClass, which is used in Wiki pages.
 
  thanks,
  B.R./ZZH
 
 
  2014/1/5 Zhihua Zheng zhihu...@gmail.com
 
   hi all,
  
   I have couple of classes they are similar, most of them
 are the same, but
   some small parts are different. So that I want to use a
 arch that there is
   a common class holds all the common properties, and the
 real classes are
   inherited from the common.
   But how to achieve that?
  
   thanks!
  
 
  ___
  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] help how to inherit a class from another

2014-01-05 Thread Valdis Vītoliņš
If you mean these classes defined in class editor defined
in .../xwiki/bin/view/XWiki/XWikiClasses
AFAIK these doesn't support extension.

So, you need to use composition instead. Add object with type of the
common class, and for few other documents add another object with type
of extended class.

You will need to adjust class sheet object to display fields of other
tyepe of objects also (look at
http://extensions.xwiki.org/xwiki/bin/view/Extension/Sheet+Module )

Valdis

 hi,
 
 the Class I mean is XClass, which is used in Wiki pages.
 
 thanks,
 B.R./ZZH
 
 
 2014/1/5 Zhihua Zheng zhihu...@gmail.com
 
  hi all,
 
  I have couple of classes they are similar, most of them are the same, but
  some small parts are different. So that I want to use a arch that there is
  a common class holds all the common properties, and the real classes are
  inherited from the common.
  But how to achieve that?
 
  thanks!
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users


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


Re: [xwiki-users] How to enable Google Analytics for Xwiki?

2013-11-29 Thread Valdis Vītoliņš
Workaround for this could be personalized Skin:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Skins

Leave everything else empty, but for footer add GA code somewhere at the
end of original one (from XWiki 5.2):

#if($isInServletMode)## Visible only in a page
div id=footerglobal class=layoutsection
div class=minwidth/div
hr/
  div id=xwikilicence$!copyright/div
  #set ($version = $xwiki.getSpacePreference('version'))
  #if ($!version == )
#set ($version = $xwiki.getXWikiPreference(version))
  #end
  #if ($!version != )
#set ($version = $xwiki.parseContent($version))
  #else
#set ($version = $!xwiki.version)
  #end
  div id=xwikiplatformversion$version/div
hr/
/div

## Put GA JavaScript here ##

#end
### TODO: Format the footer for pdf output

Or, harder (not sure, what will happen after myxwiki.org update then)
but more appropriate way would be adding htmlfooter property to
XWiki.XWikiSkins class, and similarly changing original code:

/div## xwikimaincontainerinner
/div## xwikimaincontainer

## put GA code here ##

#if($isInServletMode)
/body
/html
#else ## Portlet Mode
/div
#end

Valdis

 On 11/27/2013 04:49 PM, xrichard wrote:
  Hi,
  
  One more question before I (may) give up: is there anyone who managed to
  make Google Analystics works for a Wiki hosted on myxwiki.org ?
  
  Thanks for your answers,
  
 
 Oh, if this is about enabling GA on myxwiki.org, then the issue is very
 simple: only extensions saved by users with programming rights can be
 used in the whole wiki. A farm admin will have to re-save the GA
 settings page for you. Which wiki are you referring to?


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


Re: [xwiki-users] How to enable Google Analytics for Xwiki?

2013-11-28 Thread Valdis Vītoliņš
I have used GA only on locally hosted XWiki instaces.
Maybe there is something wrong on myxwiki.org?

Valdis
 Hi,
 
 One more question before I (may) give up: is there anyone who managed to
 make Google Analystics works for a Wiki hosted on myxwiki.org ?
 
 Thanks for your answers,
 
 
 
 --
 View this message in context: 
 http://xwiki.475771.n2.nabble.com/How-to-enable-Google-Analytics-for-Xwiki-tp7588081p7588146.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


[xwiki-users] Style for span in XWiki 2.x syntax

2013-11-27 Thread Valdis Vītoliņš
Is it possible in XWiki 2.x syntax to set span style?
E.g.:

Normal (%style=color: red;%) red normal

makes following normal also red. Only solution I could get working was
embedded html code, e.g.:

normal {{html clean=false}}span style=color:
red;{{/html}}red{{html clean=false}}/span{{/html}} normal

Are there any better approaches?

Thanks!
Valdis


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


Re: [xwiki-users] How to enable Google Analytics for Xwiki?

2013-11-22 Thread Valdis Vītoliņš
Try to re-save settings in object editor mode, or import this page from
the XAR file.

Valdis
 Hi,
 
 Some other info for the community to help me solve this issue:
 - I have checked my google analytics account : yet it is set to classic 
 (and 
 not universal) = the same in the Google Analytics admin page in the Wiki
 - Google analystics state Tracking Not Installed
 - I've found in a previous discussion 2 more info :
  . check 
 /xwiki/bin/edit/XWiki/GoogleAnalyticsCode?editor=objectclassname=XWiki.JavaScriptExtensionobject=0
  
 ; and make sure that the Use this extension value is set to Always = 
 that's 
 Okay
  . if it is already, then you should restart the server = my wiki is 
 hosted I can not do this restart.
 
 regards,
 
 Le 22/11/2013 21:00, Ldm Public a écrit :
  Ok thanks.
 
  I have added the tracking ID for GA in the admin of the wiki 2 days ago but 
  there are still no data displayed in GA.
 
  The javascript indicated below is available on the Wiki at url 
  http://xxx/xwiki/bin/jsx/XWiki/GoogleAnalyticsCode (this url displays the 
  script including my Google ID).
  Can I check something else ?
  Is there a cache or should I just wait?
 
  Best regards,
 
  Le 22/11/2013 08:14, Thomas Mortagne a écrit :
  You are not going to see it in the html of your page, it's supposed to
  be pulled by
 
  script type='text/javascript'
  src='/xwiki/bin/jsx/XWiki/GoogleAnalyticsCode' defer='defer'/script
 
  On Thu, Nov 21, 2013 at 11:09 PM, xrichardldm...@gmail.com  wrote:
  Hi,
 
  I want to activate Google Analytics for my Wiki.
 
  I have added the Google tracking code in the admin as described here:
  http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWikiEnterprise32M3#HEasieractivationandconfigurationofGoogleAnalytics.
 
  Is there other things to do? Because I do not see the tracking code in the
  HTML source of my wiki pages.
 
  best regards,
 
  PS: running XWiki 4.5.3.
 
 
 
  --
  View this message in 
  context:http://xwiki.475771.n2.nabble.com/How-to-enable-Google-Analytics-for-Xwiki-tp7588081.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


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


[xwiki-users] How to debug XWiki extensions

2013-11-22 Thread Valdis Vītoliņš
This question mainly arised from discussion about GA plugin,
http://lists.xwiki.org/pipermail/users/2013-November/026937.html
but I've noticed, that sometimes other extensions, e.g.

http://extensions.xwiki.org/xwiki/bin/view/Extension/FullCalendar
+Application
http://extensions.xwiki.org/xwiki/bin/view/Extension/LiveTableExcelExport+Macro

just don't want to work.

I've noticed is that sometimes warnings appear about insufficient
programming rights (even for Admin) during setup, and pages just need to
be re-saved to handle this.

Any more steps, and tricks?
Valdis


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


[xwiki-users] Advanced statements for Livetable extraParams

2013-11-11 Thread Valdis Vītoliņš
I'm wondering what are advanced possibilities for extraParams property
for Livetable macro
http://extensions.xwiki.org/xwiki/bin/view/Extension/Livetable%
2BMacro#HParameter24options

E.g. how/does it support: like, greater, less, not, and, or, grouped
statements?

Thanks!
Valdis

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


Re: [xwiki-users] XWiki vs Xwiki or brandname vs forename

2013-11-11 Thread Valdis Vītoliņš
Hi, Ecaterina!
I changed all occurrences in my website to XWiki.

Russians would say безобразно, но единообразно
(ugly, but consistently).

;-P
Valdis 

 Hi Valdis,
 
 When I commented on your website saying that you spelled XWiki wrong, in my
 mind I was just trying to correct you. I expect at least people from our
 community to know how to spell it right. If you work with XWiki and you are
 an active member of this community than you part of this 'family' and you
 too should promote doing/writing things the 'right' way.
 
 Thanks,
 Caty
 
 
 On Thu, May 30, 2013 at 9:33 AM, Vincent Massol vinc...@massol.net wrote:
 
  Hi vaL,
 
  (sorry I'm too lazy to write your full name ;))
 
  see below
 
  On May 29, 2013, at 6:38 PM, Valdis Vītoliņš valdis.vitol...@odo.lv
  wrote:
 
   I'm just curious about brandname such as XWiki versus generic forename
   such as Xwiki.
  
   For example in languages I know (Latvian, English, Russian) any forename
   (given name for person or dog, city or ship name, etc.) starts with
   capital and then, if not all characters are capital, it follows with
   small letters.
  
   There are brandnames (mostly intentionally, to differ from generic
   name) this rule is not followed: XWiki, iOS, PiTiVi, etc.
  
   So, when I write about Xwiki:
  
   1. I don't know it is spelled XWiki,
   2. I'm too lazy to bother,
   3. I intentionally spell it Xwiki, to not add disclaimer, that iOS or
   XWiki or ... is a registered trademark (if is),
   4. something else...
  
   What do you think?
 
  I'm not sure I understand your point. What's the question? :)
 
  If your point is just that people will make mistakes writing XWiki then
  yes we've experienced that.
 
  Thanks
  -Vincent
 
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users


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


Re: [xwiki-users] How to avoid not viewable documents in livetable?

2013-11-08 Thread Valdis Vītoliņš
Thanks, Sergiu!

Can you point out, where should I look, to implement it in more
appropriate way?

Valdis
 Sorry Valdis, but this won't fix the problem nicely, since it breaks the
 livetable paging. You'll only get the items that are public from a
 specific page, but the results are split into pages regardless of their
 access, so in the end you might see 15/15 items, or 10/15 items, or just
 an empty page with no items. This still discloses some information,
 which is how many private documents are there matching my livetable
 filters, and how might they be named.
 
 A user with a lot of patience (or scripting skills) can actually get the
 same information as he can see with the current implementation, by
 searching letter by letter if a certain document name filter gives more
 results (in the count) than are actually displayed.
 
 A proper fix requires fixing things at a lower level, so that even the
 simple count method fully checks access rights. But that is going to be
 very taxing on performance, so it's not something that can easily be
 implemented.
 
 
 On 11/07/2013 04:34 PM, Valdis Vītoliņš wrote:
  Got it right with
  /xwiki/bin/view/XWiki/LiveTableResultsMacros
  changing to following (diff lines):
  
  190 - #gridresult_buildRowJSON($item $rows)
  190 + #if($xwiki.getDocument($item).hasAccessLevel('view'))
  191 + #gridresult_buildRowJSON($item $rows)
  192 + #end
  
  http://jira.xwiki.org/browse/XWIKI-9649
  
  Valdis
  
  I have the same kind of objects: part of them are publicly available,
  but others ar private.
 
  Using Livetable macro, for anonymous user it shows entries with
  documents (without hyperlinks), which actually are not accessible.
  With note under table:
  (*) Some documents require special rights to be viewed
 
  Is it possible to show only accessible documents?
  Currently I look at /xwiki/bin/edit/XWiki/LiveTableResultsMacros
  page, though cannot see anything related to it...
 
  Thanks!
  Valdis
 
 


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


[xwiki-users] How to avoid not viewable documents in livetable?

2013-11-07 Thread Valdis Vītoliņš
I have the same kind of objects: part of them are publicly available,
but others ar private.

Using Livetable macro, for anonymous user it shows entries with
documents (without hyperlinks), which actually are not accessible.
With note under table:
(*) Some documents require special rights to be viewed

Is it possible to show only accessible documents?
Currently I look at /xwiki/bin/edit/XWiki/LiveTableResultsMacros
page, though cannot see anything related to it...

Thanks!
Valdis

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


Re: [xwiki-users] How to avoid not viewable documents in livetable?

2013-11-07 Thread Valdis Vītoliņš
Got it right with
/xwiki/bin/view/XWiki/LiveTableResultsMacros
changing to following (diff lines):

190 - #gridresult_buildRowJSON($item $rows)
190 + #if($xwiki.getDocument($item).hasAccessLevel('view'))
191 + #gridresult_buildRowJSON($item $rows)
192 + #end

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

Valdis

 I have the same kind of objects: part of them are publicly available,
 but others ar private.
 
 Using Livetable macro, for anonymous user it shows entries with
 documents (without hyperlinks), which actually are not accessible.
 With note under table:
 (*) Some documents require special rights to be viewed
 
 Is it possible to show only accessible documents?
 Currently I look at /xwiki/bin/edit/XWiki/LiveTableResultsMacros
 page, though cannot see anything related to it...
 
 Thanks!
 Valdis
 
 ___
 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] Return to edit view with previous sheet after validation error

2013-10-28 Thread Valdis Vītoliņš
Many thanks, Marius, it works.
If error is returned, URL is with action preview and entered data are
still not saved.

Valdis
 Hi Valdis,
 
 Did you try adding a hidden input to your form that submits the sheet?
 
 input type=hidden name=sheet value=$!escapetool.xml($request.sheet) /
 
 This way when the save action is 'rendered', because the validation
 failed, the sheet manager can see the sheet parameter on the request.
 I haven't tested though. You may have an issue if your sheet is bound
 to the edit action (in case you added a sheet descriptor object) since
 the action will be 'save' when the validation fails, I think. To be
 tested.
 
 Hope this helps,
 Marius
 
 On Sat, Oct 26, 2013 at 4:13 PM, Valdis Vītoliņš valdis.vitol...@odo.lv 
 wrote:
  In general I use custom edit sheet passed as a get/post parameter as
  described in http://extensions.xwiki.org/xwiki/bin/view/Extension/Sheet
  +Module
  and validation with groovy according to:
  http://platform.xwiki.org/xwiki/bin/view/DevGuide/Creating+a+form+with
  +validation+and+tooltips
 
  Problem is that after validation error default sheet is used.
  What could be means to return to previous dynamically passed sheet?
 
  Thanks in advance!
  Valdis
 
  ___
  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] Return to edit view with previous sheet after validation error

2013-10-26 Thread Valdis Vītoliņš
In general I use custom edit sheet passed as a get/post parameter as
described in http://extensions.xwiki.org/xwiki/bin/view/Extension/Sheet
+Module 
and validation with groovy according to:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Creating+a+form+with
+validation+and+tooltips 

Problem is that after validation error default sheet is used.
What could be means to return to previous dynamically passed sheet?

Thanks in advance!
Valdis

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


[xwiki-users] Livetable with 100k objects

2013-10-11 Thread Valdis Vītoliņš
Has anybody experienced (or, at least, evaluated) how Livetable behaves
with more than 100k objects?
I have to import historical data and I'm not sure will it work smoothly
(one of doubts is immediate like... type search after each typed letter
in column head).

Thanks!
Valdis

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


[xwiki-users] Livetable with several attached objects to the document

2013-10-09 Thread Valdis Vītoliņš
Is it possible with Livetable macro to show all (more than one) attached
object do the document?

Thanks!
Valdis

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


Re: [xwiki-users] Livetable with several attached objects to the document

2013-10-09 Thread Valdis Vītoliņš
Thanks!
I'll try to create my custom implementation according to
http://extensions.xwiki.org/xwiki/bin/view/Extension/Livetable
+Macro#HAllAttachments

Valdis
 Something like the  Attachments Macro
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Attachments+Macro  ?
 
 
 
 --
 View this message in context: 
 http://xwiki.475771.n2.nabble.com/Livetable-with-several-attached-objects-to-the-document-tp7587475p7587476.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] tutorial to develop full fledged websites on xwiki?

2013-09-22 Thread Valdis Vītoliņš
Look at
http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial

Valdis
 Skin is good . But I always look to see xwiki to be competitive with
 wordpresss where user can play a lot with UI.  So if there is brief
 tutorial where we can see what are all common needs of any CMS site and how
 xwiki handles that, it would be great.
 
 
 On Sat, Sep 21, 2013 at 7:49 PM, Vincent Massol vinc...@massol.net wrote:
 
 
  On Jun 15, 2013, at 2:40 PM, Mohit Gupta motgu...@gmail.com wrote:
 
   If there is complete coding tutorial corresponding to any website example
   at  http://www.xwiki.org/xwiki/bin/view/References/WebHome, it would be
   very helpful
 
  I don't think there's any but someone ought to write one :)
 
  The easiest for you is to use a skin for a web site, for example:
  http://extensions.xwiki.org/xwiki/bin/view/Extension/Leiothrix+Skin
 
  Thanks
  -Vincent
 
   On Sat, Jun 15, 2013 at 6:08 PM, Mohit Gupta motgu...@gmail.com wrote:
  
   I know xwiki has lot of potential. i am looking forward to develop the
   full fledged website like
   http://www.albertdemun.net/xwiki/bin/view/NBSitePublic/. It would be
   helpful to know if there is some tutorial exists explaining how we can
   develop the full website  (For example website i pointed above) where we
   can separate type of UI components most of the website usually have. I
  know
   probably there are some different extension/plugin existing at different
   places but if we can have single page explaining how we can develop full
   fledged website it would be great. Thanks in advance.
 
  ___
  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] Hiding the Top Level Menu /Page Menu links?

2013-09-22 Thread Valdis Vītoliņš
Create
XWiki.StyleSheetExtension with code in content, e.g.:

#if(!$xcontext.userReference)
#contentmenu, .leftmenu {
  display:none;
}
#end

See more at
http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial
Valdis
 Hi All,
  If i want to hide top level menu(like Add,Space,Page,Wiki link) , i do not
 find any way except changing in code. Similarly if i want to disable the
 Page level menu(like Edit, Export,More Actions Link) for specific
 group/user, did not find any way. Are these configurable or code
 modification is only way?
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users


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


Re: [xwiki-users] XWiki/2.1 analogue for #message(message) macro

2013-09-10 Thread Valdis Vītoliņš
I decided, that the most elegant solution was to add custom XWiki macro
called message whith body:
{{velocity}}(% class=box plainmessage%
)((($xcontext.macro.content))){{/velocity}}

http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial

Valdis
 I'm migrating documents to XWiki/2.1 syntax and wonder, what would be
 the precise analogue for #message(message) macro, which produces
 following HTML:
 
 div class=plainmessagemessage/div
 
 I found only similar ones:
 
 quote
 
 which produces
 blockquotequote/blockquote
 (IMHO works only for single paragraph even with {{{groups}}})
 
 and
 {{info}}info{{/info}}
 
 which produces
 div class=box infomessageinfo/div
 
 Can I extend XWiki somehow that I can use 
 {{message}}message{{/message}} with appropriate HTML output?
 
 Thanks!
 Valdis


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


Re: [xwiki-users] XWiki/2.1 analogue for #message(message) macro

2013-09-10 Thread Valdis Vītoliņš
Vincent,
actually I'm happy with both styles for boxes, because I regularly have
several types of them in one page:

1. code excerpts ({{code}} with sharp corners, difference from {{box}}
and quote is monospace font),

2. informational messages (e.g. {{warning}}, {{info}} — rounded ones
with regular font. I added {{message}} custom macro without icon for
more generic cases).

I think different box styles make pages richer not only in appearance
but also helps to grok meaning of content. Therefore I don't see need to
make all boxes looking nice and rounded.

Also, It would be good idea to add description of all different Boxes
in Syntax guide (at least for these I know):

{{code}}
{{box}}
{{{block group}}}
quote
{{info}}
{{error}}
{{success}}

Valdis

 Hi Valdis,
 
 I've opened http://jira.xwiki.org/browse/XWIKI-9432
 
 I reckon that the reason you didn't use the {{box/}} macro was just because 
 it looks a little bit less nice that the other style (round corners, margin 
 for the text), right?
 
 Thanks
 -Vincent
 
 On Sep 10, 2013, at 11:26 AM, Valdis Vītoliņš valdis.vitol...@odo.lv wrote:
 
  I decided, that the most elegant solution was to add custom XWiki macro
  called message whith body:
  {{velocity}}(% class=box plainmessage%
  )((($xcontext.macro.content))){{/velocity}}
  
  http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial
  
  Valdis
  I'm migrating documents to XWiki/2.1 syntax and wonder, what would be
  the precise analogue for #message(message) macro, which produces
  following HTML:
  
  div class=plainmessagemessage/div
  
  I found only similar ones:
  
  quote
  
  which produces
  blockquotequote/blockquote
  (IMHO works only for single paragraph even with {{{groups}}})
  
  and
  {{info}}info{{/info}}
  
  which produces
  div class=box infomessageinfo/div
  
  Can I extend XWiki somehow that I can use 
  {{message}}message{{/message}} with appropriate HTML output?
  
  Thanks!
  Valdis
  
  
  ___
  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] XWiki/2.1 analogue for #message(message) macro

2013-09-03 Thread Valdis Vītoliņš
I'm migrating documents to XWiki/2.1 syntax and wonder, what would be
the precise analogue for #message(message) macro, which produces
following HTML:

div class=plainmessagemessage/div

I found only similar ones:

quote

which produces
blockquotequote/blockquote
(IMHO works only for single paragraph even with {{{groups}}})

and
{{info}}info{{/info}}

which produces
div class=box infomessageinfo/div

Can I extend XWiki somehow that I can use 
{{message}}message{{/message}} with appropriate HTML output?

Thanks!
Valdis

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


[xwiki-users] Link with get parameters and ID in XWiki 2.0 syntax

2013-08-29 Thread Valdis Vītoliņš
1. What is correct syntax to add get parameters in link
e.g. correct way for
[[link with get paramsMain.test?xpage=plainoutputSyntax=plain]]

2. What is correct syntax for link in the same page with some ID, e.g.
for [[link to id#id]]

Thanks!
Valdis

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


Re: [xwiki-users] Link with get parameters and ID in XWiki 2.0 syntax

2013-08-29 Thread Valdis Vītoliņš
 On Aug 29, 2013, at 1:04 PM, Valdis Vītoliņš valdis.vitol...@odo.lv wrote:
 
  1. What is correct syntax to add get parameters in link
  e.g. correct way for
  [[link with get paramsMain.test?xpage=plainoutputSyntax=plain]]
  
  2. What is correct syntax for link in the same page with some ID, e.g.
  for [[link to id#id]]
 
 See http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HLinks
 
 Thanks
 -Vincent
 
I looked at this, and provided samples in general follows to the rule:
(reference) [?queryString] [#anchor]

But it doesn't work.

Valdis


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


Re: [xwiki-users] XWiki design and doubts

2013-08-27 Thread Valdis Vītoliņš

 2.- #if($xwiki.getUser().isUserInGroup(XWiki.DemoGroup))
 $response.sendRedirect($xwiki.getURL('Some.Document'))
 #end -- Where should I place this commands? 
Put this code e.g. in Main.WebHome page surrounding by
{{velocity}} or you can create macro:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial

2.- #if($xwiki.getUser().isUserInGroup(XWiki.DemoGroup))
 $response.sendRedirect($xwiki.getURL('Some.Document'))
 #end -- Where should I place this commands?
 3.- I don't know how to navigate between spaces 
 -- Is there any place where to view all paces in order to
 administer/delete them?
You can look at all documents in /xwiki/bin/view/Main/AllDocs page
Actually there is no object called Space in XWiki. Space is property
of the XWiki Document and Create space actually means Create
Space.WebHome document. To delete space you need to delete all
documents (including hidden ones) which are grouped in this space.
To do it automatically use code from the:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Delete+Space

 -- Is there any way to click in another space in order to view it? 
XWiki Panel Wizard has built-in Spaces and Space documents panels:
http://enterprise.xwiki.org/xwiki/bin/view/GettingStarted/ChangingTheLogoAndThePanels

And of course, you can create your own panels.

Valdis

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


Re: [xwiki-users] video tag (solved)

2013-08-27 Thread Valdis Vītoliņš
 It appears now this tag is filtered out by newer Apache proxy version
 (hate these standards naciz)...

And I found out that I had unnecessary option for ApacheProxy:
/etc/apache2/
...
ProxyHTMLDoctype XHTML
...
See more at
http://httpd.apache.org/docs/current/mod/mod_proxy_html.html#proxyhtmldoctype

Valdis

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


[xwiki-users] video tag again

2013-08-26 Thread Valdis Vītoliņš
I'm using video tag on old XWiki 2.7 with 1.0 syntax,
though I cannot to get it shown on XWiki 5.1 with 2.0/2.1 syntax.
Sergiu said in
http://lists.xwiki.org/pipermail/users/2011-July/020245.html
that {{html clean=false}} should be used,
but it still filters video tag out...

Valdis


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


Re: [xwiki-users] video tag again

2013-08-26 Thread Valdis Vītoliņš
Thanks,
it works for me also, if I connect to the tomcat port directly.
It appears now this tag is filtered out by newer Apache proxy version
(hate these standards naciz)...

Valdis
 Hi,
 
 On Aug 26, 2013, at 2:32 PM, Valdis Vītoliņš valdis.vitol...@odo.lv wrote:
 
  I'm using video tag on old XWiki 2.7 with 1.0 syntax,
  though I cannot to get it shown on XWiki 5.1 with 2.0/2.1 syntax.
  Sergiu said in
  http://lists.xwiki.org/pipermail/users/2011-July/020245.html
  that {{html clean=false}} should be used,
  but it still filters video tag out…
 
 It works as Sergiu said.
 
 I've tested it here:
 http://playground.xwiki.org/xwiki/bin/view/Main/VMA
 
 Content:
 {{html clean=false}}
 video
 whatever
 /video
 {{/html}}
 
 HTML results (view source in your browser):
 
 video 
 whatever
 /video
 
 If it's not there it means your browser has removed it , not xwiki ;)
 
 Thanks
 -Vincent
 


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


Re: [xwiki-users] XWiki design and doubts

2013-08-26 Thread Valdis Vītoliņš
...
 The problem i have found is.
 
 1.- Project manager can create new spaces
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Access
+Rights#HPreventregularusersfromcreatingnewspaces

 2.- I dont't know how to fix the initial space for Operators (they appear 
 in Main Space)

#if($xwiki.getUser().isUserInGroup(XWiki.DemoGroup))
$response.sendRedirect($xwiki.getURL('Some.Document'))
#end


Valdis

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


Re: [xwiki-users] piwik anyone?

2013-08-23 Thread Valdis Vītoliņš
I use piwik and  I'm satisfied with it.
Reports can be seen at: http://odo.lv/piwik/

Valdis


 Hello XWiki users,
 
 did anyone made experiments with Piwik?
 It seems to be an open-source (GPL unfortunately) analytics tool which would 
 compete well with Google Analytics.
 
 thanks in advance.
 
 Paul
 ___
 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] Syntax and execution rules for parsed CSS and Javascript objects

2013-08-22 Thread Valdis Vītoliņš
I'm trying to move all velocity macro customizations from files to the
database according to
http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial

Though I can't find out syntax and execution rules (e.g. order) for
parsed entries.

E.g. to implement different styles for anonymous and logged in users for
XWiki.StyleSheetExtension parsed code (how Velocity can decide which is
macro and whic is CSS id?):

#if($isGuest)
#xwikicontent {
  background-color: blue;
}
#else
#xwikicontent {
  background-color: red;
}
#end

Similarly, what should be right way to show alert for
XWiki.JavaScriptExtension parsed code:

alert($isGuest);

Thanks!
Valdis

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


Re: [xwiki-users] Syntax and execution rules for parsed CSS and Javascript objects

2013-08-22 Thread Valdis Vītoliņš
Thanks Clemens and Marius!
I updated
http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial#HHowtouseVelocityinparsedcontent

with additional notes.

Valdis


 Hi Valdis,
 
  it seems in the StyleSheetExtensions / JavaScriptExtensions only the basic 
 variables are defined, like $doc, $request or $xcontext
 
 The $isGuest is a derived variable; you can find the definition in 
 /templates/xwikivars.vm
 
 I am not sure if there is a better way, but at least you can get the code 
 working by copy  paste the definition for the variables you need from the 
 xwikivars.vm to the corresponding objects
 
 hope this helps,
 Clemens
 
  I'm trying to move all velocity macro customizations from files to the
  database according to
  http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial
  
  Though I can't find out syntax and execution rules (e.g. order) for
  parsed entries.
  
  E.g. to implement different styles for anonymous and logged in users for
  XWiki.StyleSheetExtension parsed code (how Velocity can decide which is
  macro and whic is CSS id?):
  
  #if($isGuest)
  #xwikicontent {
background-color: blue;
  }
  #else
  #xwikicontent {
background-color: red;
  }
  #end
  
  Similarly, what should be right way to show alert for
  XWiki.JavaScriptExtension parsed code:
  
  alert($isGuest);
  
  Thanks!
  Valdis
  
  ___
  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] Is xwiki suitable as a blog now?

2013-08-20 Thread Valdis Vītoliņš
To handle pictures better, I use following macro:

#macro(picture $img, $width)
a href=/xwiki/bin/download/$doc.space/$doc.name/$img{image:$img|
width=$width}/a#end

Width parameter is optional, fixed width or percents can be used. And
user is able to click on picture to see bigger picture.

See http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial
for more info about macros.

Valdis

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


[xwiki-users] Syntax 1.0 is not shown as syntax option

2013-08-20 Thread Valdis Vītoliņš
I've changed XWiki 5.1 configuration file .../xwiki/WEB-INF/xwiki.cfg
line to the:
...
xwiki.rendering.syntaxes = xwiki/1.0, xwiki/2.0, xwiki/2.1
...
but Document Syntax combo box still shows only 
XWiki 2.1
XWiki 2.0
as possible options.

Where could be the catch?
Valdis




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


Re: [xwiki-users] SSO/SAML/STS example provided on Github

2013-05-30 Thread Valdis Vītoliņš
Hello!
I have created another variant for XWiki authenticator, using SAML
Security Token Service (STS) authentication. It is pushed in Github fork
https://github.com/ValdisVitolins/sandbox/tree/master/authenticators/xwiki-authentication-sts
and I'd be happy if you will include it (doing some cleanup, if
necessary) in XWiki Sandbox repository.

Note, that although this module uses SAML as an high level standard,
actually it is quite different from
https://github.com/xwiki-contrib/sandbox/tree/master/authenticators/xwiki-authentication-saml
because it uses quite old SAML 1.2 standard:
http://docs.oasis-open.org/wsfed/federation/v1.2/os/ws-federation-1.2-spec-os.html
and Authentication provider is implemented using Microsoft technologies.

Valdis


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


[xwiki-users] XWiki vs Xwiki or brandname vs forename

2013-05-29 Thread Valdis Vītoliņš
I'm just curious about brandname such as XWiki versus generic forename
such as Xwiki.

For example in languages I know (Latvian, English, Russian) any forename
(given name for person or dog, city or ship name, etc.) starts with
capital and then, if not all characters are capital, it follows with
small letters.

There are brandnames (mostly intentionally, to differ from generic
name) this rule is not followed: XWiki, iOS, PiTiVi, etc.

So, when I write about Xwiki:

1. I don't know it is spelled XWiki,
2. I'm too lazy to bother,
3. I intentionally spell it Xwiki, to not add disclaimer, that iOS or
XWiki or ... is a registered trademark (if is),
4. something else...

What do you think?
Valdis

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


Re: [xwiki-users] [myxwiki] new wiki request

2013-05-23 Thread Valdis Vītoliņš
Kévin,
you can probably include following velocity script in your pages.
#if($request.getRequestURL().substring(7,32)!
=www.familleassociative.fr)
## (please count characters yourself!)
$response.sendRedirect(http://www.familleassociative.fr/${request.getRequestURL().substring(32)})
#end

And maybe even you can put this code in Xwiki settings:
../xwiki/bin/admin/XWiki/XWikiPreferences?editor=globaladminsection=Presentation
at the end of HTTP Meta Information field.

Valdis

 Thanks Vincent !
 
 It works fine now : 
 http://www.familleassociative.fr/xwiki/bin/view/Main/WebHome
 
 but all the content is also available at http://familleassociative.myxwiki.org
 
 I learned that it was not a good thing to have two valid Url for a website.
 Is it possible to force with Url rewriting or other to lead to new domain 
 name ?
 
 Thanks
 
 Kévin
...

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


[xwiki-users] How to continue table in new row with content from referenced document

2013-05-22 Thread Valdis Vītoliņš
I'd like to continue table from main document with content from
referenced document, but can't get it right.

I have TableIncl document:
|cc|cc
|dd|dd

And then I use following:
|aa|aa
|bb|bb
 {{include reference=Test.TableIncl/}}
I get table from TableIncl shown inside bb cell.
If I put empty line, then new table is started.

Any suggestions?
Valdis

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


Re: [xwiki-users] How to continue table in new row with content from referenced document

2013-05-22 Thread Valdis Vītoliņš
Thomas,
problem is that I don't want to put included content in a cell. Instead
I'd like to continue table in the new row. E.g. as following table:
|aa|aa
|bb|bb
|cc|cc
|dd|dd

with
|cc|cc
|dd|dd part included from the other document.

I tried also different groupings, e.g.:
(((|aa|aa
|bb|bb
{{include reference=Test.TableIncl/}})))
what includes table in the cell,
or
(((|aa|aa
|bb|bb)))((({{include reference=Test.TableIncl/}})))
which starts new table, etc.

It seems to me, including referenced document provides implicit grouping
~ like ((({{include reference=Test.TableIncl/}})))

Valdis

 On Wed, May 22, 2013 at 3:43 PM, Valdis Vītoliņš valdis.vitol...@odo.lv 
 wrote:
  I'd like to continue table from main document with content from
  referenced document, but can't get it right.
 
  I have TableIncl document:
  |cc|cc
  |dd|dd
 
  And then I use following:
  |aa|aa
  |bb|bb
   {{include reference=Test.TableIncl/}}
  I get table from TableIncl shown inside bb cell.
  If I put empty line, then new table is started.
 
  Any suggestions?
  Valdis
 
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 
 You can use group syntax to put anything you want in a table cell
 (same for lists).
 
 See http://www.xwiki.org/xwiki/bin/view/XWiki/XWikiSyntax#HGroups
 
 --
 Thomas Mortagne


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


[xwiki-users] How to send all custom object content in e-mail

2013-05-11 Thread Valdis Vītoliņš
Is it way to get whole Custom object content to be send it in the mail?
I do it in Groovy as it is described in
http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyNotificationTutorial

I know it could be done by redoing the same formatting as in the class
sheet, but, as I need to notify about different objects, it is too
cumbersome and error prone.

I tried unsuccessfully:
1. xwiki.getURLContent(url,user,password) failed because user and
password seems not working,
2. doc.getRenderedContent() shows only doc.content part, ignoring custom
object properties.

Thanks!
Valdis



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


[xwiki-users] Edit and save custom document from view action

2013-05-03 Thread Valdis Vītoliņš
I have customized document (i.e. attached object of the custom class to
document) and I'd like to change its status from the view mode.
I tried to modify ClassSheet for view mode with following HTML:

form method=post action=/xwiki/bin/edit/$doc.space/$doc.name
input type=hidden name=Custom.Class_0_property value=$myvalue/
input type=submit value=Submit name=action_save class=button
/form

but got error:
Warning
This request contains an invalid authentication information.

Could anybody provide me some hints for me in the right direction?

Thanks!
Valdis

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


Re: [xwiki-users] java.lang.ClassCastException: com.xpn.xwiki.doc.XWikiAttachment cannot be cast to com.xpn.xwiki.api.Attachment

2013-04-29 Thread Valdis Vītoliņš
Thanks, Edo!
I got it working using following:
...
def sourceDoc = xwiki.getDocument(source.fullName);
def attachments = sourceDoc.getAttachmentList();
...

Valdis

 Hi Valdis
 
 
 Looks to me as if you try to give a List of XWikiAttachments to a
 method expecting Attachments. The class Attachment is the API class of
 XWikiAttachment. So if you call getAttachmentList() on an
 XWikiDocument it returns a List of XWikiAttachments, but calling the
 same method on a Document returns a List of Attachments.
 
 
 Long story short: I suppose calling getAttachmentList() on the source
 Document instead of the XWikiDocument should solve your problem.
 
 
 I hope this helps
 Edo
 
 
 
 
 On Thu, Apr 25, 2013 at 4:31 PM, Valdis Vītoliņš
 valdis.vitol...@odo.lv wrote:
 I'm writing custom listener to send e-mail after document
 updates
 according to:
 
 http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyNotificationTutorial 
 and: 
 http://xwiki.475771.n2.nabble.com/Send-an-email-in-an-event-listener-td7579175.html
 
 Although adding attachment is working in Velocity as described
 in:
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Mail
 +Sender+Plugin
 
 Similar approach in Groovy raises exception:
 
 java.lang.ClassCastException:
 com.xpn.xwiki.doc.XWikiAttachment cannot
 be cast to com.xpn.xwiki.api.Attachment
 at
 
 com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.createMimeMultipart(MailSenderPlugin.java:391)
  ~[xwiki-platform-mailsender-4.5.jar:na]
 at
 
 com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.createMimeMessage(MailSenderPlugin.java:327)
  ~[xwiki-platform-mailsender-4.5.jar:na]
 at
 
 com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMails(MailSenderPlugin.java:726)
  ~[xwiki-platform-mailsender-4.5.jar:na]
 at
 
 com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMail(MailSenderPlugin.java:673)
  ~[xwiki-platform-mailsender-4.5.jar:na]
 at
 
 com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMail(MailSenderPlugin.java:659)
  ~[xwiki-platform-mailsender-4.5.jar:na]
 at
 
 com.xpn.xwiki.plugin.mailsender.MailSenderPluginApi.sendMail(MailSenderPluginApi.java:171)
  [xwiki-platform-mailsender-4.5.jar:na]
 at
 
 com.xpn.xwiki.plugin.mailsender.MailSenderPluginApi.sendTextMessage(MailSenderPluginApi.java:98)
  [xwiki-platform-mailsender-4.5.jar:na]
 at com.xpn.xwiki.plugin.mailsender.MailSender
 $sendTextMessage.call(Unknown Source)
 [xwiki-platform-mailsender-4.5.jar:na]
 at EmailSenderListener.onEvent(Script22.groovy:34) [script:na]
 ...
 and line is: def attachments = source.getAttachmentList()
 
 What should I do?
 
 Thanks!
 Valdis
 
 ___
 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] redirecting 302 responses

2013-04-28 Thread Valdis Vītoliņš
Ricardo, then look also at:
http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs

Valdis
 Thanks, Vladis! Please, read below...
 
  
  From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of Valdis 
  Vītoliņš [valdis.vitol...@odo.lv]
  Sent: 27 April 2013 13:30
  To: XWiki Users
  Subject: Re: [xwiki-users] redirecting 302 responses
 
  Ricardo,
  if your intention is to shorten Xwiki URLs permanently,
  look at http://odo.lv/Recipes/XwikiShortURLs_en
 
 
 Your solution seems great, but I'm afraid I can't use it now: currently, I've 
 no Apache web server behind the scene. Tomcat is directly serving on port 80. 
 I know this is not a desirable situation, but it is how this server is 
 running right now. So, I keep struggling to find a solution within XWiki. 
 Any new idea will be welcome!
 
 
  BTW, I have question to Xwiki developers — why status 302 (found) is
  used?
  IMHO, to train crawlers for changes, 301 (moved permanently) seems more
  appropriate.
 
  Valdis
 
 
  Oops! Please, see below!
 
   
   From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of 
   Rodriguez Fernandez, Ricardo Julio
   Sent: 27 April 2013 11:21
   To: users@xwiki.org
   Subject: [xwiki-users] redirecting 302 responses
 
   Hi!
  
   I more or less understand how URLs to missing/wrong/moved XWiki pages 
   work
   involving docdoesnotexist.vm, but I'm still not able to modify this 
   behavior by
   reading/taking into account values of request/responses exchanges 
   between client and server.
  
   For instance: I would like to redirect a number of short URLs like 
   this...
  
   http://www.idisantiago.es/BIS2013
  
   to a set of given XWiki pages. Currently I can, and I did, a redirection 
   of all of them
   to a single page by modifying Main.DocumentDoesNotExist this way...
  
   {{velocity}}
   $response.sendRedirect($xwiki.getURL(BIS2013.Schedule))
   {{/velocity}}
  
   But I'm not able to find the way of using request's name and status in 
   Velocity #if().
   Please, see attached file. I found a number of what I consider related 
   information dealing with
   $response, $request, URL resolution, URL mappings and so on, so forth, 
   but I 'm afraid this is
   too much for me to digest!
 
  Sorry! I forgot that attachments are filtered out of the list! Here it is 
  the referenced image...
 
  http://www.idisantiago.es/bin/download/ICT/Request/BIS2013.302Response.png
 
  Thanks!
 
   Please, could anybody point me in the right direction? Am I completely 
   lost?
  
   Thanks for your help!!!
  
   Ricardo
  
 
  --
  Ricardo Rodríguez
  Research Management and Promotion Technician
  Technical Secretariat
  Health Research Institute of Santiago de Compostela (IDIS)
  http://www.idisantiago.es
 
 
  Nota: A información contida nesta mensaxe e os seus posibles documentos 
  adxuntos é privada e confidencial e está dirixida únicamente ó seu 
  destinatario/a. Se vostede non é o/a destinatario/a orixinal desta 
  mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non 
  está autorizada.
 
  Nota: La información contenida en este mensaje y sus posibles documentos 
  adjuntos es privada y confidencial y está dirigida únicamente a su 
  destinatario/a. Si usted no es el/la destinatario/a original de este 
  mensaje, por favor elimínelo. La distribución o copia de este mensaje no 
  está autorizada.
 
  See more languages: http://www.sergas.es/aviso_confidencialidad.htm
  ___
  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
 
 Nota: A información contida nesta mensaxe e os seus posibles documentos 
 adxuntos é privada e confidencial e está dirixida únicamente ó seu 
 destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, 
 por favor elimínea. A distribución ou copia desta mensaxe non está autorizada.
 
 Nota: La información contenida en este mensaje y sus posibles documentos 
 adjuntos es privada y confidencial y está dirigida únicamente a su 
 destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, 
 por favor elimínelo. La distribución o copia de este mensaje no está 
 autorizada.
 
 See more languages: http://www.sergas.es/aviso_confidencialidad.htm


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


Re: [xwiki-users] redirecting 302 responses

2013-04-27 Thread Valdis Vītoliņš
Ricardo,
if your intention is to shorten Xwiki URLs permanently,
look at http://odo.lv/Recipes/XwikiShortURLs_en

BTW, I have question to Xwiki developers — why status 302 (found) is
used?
IMHO, to train crawlers for changes, 301 (moved permanently) seems more
appropriate.

Valdis
 Oops! Please, see below!
 
  
  From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of 
  Rodriguez Fernandez, Ricardo Julio
  Sent: 27 April 2013 11:21
  To: users@xwiki.org
  Subject: [xwiki-users] redirecting 302 responses
 
  Hi!
 
  I more or less understand how URLs to missing/wrong/moved XWiki pages work
  involving docdoesnotexist.vm, but I'm still not able to modify this 
  behavior by
  reading/taking into account values of request/responses exchanges between 
  client and server.
 
  For instance: I would like to redirect a number of short URLs like this...
 
  http://www.idisantiago.es/BIS2013
 
  to a set of given XWiki pages. Currently I can, and I did, a redirection of 
  all of them
  to a single page by modifying Main.DocumentDoesNotExist this way...
 
  {{velocity}}
  $response.sendRedirect($xwiki.getURL(BIS2013.Schedule))
  {{/velocity}}
 
  But I'm not able to find the way of using request's name and status in 
  Velocity #if().
  Please, see attached file. I found a number of what I consider related 
  information dealing with
  $response, $request, URL resolution, URL mappings and so on, so forth, but 
  I 'm afraid this is
  too much for me to digest!
 
 Sorry! I forgot that attachments are filtered out of the list! Here it is the 
 referenced image...
 
 http://www.idisantiago.es/bin/download/ICT/Request/BIS2013.302Response.png
 
 Thanks!
 
  Please, could anybody point me in the right direction? Am I completely lost?
 
  Thanks for your help!!!
 
  Ricardo
 
 
 --
 Ricardo Rodríguez
 Research Management and Promotion Technician
 Technical Secretariat
 Health Research Institute of Santiago de Compostela (IDIS)
 http://www.idisantiago.es
 
 
 Nota: A información contida nesta mensaxe e os seus posibles documentos 
 adxuntos é privada e confidencial e está dirixida únicamente ó seu 
 destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, 
 por favor elimínea. A distribución ou copia desta mensaxe non está autorizada.
 
 Nota: La información contenida en este mensaje y sus posibles documentos 
 adjuntos es privada y confidencial y está dirigida únicamente a su 
 destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, 
 por favor elimínelo. La distribución o copia de este mensaje no está 
 autorizada.
 
 See more languages: http://www.sergas.es/aviso_confidencialidad.htm
 ___
 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] Body attributes are lost when apache proxy filter is used — solved

2013-04-24 Thread Valdis Vītoliņš
I found that problem was too many continuous spaces between tags in
header part.

If amount of spaces was more than 1000, mod_proxy_html module wrongly
assumed that head part is finished, arbitrary closed head and opened
body without attributes (and then ignored original one).

As the most part of spaces is produced by colorThemeInit.vm foreach
loops, I replaced each pair of leading spaces with only one.
(Note that increasing ProxyHTMLBufSize didn't help.)

Valdis

 On Mon, Apr 22, 2013 at 8:17 PM, Valdis Vītoliņš valdis.vitol...@odo.lv 
 wrote:
  I'm working on shortening Xwiki instance URLs
  (see details in http://odo.lv/Recipes/XwikiShortURLs_en )
  and strangely I can't do it for newer Xwiki instance
  (it works for odo.lv which uses 2.7 version).
 
  I found out that HTML is broken, when proxy server rewrites hyperlinks for 
  preduced XHTML
  (SetOutputFilter proxy-html
  ProxyHTMLURLMap /xwiki/bin/view/ /
  direcives in apache2.conf)
 
  Then it changes ...body id=body class=wiki-xwiki space-Main viewbody
  hideleft... to simple ...body... element without attributes.
 
  Only weakly related thing I found is that could be related is:
  http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxybadheader
 
 
  I suspect it somehow is related on how header is finished and body is 
  started.
 
 We have web standards validation tests that ensure the HTML produced
 for the default wiki pages (at least) is valid, so I believe this is a
 bug in the proxy filter. You can pass the HTML produced by your wiki
 page to an XHTML validator like http://validator.w3.org/ to double
 check.
 
 Hope this helps,
 Marius
 
  Can you suggest any ideas?
 
  Thanks!
  Valdis
 
 
 
 
 
  ___
  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] Body attributes are lost when apache proxy filter is used

2013-04-22 Thread Valdis Vītoliņš
I'm working on shortening Xwiki instance URLs
(see details in http://odo.lv/Recipes/XwikiShortURLs_en )
and strangely I can't do it for newer Xwiki instance
(it works for odo.lv which uses 2.7 version).

I found out that HTML is broken, when proxy server rewrites hyperlinks for 
preduced XHTML
(SetOutputFilter proxy-html
ProxyHTMLURLMap /xwiki/bin/view/ /
direcives in apache2.conf)

Then it changes ...body id=body class=wiki-xwiki space-Main viewbody
hideleft... to simple ...body... element without attributes.

Only weakly related thing I found is that could be related is:
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxybadheader

I suspect it somehow is related on how header is finished and body is started.
Can you suggest any ideas?

Thanks!
Valdis





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


[xwiki-users] How to solve Xwiki SAML authentication

2013-04-11 Thread Valdis Vītoliņš
I found out that Xwiki SAML module from
https://github.com/xwiki-contrib/sandbox/tree/master/authenticators/xwiki-authentication-saml
differs significantly from what I have. It works according to:
http://docs.oasis-open.org/wsfed/federation/v1.2/os/ws-federation-1.2-spec-os.html
And is implemented in .Net:
http://msdn.microsoft.com/en-us/library/ee517291.aspx
http://msdn.microsoft.com/en-us/library/bb498017.aspx
http://msdn.microsoft.com/en-us/library/bb608217.aspx

Even though by standard I should use location parameter in response
parameters, actually it can be invoked with GET/POST parameters, e.g.
simply by following:
https://...gov.lv/.../default.aspx?wa=wsignin1.0wtrealm=http%3A%2F%
2F11.22.33.44%2Fxwiki
where gov.lv is authentication federation service, and  11.22.33.44 is
my xwiki site.

Then after authentication service redirects back to xwiki with POST
parameters:
wa=
wsignin1.0
wresult=
=
trust:RequestSecurityTokenResponseCollection
xmlns:trust=http://docs.oasis-open.org/ws-sx/ws-trust/200512;
trust:RequestSecurityTokenResponse
trust:Lifetime
wsu:Created
xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd;2013-04-11T12:41:15.525Z/wsu:Created
wsu:Expires
xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd;2013-04-11T13:41:15.525Z/wsu:Expires
/trust:Lifetime
wsp:AppliesTo xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy;
EndpointReference xmlns=http://www.w3.org/2005/08/addressing;
Addresshttp://11.22.33.44/xwiki/Address
/EndpointReference
/wsp:AppliesTo
trust:RequestedSecurityToken
saml:Assertion MajorVersion=1 MinorVersion=1
AssertionID=_05d753b3-3f4c-4709-ad74-bdce19fb23c2
Issuer=http://...gov.lv/trust;
IssueInstant=2013-04-11T12:41:15.525Z
xmlns:saml=urn:oasis:names:tc:SAML:1.0:assertion
saml:Conditions NotBefore=2013-04-11T12:41:15.525Z
NotOnOrAfter=2013-04-11T13:41:15.525Z
saml:AudienceRestrictionCondition
saml:Audiencehttp://11.22.33.44/xwiki/saml:Audience
/saml:AudienceRestrictionCondition
/saml:Conditions
saml:AttributeStatement
saml:Subject
saml:SubjectConfirmation
saml:ConfirmationMethodurn:oasis:names:tc:SAML:1.0:cm:bearer
/saml:ConfirmationMethod
/saml:SubjectConfirmation
/saml:Subject
saml:Attribute AttributeName=privatepersonalidentifier
AttributeNamespace=http://schemas.xmlsoap.org/ws/2005/05/identity/claims;
saml:AttributeValue112233-12345/saml:AttributeValue
/saml:Attribute
saml:Attribute AttributeName=givenname
AttributeNamespace=http://schemas.xmlsoap.org/ws/2005/05/identity/claims;
saml:AttributeValueVALDIS/saml:AttributeValue
/saml:Attribute
saml:Attribute AttributeName=surname
AttributeNamespace=http://schemas.xmlsoap.org/ws/2005/05/identity/claims;
saml:AttributeValueVĪTOLIŅŠ/saml:AttributeValue
/saml:Attribute
/saml:AttributeStatement
saml:AuthenticationStatement
AuthenticationMethod=URN:...
AuthenticationInstant=2013-04-11T12:41:15.525Z
saml:Subject
saml:SubjectConfirmation
saml:ConfirmationMethodurn:oasis:names:tc:SAML:1.0:cm:bearer
/saml:ConfirmationMethod
/saml:SubjectConfirmation
/saml:Subject
/saml:AuthenticationStatement
ds:Signature xmlns:ds=http://www.w3.org/2000/09/xmldsig#;
ds:SignedInfo
ds:CanonicalizationMethod
Algorithm=http://www.w3.org/2001/10/xml-exc-c14n#; /
ds:SignatureMethod
Algorithm=http://www.w3.org/2000/09/xmldsig#rsa-sha1; /
ds:Reference URI=#_05d753b3-3f4c-4709-ad74-bdce19fb23c2
ds:Transforms
ds:Transform
Algorithm=http://www.w3.org/2000/09/xmldsig#enveloped-signature; /
ds:Transform Algorithm=http://www.w3.org/2001/10/xml-exc-c14n#; /
/ds:Transforms
ds:DigestMethod Algorithm=http://www.w3.org/2000/09/xmldsig#sha1; /
ds:DigestValueHU3/uQFbvSciSkPXxQURI+hUkNU=/ds:DigestValue
/ds:Reference
/ds:SignedInfo
ds:SignatureValue...
/ds:SignatureValue
KeyInfo xmlns=http://www.w3.org/2000/09/xmldsig#;
X509Data
X509Certificate...
/X509Certificate
/X509Data
/KeyInfo
/ds:Signature
/saml:Assertion
/trust:RequestedSecurityToken
...Bla, bla, bla...
=

Am I right, that I need to change:

1. showLogin() where most of authRequest.set... seems unnecessary,

2. checkSAMLResponse() where I need to do
request.getParameter(wresult) and somehow extract out necessary data
and check them from this XML.

Thanks for any hints!
Valdis



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


Re: [xwiki-users] How to package all necessary jars for xwiki-authentication-saml?

2013-04-01 Thread Valdis Vītoliņš
Thanks, Thomas!
I managed to get it working. With mvn dependency:copy-dependencies I
got bunch of jars, most of them were older versions of these which my
Xwiki 4.5 had already (If it could be improved with adjusted dependency
versions, it would be great.) I didn't use them, except those which
seemed new ones. Now my Xwiki runs with some warnings, but at least it
works. Of course, it doesn't work with specific SAML identity provider,
but this is another story.

Valdis
 You would need to modify the pom.xml for this but no need to create a
 big jar (it's also not very clean). You can use mvn
 dependency:copy-dependencies to get all dependencies of your jar in
 target/dependencies and select the one you don't have in your XE
 instance. Make sure to pull first because I modified a bit the
 opensaml dependency which was provided.
 
 On Fri, Mar 29, 2013 at 10:29 PM, Valdis Vītoliņš
 valdis.vitol...@odo.lv wrote:
  Thanks, Thomas,
  I tried
  https://github.com/xwiki-contrib/sandbox/tree/master/authenticators/xwiki-authentication-saml
  again and now it compiled successfully. Though when tried to access WebHome 
  page I got
  exception, from which IMHO important part is:
  ...
  Caused by: 
  java.lang.NoClassDefFoundError:org/opensaml/xml/security/credential/Credential
 
  And I assume it is because I didn't put all necessary jar files in lib 
  folder.
  Knowing bash better than J2EE, I copied all files which I got from 
  ~/m2/repository to /lib,
  but then Xwiki didn't start at all...
 
  How can I build  xwiki-authentication-saml with all necessary dependencies?
 
  Thanks, and happy Easter!
  Valdis
 
 
 
 
 
 
 
 
  ___
  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] SSO/SAML: issue with example provided on Github

2013-03-29 Thread Valdis Vītoliņš
Nicolas,
If you'd be able to rebuild this module that it at least compiles and
does something, I'd also be interested in trying it and contributing to
its development.

Valdis
 Hi Nicolas,
 
 If I remember correctly I wrote this authenticator and I think it requires
 some code in XWiki pages to manage the redirects but I don't think I have
 this code anymore.
 Plus it was for one custom SAML server and has not been tested with
 multiple ones.
 
 In any case it's a good basis for starting a SAML authenticator.
 If you are coding against a more widespread SAML server, do contribute your
 code :)
 You can takeover the module fully as no backwards compatibility is needed.
 
 Ludovic
...

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


[xwiki-users] How to package all necessary jars for xwiki-authentication-saml?

2013-03-29 Thread Valdis Vītoliņš
Thanks, Thomas,
I tried
https://github.com/xwiki-contrib/sandbox/tree/master/authenticators/xwiki-authentication-saml
again and now it compiled successfully. Though when tried to access WebHome 
page I got
exception, from which IMHO important part is:
...
Caused by: 
java.lang.NoClassDefFoundError:org/opensaml/xml/security/credential/Credential

And I assume it is because I didn't put all necessary jar files in lib folder.
Knowing bash better than J2EE, I copied all files which I got from 
~/m2/repository to /lib,
but then Xwiki didn't start at all...

How can I build  xwiki-authentication-saml with all necessary dependencies?

Thanks, and happy Easter!
Valdis








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


Re: [xwiki-users] help

2010-05-10 Thread Valdis Vītoliņš
Xwiki doesn't send e-mail directly but rather use SMTP server (sendmail,
postfix in Linux systems) which by default
runs on the same host where Xwiki and listens on port No 25.
Go on Xwiki- Administer Xwiki- General and there should be ~ like:
...
SMTP
Server: 127.0.0.1
Port:25 or nothing (as 25 is default value).
I have no clue how to set up SMTP server on Mac,
but you can set external SMTP server e.g. some of what you use for your
e-mail.

Valdis

 hello !!
 
   i want to work on Xwiki Workspace and when i'm trying to invit users by
 Mail i got this message:
 
 *Error number 101007 in 101: Sending notification email failed Wrapped
 Exception: Could not connect to SMTP host: 587, port: 25*
 
 I am a beginner and i have no idea of what i have to do .
 
 by the way, i'm working on MAc OSX 10.5.8, and my FAI is FREE. i don't know
 if it change something.
 
 2 questions :
 
 1-how can i fix this and send mail invitatation to new users?
 2-can you explain me how to go from the intranet to the internet?
 
 thanks and long life to Xwiki ;)


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


Re: [xwiki-users] Why the created and last modified time are wrong?

2010-04-28 Thread Valdis Vītoliņš
Please add following code in some page (xwiki 1.0 syntax)

$datetool.get('dd.MM. HH:mm')

Save and check what date is shown in page.

If shown time is wrong, then server simply doesn't have correct time
and/or time zone.

Valdis

 Hi All,
 
 I have installed XWiki Enterprise 2.2.1.27354 on my laptop, and found that
 after created or modified the document, the created and last modified
 time are wrong!
 
 For example, my local time is 2010/04/28, 22:08, but the date of the
 document I just created is 2010/04/28, 09:38.  My local time zone is
 Beijing, China, UTC/GMT +8 hours.
 
 How could I solve this issue? You comments are welcome!
 
 Island
 ___
 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] $response.sendRedirect with status 301

2010-04-22 Thread Valdis Vītoliņš
Xwiki allows to redirect from one xwiki page to other using
$response.sendRedirect(http://new_url;) code.
Though response header status ir 302 (found, i.e. moved temporarily),
but I need 301 (moved permanently).
Is it way to set this status for response?

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


Re: [xwiki-users] [xwiki-devs] XWiki Logo Challenge, Round 2

2010-04-20 Thread Valdis Vītoliņš
We should believe in evolution, not in intelligent design ;-)

For me topology (i.e. shapes of character) looks good, though I'd like
right part for w parallel to slope parts of X and k, with iki size
adjusted accordingly
(probably they need to be smaller then).

Wouldn't it be better?

Valdis

 Hello,
 
 What do you think about this:
 http://dev.xwiki.org/xwiki/bin/download/Community/LogoChallengeRound2/16-variation-engineering.png
 ?
 
 Raluca.
 ...
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [xwiki-devs] XWiki Logo Challenge, Round 2

2010-04-14 Thread Valdis Vītoliņš
Readability is better, but for me upper right backgoing serif  for w
seems unnecessary.
In place of (ascii art):
\//  \
/\\/\/iki

only in this way:
\/
/\\/\/iki

Then X can be bigger and w can be aligned with k. 
What do you think? 

Valdis

 I completely agree with Marius, I would also add that since this is a
 Community project, it should have a Community logo !
 Since 16 has receive many votes now, and that I also agree with
 Vincent,
 Ludovic and others, it is not readable enough, I have made an
 alternative
 design: W-angle. My feeling was that the W is difficult to read, so my
 proposal try to keep the style and reworked it. There is also small
 changes
 in spacing, and a different powered by button.
 
 Here is almost all that was requested in a proposal with this
 variable:
 http://dev.xwiki.org/xwiki/bin/download/Community/LogoChallengeRound2/16%2Dwangle%2Ddefault.png
 
 I really hope that if the logo 16 is chosen, my proposal could help in
 mitigating the disappointment of those that really find it
 unacceptable.
 
 WDYT ?
 
 Denis 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki Logo Challenge, Round 2

2010-04-12 Thread Valdis Vītoliņš
Agree that small icon for
http://dev.xwiki.org/xwiki/bin/download/Community/LogoChallengeRound2/final1.png
looks good, but for bigger sizes it looks for me as squirrel with
flightskin :-)

Therefore I choose 16 with straight W as it seems more ordered.
http://dev.xwiki.org/xwiki/bin/download/Community/LogoChallengeRound2/16-default-straight.png

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


[xwiki-users] Your ideas to save number in custom object using Groovy code?

2010-04-09 Thread Valdis Vītoliņš
I'm trying to save custom object values, and can only for strings using
advanced script from
http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyNotificationTutorial 
For Number type (tried integer and long), I couldn't save value in any
way. Tried explicitly define as 
int daudzums
and 
daudzums = Integer.parseInt(string)

I exhausted my ideas and would like to get some more :-/

Exception:
2010-04-09 19:07:40,254
[http://85.254.250.23/xwiki/bin/preview/MyWood/S-100409-181257]
ERROR .AbstractFlushingEventListener  - Could not synchronize database
state with session 
org.hibernate.StaleObjectStateException: Row was updated or deleted by
another transaction (or unsaved-value mapping was incorrect):
[com.xpn.xwiki.objects.IntegerProperty#?xml version=1.0
encoding=UTF-8?

daudzums4/daudzums
]
at
org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1769)
at
org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2412)
at
org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2312)
at
org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2612)
at
org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:96)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
at
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:854)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:825)
at
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:598)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:181)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:174)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1325)
at com.xpn.xwiki.api.Document.saveDocument(Document.java:1751)
at com.xpn.xwiki.api.Document.save(Document.java:1715)
at com.xpn.xwiki.api.Document.save(Document.java:1704)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite
$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121)
at LoggingEventListener.createIzstrade(Script15.groovy:105)
at LoggingEventListener$createIzstrade.callCurrent(Unknown Source)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:143)
at LoggingEventListener.doSMS(Script15.groovy:79)
at LoggingEventListener$doSMS.callCurrent(Unknown Source)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:143)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151)
at LoggingEventListener.onEvent(Script15.groovy:27)
at
org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:269)
at
org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:243)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1352)
at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:176)
at com.xpn.xwiki.web.SaveAction.action(SaveAction.java:193)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:213)
at 

Re: [xwiki-users] Your ideas to save number in custom object using Groovy code?

2010-04-09 Thread Valdis Vītoliņš
Investigating
http://platform.xwiki.org/xwiki/bin/view/DevGuide/DatabaseSchema and
trying other number formats got it working for float (xwikifloats
table).
Groovy code:
..
Float daudzums
daudzums = Float.parseFloat(string)
...

Actually I need only integer eg 11 in place of 11.0 but this is minor
issue.
I suspect there is some misuse between int and Integer for integer
types.

Valdis

 I'm trying to save custom object values, and can only for strings
 using advanced script from
 http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyNotificationTutorial 
 For Number type (tried integer and long), I couldn't save value in any
 way. Tried explicitly define as 
 int daudzums
 and 
 daudzums = Integer.parseInt(string)
 
 I exhausted my ideas and would like to get some more :-/
 
 Exception:

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


Re: [xwiki-users] FW: A new Wiki install

2010-03-31 Thread Valdis Vītoliņš
I'm still wondering why people run Java applications on Windows. Running
on Linux is much easier.
Don't get me wrong. In 2001 I did presentation in international
conference recommending Sharepoint as a new powerful tool for
collaboration
and knowledge exchange. But that was looong time ago, and I've switched
to Linux and wikis.

In multinational corporations there is policy developed by corporate
headquarters 10 years ago that server could be any but Windows,
though I've seen many underground/semi official Linux servers for
customer projects and that number is growing.

Xwiki runs on windows but from this mailing list I know how tricky
quirks may happen from time to time,
as developers and most of users don't test it.

Valdis


 I have been testing the stand alone enterprise on a windows x64 server 2003 
 box.(still some config and planning to iron out)
 I am ready to make the leap to the enterprise WAR with the jetty container 
 and SQL 2005 as the DB.
 What I need to know is how using X64 and X32 will affect what I do. What are 
 the limitations or advantages of using  sql server/web OS in X64 or X32.
 My production server is windows server 2003 X32?
 
 Any suggestions are most welcome.
 Many Thanks
 
 Clinton
 
 Clinton Louw / Invision Inc | Systems Engineer
 *: 2160 Satellite Blvd.Suite 225 Duluth, GA 30096
 *: 770-325-0457 | *: 
 clinton.l...@invisioninc.commailto:clinton.l...@invisioninc.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] XWiki Logo Challenge

2010-03-26 Thread Valdis Vītoliņš
+3 Proposal 19
+2 Proposal 5
+1 Proposal 16 B

Valdis

 Hi Community,
 
 The XWiki Logo proposal period is now closed, many thanks to everyone 
 who participated. It is now the time to vote the new logo amongst the 19 
 proposals available here:
 
 http://dev.xwiki.org/xwiki/bin/Community/LogoChallenge#HProposals
 
 You can send your vote:
 - on the mailing list, by replying to this e-mail
 - on twitter, in the format: #xwikilogo proposal_number
 
 Don't hesitate to nominate several proposals if you feel that they are 
 really close and you cannot decide for just one. Sometimes, a bunch of 
 fuzzy opinions can lead to a more accurate result.
 
 IMPORTANT:
 Before choosing a logo based on your personal preference, please try to 
 also ask yourself the following questions:
 - Is it distinctive?
 - Is it easy to remember and recognize?
 - Is the design scalable? Could it (or parts of it) be successfully used 
 in a 16X16 icon? Would it look good on a very large poster?
 - Can it be used (as it is, or adapted) on both light and dark backgrounds?
 - What would it look like in black and white (not just grayscale)? It's 
 ok if some details are lost, but it needs to still look attractive and 
 keep the main features.
 
 Motivating your vote also helps better understand what qualities a logo 
 evokes in people's minds.
 
 Also note that the designs are not final, the selected proposal will be 
 further tweaked and perfected, so don't discard a logo just for minor flaws.
 
 If several proposals come close to being selected, we could organize a 
 second round of voting.
 
 Please send us your votes before March 31st.
 
 
 On 03/01/2010 05:57 PM, Jean-Vincent Drean wrote:
  Hi XWikiers!
 
  It's time to inject new blood in XWiki.org. While discussing about
  improving its look  feel we thought it would be a good time to create
  a new logo for XWiki.org as it's an important part of a website
  design.
  We borrowed the current logo from XWiki.com some time ago and, in
  order to keep the distinction between the company and the Open-Source
  project clear, we think XWiki.org websites and projects need their own
  logo.
 
  As you may know, we love proposals, that's why we'd like to make the
  logo design an open challenge, anyone interested can join and a vote
  amongst the community will determine the winner. Even if the main
  purpose of the challenge is to have fun, the person whose design gets
  selected will receive XWiki goodies, including his logo printed on a
  t-shirt obviously :) The designer of the selected logo will enter the
  Hall Of Fame, and last but not least reward : the design will be
  spread wide (XWiki Enterprise is more than 1 downloads/month and
  XWiki.org web site more than 5 visits a month).
 
  The challenge takes place there:
  http://dev.xwiki.org/xwiki/bin/view/Community/LogoChallenge
 


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


[xwiki-users] Unneded Blog RSS pages

2010-03-26 Thread Valdis Vītoliņš
I'm looking at access logs and found that my site through all historical
development has 3 blog RSS feeds:

Main/BlogRss - not linked from anywhere but created in 2005
Blog/GlobalBlogRss - linked from global site RSS feed (another is
WebRSS)
Blog/BlogRss - linked from Links panel.

Probably two of them could be removed (i.e. set redirect for some time,
and remove later),

but which one conforms to standard?

Valdis


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


Re: [xwiki-users] Is it possible to upgrade a stand alone xwiki enterprise to version 2.2.3

2010-03-23 Thread Valdis Vītoliņš
All pages which are created as new will not be touched.
If you have changed existing Xwiki documents, look at
http://lists.xwiki.org/pipermail/users/2009-December/018731.html

Valdis
P.S. Where is moved content of
http://www.xwiki.org/xwiki/bin/view/FAQ/WhoCanIUpdateXWIKIFromAnOlderVersion ?


 I have a previous version (not sure which one anymore, but it is a few
 months old, not more) of XWiki Enterprise installed as standalone (my IT
 supplier is crap, I know) and I would like to upgrade to the latest version
 (i.e keeping the layout changes I made, which are light ones, but more
 importantly all the pages created already!).
 
 Is it possible?
 
 Thanks in advance,
 
 Xavier
 ___
 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] Is it possible to upgrade a stand alone xwiki enterprise to version 2.2.3

2010-03-23 Thread Valdis Vītoliņš
If customized pages are not too many, you can prepare global Xwiki
export (xar file),
upgrade xwiki instance, then import xar file and select only necessary
pages to import.
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/ImportExport

That should be manageable.

Valdis

 thanks
 
 that looks a bit complicated for me
 
 too bad ...
 
 On Tue, Mar 23, 2010 at 7:37 PM, Sergiu Dumitriu ser...@xwiki.com wrote:
 
  On 03/23/2010 07:30 PM, Valdis Vītoliņš wrote:
   All pages which are created as new will not be touched.
   If you have changed existing Xwiki documents, look at
   http://lists.xwiki.org/pipermail/users/2009-December/018731.html
  
   Valdis
   P.S. Where is moved content of
  
  http://www.xwiki.org/xwiki/bin/view/FAQ/WhoCanIUpdateXWIKIFromAnOlderVersion?
 
  Name corrected:
 
  http://www.xwiki.org/xwiki/bin/FAQ/HowCanIUpdateXWIKIFromAnOlderVersion
 
  
   I have a previous version (not sure which one anymore, but it is a few
   months old, not more) of XWiki Enterprise installed as standalone (my IT
   supplier is crap, I know) and I would like to upgrade to the latest
  version
   (i.e keeping the layout changes I made, which are light ones, but more
   importantly all the pages created already!).
  
   Is it possible?
  
   Thanks in advance,
  
   Xavier
 
 
  --
  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


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


[xwiki-users] Xwiki integration with SMS

2010-03-17 Thread Valdis Vītoliņš
I'm investigating how to integrate Xwiki with SMS sending software.
(see http://en.wikipedia.org/wiki/Short_message_peer-to-peer_protocol )
Have you any thoughts recommendations regarding to tools
(http://smppapi.sourceforge.net/ http://code.google.com/p/jsmpp/ )
approaches, etc?

Thanks in advance,
Valdis
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Is there a way to modify the values of the options in the select element (html) associated with a Static List?

2010-03-10 Thread Valdis Vītoliņš
Why don't you use database list?
IMHO this is better, especially because then user can modify values
without changing design.
So, use them if there are no other design constraints.

Valdis

 Hi,
 
 
 
 Is there a way to modify the values of the options in the select element
 (html) associated with a Static List?
 
 I noticed that the values are the same as the text that is shown on the
 list.
 
 I have:
 
 *select id=SSI-Internal.CreateIssue_0_priority
 name=SSI-Internal.CreateIssue_0_priority size=1*
 
 *  option label=Show Stopper value=Show StopperShow Stopper/option*
 
 *  option label=Must Have value=Must HaveMust Have/option*
 
 *  option label=Should Have value=Should HaveShould Have/option*
 
 *  option label=Could Have value=Could HaveCould Have/option*
 
 *  option label=Not In Roadmap value=Not In RoadmapNot In
 Roadmap/option*
 
 */select*
 
 I want something like:
 
 *select id=SSI-Internal.CreateIssue_0_priority
 name=SSI-Internal.CreateIssue_0_priority size=1*
 
 *  option value=1Show Stopper/option*
 
 *  option value=2Must Have/option*
 
 *  option value=3Should Have/option*
 
 *  option value=4Could Have/option*
 
 *  option value=5Not In Roadmap/option*
 
 */select*
 
 
 
 I am using the following code to modify the values:
 
 
 
 *valdoc = xwiki.getDocument(SSI-Internal.CreateIssue)*
 
 *ok = valdoc.updateObjectFromRequest(SSI-Internal.CreateIssue)*
 
 *
 valdoc.getxWikiClass().get(priority).getPropertyClass().setValues(“a|b|c”)
 *
 
 
 
 Thanks,
 
 
 
 Abel
 ___
 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] Questions about XWiki: translations for macros

2010-03-05 Thread Valdis Vītoliņš
- objects can not be translated (see
 XWIKI-69http://jira.xwiki.org/jira/browse/XWIKI-69).
In my words a page can not be translated if it uses a template. Using
conditions in macros is not a good workaround for end-users. Is there
another way to implement this feature ? Do you have any recommendations ?
The approach should be similar to used in Livetable macro. See
http://code.xwiki.org/xwiki/bin/view/Macros/LiveTableMacro

Then in some xwiki page e.g. /xwiki/bin/view/Custom/MacroTranslations
create content:
...
field=Translation
...
hopefully it will work if you will translate page in necessary languages

open 
/xwiki/bin/admin/XWiki/XWikiPreferences?editor=globaladminsection=Programming 
and in the field Internationalization Document Bundles set: 
Custom.MacroTranslations


N.B. to Xwikiers

Actually such approach should be supported and documented for
internationalization of new/staged/custom/contributed macros.

Valdis

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


[xwiki-users] Localization testing howto for review

2010-03-01 Thread Valdis Vītoliņš
Please review localization testing page
http://l10n.xwiki.org/xwiki/bin/view/L10N/TranslationTesting
Update/move (add links to it) where it is necessary.

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


Re: [xwiki-users] [Proposal] Improving the User Guide documentation

2010-03-01 Thread Valdis Vītoliņš
One of problem with xwiki is that resources are quite distributed.
Due to virtual wikis for www.xwiki.com, www.xwiki.org, dev.xwiki.org,
l10n.xwiki.org
even I am confused (though I have started using xwiki quite long time
ago)
where to find info (except for google) and where to put new entries
(except for comments).

So I see 2 options here, 
1. aggressively normalized content chunks with (as much as possible)
links between them
(it seems current approach but needs more normalizing and linking).
2. very centralized approach with one super entry point (domain
name/page/space),
where all necessary info can be found.

Valdis 


 On Mar 1, 2010, at 11:08 AM, Thomas Mortagne wrote:
 
  On Mon, Mar 1, 2010 at 10:58, Silvia Rusu silvia.r...@xwiki.com wrote:
  
  Hello,
  
  I would like to propose we update the User Guide documentation so that it's
  more helpful to users that start using XWiki, whether they are programmers
  or not. The purpose of the guide is to get users up to speed with the XWiki
  basics, to gather these resources in one place.
  
  You can find my proposal for the user guide here:
  http://dev.xwiki.org/xwiki/bin/view/Drafts/UserGuide
  
  Please feel free to make suggestions for other pages to be included or
  changes you think should be made. Remember this is not a TOC for all the
  documentation, but rather a selection of links to help you get started with
  XWiki.
  
  It should maybe be renamed as Get Started with XWiki instead of
  User Guide then.
 
 Actually it's meant to be a full User Guide to replace the current page at 
 http://enterprise.xwiki.org/xwiki/bin/view/UserGuide/
 (the existing Getting Started guide would disappear).
 
 Basically the idea is to have a single user guide that starts with some basic 
 feature explanations (the getting started part) and that increases in 
 complexity as you progress through the guide.
 
 Thanks
 -Vincent
 
  Thanks,
  Silvia
  
  -
  Silvia Rusu
 ___
 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] Where to improve the translation, resource file or l10i.xwiki.org

2010-02-28 Thread Valdis Vītoliņš
 Hi,
 
 I have some question about translation.
 
 1. Is the ApplicationResources_zh.properties exported from
 l10i.xwiki.org? But I find the resources file in xwiki 2.2.1 release
 package is not the same as the resource file I get from
 l10i.xwiki.org.

*.properties file generated from l10i.xwiki.org is the most recent one.
IMHO it is regularly 
imported to the xwiki releases, but if active localization is going, it
is always older.

 2. I think the (Total translations = Empty translations + Outdated
 translations + Translations to review), but in the site I found it is
 not equal all the time, for example,
 Simplified Chinese (zh),
   Total translations: 2425
   Empty translations: 477
   Outdated translations: 29
   Translations to review: 1454
 477 + 29 + 1454 = 1960 != 2425. Does this mean the missing 465 items
 are Validated? What is the relationship between total empty and
 outdate translations.

I'm not mathematician and don't care abut sums. I care only care about
empty and outdated ones.

 3. If I want to improve the translation. Do I modify the resource file
 and submit a patch or I just edit l10i.xwiki.org.

IMHO xwikians don't have elegant tool and they do it manually, so
incremental updates are better done online
in l10i.xwiki.org site.

Valdis

 Thanks.
 
 Wang Ning
 ___
 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] Search for translations

2010-02-24 Thread Valdis Vītoliņš
  Actually I'd like to change it once more because for me searching by
  (poorly) translated text, not the key is more usual. What do you think?
 
  Yes good idea. I could easily do a extended search form I guess like:
 
  o search in translated
  o search in original
  o search in key

It is already implemented in
http://l10n.xwiki.org/xwiki/bin/view/L10N/Search
I  propose to change Search translation field shown in home page 
from key to translated text in panel
http://l10n.xwiki.org/xwiki/bin/view/L10NCode/SearchPanel 
(I have no edit rights to do it myself).


 Hmm i never tried the search before now and indeed it's very slow i
 will see if i can do something to improve it.


Good luck in your investigation!
Valdis
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Translations discussion

2010-02-24 Thread Valdis Vītoliņš
Will the new page
http://l10n.xwiki.org/xwiki/bin/view/Discussions/German
be ok?

Valdis

 Hi,
 
 id also like to suggest, that we come to some form of cooperation in doing
 the german translation since i did most part of it till yet (and hope that
 not all of it is incorrect german :).
 
 One question to the developers is there a possibility to have a editable
 page or space in the translation wiki wher translators could share their
 thougts and keep a terminology for their language.
 
 Thanks
 hel.
 
 
 
 -
 semantic-web.hel.at
 h...@hel.at
 


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


Re: [xwiki-users] Getting a user preference as a list

2010-02-23 Thread Valdis Vītoliņš
Method to get chosen list is .getListValue('value')

Valdis

 Hello,
 
 I'm trying to get the value of a property in XWikiPreferences of type 
 Database List that has mutiple-select capability. When I do 
 $xwiki.getUserPreference(property_name), it returns a string that is a 
 representation of the value, so something like:
 
 [Value1, Value2, Value4]
 
 However, I need this to be a list so I can check if 
 property.contains(Value4). Is there an easy way to get a list from a 
 preference, or do I need to go into the XWikiPreferences page, grab the 
 object and get the value from there?
 
 Thanks,
 
 Joshua Rieken
 System Software Developer
 
 Reynolds and Reynolds
 6700 Hollister | Houston, Texas 77040
 office 713.718.1800 ext. 72459 | mobile 806.584.3004
 joshua_rie...@reyrey.com
 
 MAKING BUSINESS BETTER.
 
 NOTE: The information contained in this e-mail is personal and confidential 
 and may be protected by the attorney-client privilege and/or the work product 
 doctrine. It is for the sole use of the intended recipient. Any review, 
 reliance, or distribution by others or forwarding without express permission 
 is strictly prohibited. If you are not the intended recipient, please contact 
 the sender and delete all copies.
 
 
 
 ___
 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] Group Access Rights, File Retrieve, and Livetable Options

2010-02-19 Thread Valdis Vītoliņš
There is another macro #gridresultwithfilter()  similar to live table,
but with query options.
http://dev.xwiki.org/xwiki/bin/view/Drafts/XWikiGridComponentTutorial
http://platform.xwiki.org/xwiki/bin/view/DevGuide/LiveTable

Though it is not documented and I cannot prepare working examples.

For search criteria testing probably will help
http://code.xwiki.org/xwiki/bin/view/Snippets/HQLQueryTesterSnippet

Keep notified about your investigations.

Valdis

 Hey,
 
 I have a few questions on a variety of topics
 
 1. Is there a method that returns the access rights for a given group? I 
 tried to use method hasAccessLevel to return the access rights (at the group 
 level) but it seems that the method only applies for users and not groups.
 To expand on this thought, where are all the group names stored? I've been 
 using hasAccessLevel using XWiki.{groupname} as the parameter, so I am not 
 sure whether I am calling it right.
 
 2. It seems that no one has addressed Mike Davis's question, but since I also 
 need to do something similar to what he brought up, I'd like to bring it up 
 again:
 
 Mike Davis said:
  2) Is there a way to remotely access a sql 2005 database from an xwiki
 script?  A groovy wrapper for java jdbc or something.  I want to query
 the database and put the results in a livetable, but the db lives on a
 completely separate server.
 
 I understand that accessing files depends on the web server you are running 
 xwiki on, but I am almost clueless on how to access information on another 
 server from a web server. I'm not sure if I am asking the right people, but 
 if someone would like to enlighten me, I'd greatly appreciate it.
 
 3. Regarding Livetable, I need to create a (huge) table that includes the 
 User field and well as the AllDocs field. What I am trying to do is create a 
 table that will display the access rights for a given user and given 
 document. Livetable is obviously the best option for this kind of task 
 because of its organization, but it seems that I can only use one classname 
 and either display AllDocs or Users on the livetable, not both. 
 
 Thank you,
 
 Felix
 
 
   
 
 ___
 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] Search criteria for Livetable macro

2010-02-18 Thread Valdis Vītoliņš
What is syntax to add filtering criteria for livetable macro?
http://code.xwiki.org/xwiki/bin/view/Macros/LiveTableMacro
http://platform.xwiki.org/xwiki/bin/view/DevGuide/LiveTable

It seems there should be possibility to add something for $options = ...
part.

Thanks,
Valdis


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


Re: [xwiki-users] Search criteria for Livetable macro

2010-02-18 Thread Valdis Vītoliņš
It seems what I need,
though I couldn't find working templates for back-end macros.
From pages
http://dev.xwiki.org/xwiki/bin/view/Drafts/XWikiGridComponentTutorial
http://platform.xwiki.org/xwiki/bin/view/DevGuide/LiveTable

I got GridExtensionResultMacros and LiveTableResultsMacros, though
neither  worked for me.

Where can I get necessary macros, to get it working?
(I use xwiki 2.1.1.25889)

Valdis


 If I understand the question correctly, the solution is to insert your 
 own FROM and WHERE info in the search query, as follows:
 
 ...
 #gridresultwithfilter( $request.collist.split(,) , StringProperty 
 examplename and examplename.id.id=obj.id and 
 examplename.name='examplename' and doc.space='Tutorials' and 
 doc.name'WebHome' and doc.name'WebPreferences')
 ...
 
 The last 2 parameters are the ones you're looking for. Be sure to add 
 the initial comma in the FROM parameter and the initial and in the 
 WHERE parameter.
 
 See this page for more info (though I think it needs to be expanded with 
 a more exhaustive list of queryable object fields):
 
 http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples
 
 -Joshua
 
 Valdis Vītoliņš wrote:
  What is syntax to add filtering criteria for livetable macro?
  http://code.xwiki.org/xwiki/bin/view/Macros/LiveTableMacro
  http://platform.xwiki.org/xwiki/bin/view/DevGuide/LiveTable
  
  It seems there should be possibility to add something for $options = ...
  part.
  
  Thanks,
  Valdis
  
  
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users


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


Re: [xwiki-users] Adding custom object using Xwiki REST service

2010-02-18 Thread Valdis Vītoliņš
It can be done in once by setting all object properties (including
template, field names an dvalues).

At first look at code of the xwiki generated submission form, and get
names of all fields.
Then add name=value for properties (e.g. using curl with GET):
curl -u user:password -d
parent=MyWood.Iszinastemplate=Custom.IszinaTemplatesheet=1spaceName=MyWoodCustom.IszinaClass_0_datums=18.02.2010+18%3A06%3A44Custom.IszinaClass_0_darbinieks=%24userCustom.IszinaClass_0_tips=Custom.IenakosaCustom.IszinaClass_0_telefons=26563205Custom.IszinaClass_0_teksts=docName=S-100218-180644action_save=Saglab%C4%81t+un+skat%C4%ABt
  http://localhost/xwiki/bin/inline/MyWood/S-100218-180645

Do not forget to include ...action_save=Button_label at the end.
If list boxes are used, use ids for them, not label values.
see more http://curl.haxx.se/ 

Valdis

 Now I have more tricky question -- how to add custom object using Xwiki
 REST service.
 By browsing existing ones I assume, I can create linked custom object
 using POST before, and get object id.
 Then I add wiki document using PUT and set relation to previously
 created object.
 
 Is it right approach to test?
 Are there more recommendations beside
 http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI
 
 Thanks,
 Valdis
 ___
 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] Adding custom object usinf groovy or velocity

2010-02-18 Thread Valdis Vītoliņš
Following velocity allows to create simpe xwiki document:
#set ($mydoc = $xwiki.getDocument(Sandbox.Test1))
$mydoc.setContent(sdfsdf)
$mydoc.save()

But How can I create custom object?

http://hans.gerwitz.com/projects/snipsnap-to-xwiki
shows some ideas but I can't make it working for me.

Another (awkward) way would be executing external curl command.
How can I do this?

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


  1   2   >