Re: [xwiki-users] Documents and classes design question

2010-09-20 Thread Raluca Stavro
On Sat, Sep 18, 2010 at 12:38 PM, [Ricardo Rodriguez] eBioTIC.
ricardo.rodrig...@ebiotic.net wrote:
Hi,

You can use translations (See
http://platform.xwiki.org/xwiki/bin/view/DevGuide/InternationalizingApplications).
For class properties, the translation format is like this:

ClassSpaceBane.ClassDocName_propertyName=A_Translation_Text

So you need a single document with multiple translations.

Raluca.

 Hi!

 Caleb James DeLisle wrote:
 Each document only contains one set of objects, not one per
 translation language.


 Thus, please, how do you propose to manage/store information that
 depends on location? For instance, a given property of a given class has
 different values/translations. For instance, commonName in the class
 Species has a value in Spanish, another one in English and it is
 expected to have a different one for any new translation. It seems to me
 that this forces to store that value in the document body or to create a
 new property for each new translation.

 Any idea will be welcome!!! Thanks!

 Ricardo

 --
 Ricardo Rodríguez
 CTO
 eBioTIC.
 Life Sciences, Data Modeling and Information Management Systems

 ___
 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] Documents and classes design question

2010-09-20 Thread Raluca Stavro
On Mon, Sep 20, 2010 at 9:29 AM, Raluca Stavro raluca.moro...@xwiki.com wrote:
 On Sat, Sep 18, 2010 at 12:38 PM, [Ricardo Rodriguez] eBioTIC.
 ricardo.rodrig...@ebiotic.net wrote:
 Hi,

 You can use translations (See
 http://platform.xwiki.org/xwiki/bin/view/DevGuide/InternationalizingApplications).
 For class properties, the translation format is like this:

 ClassSpaceBane.ClassDocName_propertyName=A_Translation_Text

ClassSpaceName.ClassDocName_propertyName=A_Translation_Text

Raluca.


 So you need a single document with multiple translations.

 Raluca.

 Hi!

 Caleb James DeLisle wrote:
 Each document only contains one set of objects, not one per
 translation language.


 Thus, please, how do you propose to manage/store information that
 depends on location? For instance, a given property of a given class has
 different values/translations. For instance, commonName in the class
 Species has a value in Spanish, another one in English and it is
 expected to have a different one for any new translation. It seems to me
 that this forces to store that value in the document body or to create a
 new property for each new translation.

 Any idea will be welcome!!! Thanks!

 Ricardo

 --
 Ricardo Rodríguez
 CTO
 eBioTIC.
 Life Sciences, Data Modeling and Information Management Systems

 ___
 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 do I for divide one string I need only the part of the user name (Admin) instead of XWiki.Admin

2010-09-20 Thread Raluca Stavro
On Sat, Sep 18, 2010 at 12:04 PM, [Ricardo Rodriguez] eBioTIC.
ricardo.rodrig...@ebiotic.net wrote:
 Hi!

 Caleb James DeLisle wrote:
 There are various ways with different levels of code cleanliness
 since all user names start off with 'XWiki.' you could use 
 $context.getUser().substring(6)

 If you're looking for the user's common name instead of the user name, you 
 might want to look at
 $xwiki.getUserName
 http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xwiki/api/XWiki.html#getUserName%28java.lang.String%29


 Please, as $context is a class and getUser() is a method of that class,
 what is .substring()?

$context.getUser() returns a String representing the full name of the
current user document (ex: XWiki.RicardoRodriguez).
This is why, all the String methods can be applied on the returned value.


 Let's call *name* to the answer to the previous question. Please, where
 are the possible *name* that could be used with a given method of a
 given class?

 I'm browsing XWiki API looking for a way of doing the same you have
 proposed with .getUser() but with the name of a document. That is, how
 to get Document instead Space.Document.

 For instance, here...

 #set($results=$xwiki.searchDocuments($query))
 #foreach($item in $results)
 #set ($itemdoc = $xwiki.getDocument($item))
 * [$itemdoc$itemdoc],  ~~$itemdoc.display('Genrus')
 $itemdoc.display('Species')~~br/

 $itemdoc shows Space.Document. How do I get just Document?

You have to get the name of the document:
$itemdoc.name

Raluca.


 Please, excuse me if this questions are too basic! Thanks for your help!

 --
 Ricardo Rodríguez
 CTO
 eBioTIC.
 Life Sciences, Data Modeling and Information Management Systems

 ___
 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 do I for divide one string I need only the part of the user name (Admin) instead of XWiki.Admin

2010-09-20 Thread Paul Libbrecht

Le 20 sept. 2010 à 08:44, Raluca Stavro a écrit :

 If you're looking for the user's common name instead of the user name, 
 you might want to look at
 $xwiki.getUserName
 http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xwiki/api/XWiki.html#getUserName%28java.lang.String%29
 
 
 Please, as $context is a class and getUser() is a method of that class,
 what is .substring()?
 
 $context.getUser() returns a String representing the full name of the
 current user document (ex: XWiki.RicardoRodriguez).
 This is why, all the String methods can be applied on the returned value

At debugging time, I make heavy use of

  $.getClass()
or the failsafe variant:
  $!.getClass() 

(which cannot be used as $.class) so as to recognize the class of an object 
hence know the available properties.
Of course, the javadoc also helps.

paul


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


Re: [xwiki-users] Migrating Xwiki

2010-09-20 Thread Kaya Saman
Many thanks for the response Ricardo :-)

On 19/09/2010 00:30, [Ricardo Rodriguez] eBioTIC. wrote:
 Hi Kaya,

 Kaya Saman wrote:

 [...]
  
 Yes, I think it is possible to perform a migration, even thought I've
 never done that. But, yes, I've moved XWiki installations from one
 server to the other without much difficulty. Provided both systems run
 the same XWiki release, the problems could only arise from the
 conversion of the Postgresql database to MySQL. I don't think the
 servlet container will do a difference once you adjust hibernate.cfg.xml
 accordingly.


I can keep the Postgres database that isn't a problem as it's available 
on all platforms. However, when you say that Xwiki should be the same 
release I was hoping to just copy the webapps/xwiki container as if I'm 
not mistaken the xwiki.war file that I'm using gets extracted by 
Tomcat/Glassfish or other which fully contains the Xwiki instance minus 
the DB??.

Moving that should keep everything in check with a few additions to the 
hibernate.cfg.xml file if changing database! .I presume as I need to 
test this out fully first before things blow up in my face!

 [...]

 Thus, by fully backing up your database and once converted to the system
 of your choice and by moving the concerned /webapps directory to the new
 servlet container, functioning must be restored with a minor number of
 adjustments.


Ok, so I think you are explaining exactly the same thing as I've just 
put above; meaning that I've got the right strategy in mind.

 Please, take into account that I've never moved XWiki installation
 across systems, only between boxes running the same servlet containers
 and relational database manager systems. Many times, different releases
 of those, but always the same products (MySQL and Tomcat here). I'm sure
 developers and/or more skilled users will correct this contents and add
 useful information.


I'll attempt with Glassfish but since I don't have any experience with 
it, I don't know exactly how it deals with applications installed in it. 
If not I'll switch back to Tomcat/Postgres combo but I'm sure running 
the system on Solaris or Linux will be much better then my current BSD 
install as Java seems to spin up the CPU to 100% meaning that from what 
I've read and the 'top' code of uxtn that I'm getting, tells me that the 
threads are getting stuck, not being able to address the memory 
properly. Means I'll have to file a bug report with ISC and then debug 
Java - something which I'm not really capable of doing since I'm not a 
programmer and have no idea about Java.

 Hope this helps!

 Ricardo


Yep it helps a lot :-)

Thanks again,


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


Re: [xwiki-users] Impossible to create users and groups in a slave wiki of XEM 2.4

2010-09-20 Thread Maxime Mathieu
Trying to reproduce the issue encountered last week.

The steps I follow :
Fresh MySQL DB with max_allowed_packet=64M.
Creation of the xwiki database and the xwiki user with the right privileges.
2.4 SNAPSHOT replace the xwiki directory of the default installation
(xwiki-enterprise-manager-mysql-2.4.zip)
Configure xwiki.cfg, xwiki.virtual=1 and declaration of the 2 XEM plugins
(all the other parameters with their default value, farm in domain rule).
Configure hibernate.cfg.xml to access the MySQL DB.
Add the 2 XEM plugins and the MySQL JDBC driver in WEB-INF/lib.
Start XWiki.
Browse http://localhost:8080/xwiki/
Database tables created OK.
Go to Xwiki  Administration
Upload and Import of the xwiki-enterprise-manager-wiki-administrator-2.4.xar
Login as Admin
Browse http://localhost:8080/xwiki/bin/view/*XemManager/Install*
Click on Yes to complete the installation of XEM
XEM Installation success is displayed
Creation of a user in the master wiki OK, user added automatically in the
XWikiAllGroup.
Browse http://localhost:8080/xwiki/bin/view/WikiManager/
Edit (objects) of the templatexe settings to modify the Server property,
from templatexe.template.local to templatexe.
Browse http://templatexe:8080/xwiki/ (templatexe = 127.0.0.1 in etc/host)
Login as Admin
At this time, the xwiki.log displays an error :
[http://templatexe:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] ERROR
xwiki.XWikiAuthServiceImpl  - Failed to check password
java.lang.NullPointerException
at
com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkPassword(XWikiAuthServiceImpl.java:560)
at
com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.authenticate(XWikiAuthServiceImpl.java:474)
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.authenticate(MyFormAuthenticator.java:284)
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:204)
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:187)
at
com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:240)
at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:4070)
at
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:169)
at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:4083)
at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:5296)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:190)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)

But I'm connected ! So I continue.
Go to Templatexe  Administration
Go to Users
Add a new user in the templatexe wiki OK (Yeah, I can't do that last week !)
Go to Groups
Edit XWikiAdminGroup (with the pencil)
Add my new local user (the suggestion tooltip help me), click on ADD button,
nothing happens.
Try to add my global user.
Select Global in the list box, no suggestion (No results!), type in
XWiki.jones, click on ADD button, nothing happens.

In addition, I have noticed that I can't connect to the templatexe with my
local user. The same exception occurs in the log.
No problem with the user defined in the main wiki to access this main wiki.

If you want, I can send you the whole xwiki.log.

Best regards,
Maxime Mathieu
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Impossible to create users and groups in a slave wiki of XEM 2.4

2010-09-20 Thread Thomas Mortagne
On Mon, Sep 20, 2010 at 11:10, Maxime Mathieu
le.genie.logic...@gmail.com wrote:
 Trying to reproduce the issue encountered last week.

 The steps I follow :
 Fresh MySQL DB with max_allowed_packet=64M.
 Creation of the xwiki database and the xwiki user with the right privileges.
 2.4 SNAPSHOT replace the xwiki directory of the default installation
 (xwiki-enterprise-manager-mysql-2.4.zip)
 Configure xwiki.cfg, xwiki.virtual=1 and declaration of the 2 XEM plugins
 (all the other parameters with their default value, farm in domain rule).
 Configure hibernate.cfg.xml to access the MySQL DB.
 Add the 2 XEM plugins and the MySQL JDBC driver in WEB-INF/lib.
 Start XWiki.
 Browse http://localhost:8080/xwiki/
 Database tables created OK.
 Go to Xwiki  Administration
 Upload and Import of the xwiki-enterprise-manager-wiki-administrator-2.4.xar
 Login as Admin
 Browse http://localhost:8080/xwiki/bin/view/*XemManager/Install*
 Click on Yes to complete the installation of XEM
 XEM Installation success is displayed
 Creation of a user in the master wiki OK, user added automatically in the
 XWikiAllGroup.
 Browse http://localhost:8080/xwiki/bin/view/WikiManager/
 Edit (objects) of the templatexe settings to modify the Server property,
 from templatexe.template.local to templatexe.
 Browse http://templatexe:8080/xwiki/ (templatexe = 127.0.0.1 in etc/host)
 Login as Admin
 At this time, the xwiki.log displays an error :
 [http://templatexe:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] ERROR
 xwiki.XWikiAuthServiceImpl      - Failed to check password
 java.lang.NullPointerException
    at
 com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkPassword(XWikiAuthServiceImpl.java:560)
    at
 com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.authenticate(XWikiAuthServiceImpl.java:474)
    at
 com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.authenticate(MyFormAuthenticator.java:284)
    at
 com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:204)
    at
 com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:187)
    at
 com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:240)
    at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:4070)
    at
 com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:169)
    at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:4083)
    at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:5296)
    at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:190)
    at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)

 But I'm connected ! So I continue.
 Go to Templatexe  Administration
 Go to Users
 Add a new user in the templatexe wiki OK (Yeah, I can't do that last week !)
 Go to Groups
 Edit XWikiAdminGroup (with the pencil)
 Add my new local user (the suggestion tooltip help me), click on ADD button,
 nothing happens.
 Try to add my global user.
 Select Global in the list box, no suggestion (No results!), type in
 XWiki.jones, click on ADD button, nothing happens.

 In addition, I have noticed that I can't connect to the templatexe with my
 local user. The same exception occurs in the log.
 No problem with the user defined in the main wiki to access this main wiki.

What you should really test is if you have a class XWiki/XWikiUsers
since that's the real issue.


 If you want, I can send you the whole xwiki.log.

Yes that would be nice.


 Best regards,
 Maxime Mathieu
 ___
 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] Impossible to create users and groups in a slave wiki of XEM 2.4

2010-09-20 Thread Maxime Mathieu
The template wiki does NOT contain the XWikiUsers, XWikiRights, XWikiGroups
classes.

What you should really test is if you have a class XWiki/XWikiUsers
 since that's the real issue.

 
  If you want, I can send you the whole xwiki.log.

 Yes that would be nice.

 I will send it to you at your xwiki email.

Best regards,
Maxime Mathieu
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Impossible to create users and groups in a slave wiki of XEM 2.4

2010-09-20 Thread Thomas Mortagne
On Mon, Sep 20, 2010 at 12:07, Maxime Mathieu
le.genie.logic...@gmail.com wrote:
 The template wiki does NOT contain the XWikiUsers, XWikiRights, XWikiGroups
 classes.

 What you should really test is if you have a class XWiki/XWikiUsers
 since that's the real issue.

 
  If you want, I can send you the whole xwiki.log.

 Yes that would be nice.

 I will send it to you at your xwiki email.

I was hopping to find some error indicating why wiki initalization did
not worked but nothing :(

I'm checking if i can find some places to put more debug log.


 Best regards,
 Maxime Mathieu
 ___
 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


[xwiki-users] XWiki users visibility

2010-09-20 Thread Andrea Belli
Hi all,
I missed something about XWiki users object visibility.
I put in a wiki page the velocity script for implementing the Live table sample 
with XWikiUser objects.
It works if I log in with Admin rights.

 If I log in with a user without Admin rights (Programming rights are ok) the 
live table shows no elements.
Thank you a lot,
Andrea


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


Re: [xwiki-users] XWiki users visibility

2010-09-20 Thread Guillaume Lerouge
Hi,

yes, it's a known issue, it's because of the configuration of hidden spaces.
There's a way to override them on a page locally, I just don't remember it.

You can look in xwikivars.vm for hiddenSpaces to find out more about that.
Maybe you can set the variable so as not to include the XWiki space or
something...

Guillaume

On Mon, Sep 20, 2010 at 15:24, Andrea Belli abe...@expertsystem.it wrote:

 Hi all,
 I missed something about XWiki users object visibility.
 I put in a wiki page the velocity script for implementing the Live table
 sample with XWikiUser objects.
 It works if I log in with Admin rights.

  If I log in with a user without Admin rights (Programming rights are ok)
 the live table shows no elements.
 Thank you a lot,
 Andrea


 ___
 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] [myxwiki] new wiki request

2010-09-20 Thread Norman Rides
Dear Colleagues,

 

I am requesting assistance with setting up an xwiki to create a learning
environment for a project I manage. Within the xwiki there will be eight
Business Development Managers from small charitable organisations who
provide Community Transport. The aim is to share learning through the
xwiki and create a shared body of knowledge which will then be made
available through the CTA to all rural community transport providers.   

 

Norman Rides

Rural Social Enterprise Programme Manager

Community Transport Association UK 

4th Floor | Kingsgate | 1 Bravington's Walk

London N1 9AE

 

020 7278 2528 | 07747 020 369

P Please consider the environment before printing this email.

 


#
This email is intended solely for the addressee and is strictly
confidential.  If you are not the intended recipient please contact
Community Transport Association UK (CTA) immediately on 0161 351 1475
quoting the name of the sender and the email address, then delete it
from your system. You must not disclose, copy or distribute its contents
to any other person nor use its contents in any way or you may be acting
unlawfully.   

The CTA reserves the right to intercept any e-mails or other
communication for permitted purposes in accordance with the current
legislation which you send to, or receive from, any of the employees or
agents of the CTA via its telecommunication systems. By so corresponding
you also give your consent to CTA monitoring and recording any
correspondence using these systems. 

Unless stated otherwise by an authorised individual, nothing contained
in this e-mail is intended to create binding legal obligations between
us. We have checked for viruses but accept no liability arising as a
result of this email. 

Community Transport Association UK is a Charitable Company Limited by
Guarantee 
Registered in Cardiff no. 1985361 
Registered Office: Highbank, Halton Street, Hyde, Cheshire SK14 2NY. 
Registered as a charity in England and Wales no. 100
Charity registered in Scotland no. SC038518
#
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Impossible to create users and groups in a slave wiki of XEM 2.4

2010-09-20 Thread Thomas Mortagne
I think i found what is wrong. I just created
http://jira.xwiki.org/jira/browse/XWIKI-5511 and trying to find a
clean fix.

On Mon, Sep 20, 2010 at 13:00, Thomas Mortagne
thomas.morta...@xwiki.com wrote:
 On Mon, Sep 20, 2010 at 12:07, Maxime Mathieu
 le.genie.logic...@gmail.com wrote:
 The template wiki does NOT contain the XWikiUsers, XWikiRights, XWikiGroups
 classes.

 What you should really test is if you have a class XWiki/XWikiUsers
 since that's the real issue.

 
  If you want, I can send you the whole xwiki.log.

 Yes that would be nice.

 I will send it to you at your xwiki email.

 I was hopping to find some error indicating why wiki initalization did
 not worked but nothing :(

 I'm checking if i can find some places to put more debug log.


 Best regards,
 Maxime Mathieu
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




 --
 Thomas Mortagne




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


Re: [xwiki-users] GeoGebra Applet is not working

2010-09-20 Thread Erica Usui
about:plugins? Where do i find it?

On linux evironment the online geogebra doesn't work:
http://www.geogebra.org/webstart/geogebra.html
 http://www.geogebra.org/webstart/geogebra.htmlSo i guess there isn't much
i can do to make it work on xwiki when using linux.
=\

2010/9/17 Paul Libbrecht p...@activemath.org

 That tastes like a traditional applet issue.

 What does about:plugins say?

 paul


 Le 16 sept. 2010 à 23:50, Erica Usui a écrit :

  it actually works, your code, but it doesn't work on linux.
  Even on Geo Gebra Website... if i'm on linux environment, it doesn't
 work.

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




-- 
Atenciosamente,
Erica Usui.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] GeoGebra Applet is not working

2010-09-20 Thread Paul Libbrecht
Erica,

this has nothing to do with XWiki.

(geogebra.org is also not xwiki)

It has to do with the installation of java on that linux box.
I would recommend you re-install java.

paul


Le 20 sept. 2010 à 17:17, Erica Usui a écrit :

 about:plugins? Where do i find it?
 
 On linux evironment the online geogebra doesn't work:
 http://www.geogebra.org/webstart/geogebra.html
 http://www.geogebra.org/webstart/geogebra.htmlSo i guess there isn't much
 i can do to make it work on xwiki when using linux.
 =\
 
 2010/9/17 Paul Libbrecht p...@activemath.org
 
 That tastes like a traditional applet issue.
 
 What does about:plugins say?
 
 paul
 
 
 Le 16 sept. 2010 à 23:50, Erica Usui a écrit :
 
 it actually works, your code, but it doesn't work on linux.
 Even on Geo Gebra Website... if i'm on linux environment, it doesn't
 work.
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 
 
 
 -- 
 Atenciosamente,
 Erica Usui.
 ___
 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] GeoGebra Applet is not working

2010-09-20 Thread Erica Usui
Ok!
Thank you!

Erica.

2010/9/20 Paul Libbrecht p...@activemath.org

 Erica,

 this has nothing to do with XWiki.

 (geogebra.org is also not xwiki)

 It has to do with the installation of java on that linux box.
 I would recommend you re-install java.

 paul


 Le 20 sept. 2010 à 17:17, Erica Usui a écrit :

  about:plugins? Where do i find it?
 
  On linux evironment the online geogebra doesn't work:
  http://www.geogebra.org/webstart/geogebra.html
  http://www.geogebra.org/webstart/geogebra.htmlSo i guess there isn't
 much
  i can do to make it work on xwiki when using linux.
  =\
 
  2010/9/17 Paul Libbrecht p...@activemath.org
 
  That tastes like a traditional applet issue.
 
  What does about:plugins say?
 
  paul
 
 
  Le 16 sept. 2010 à 23:50, Erica Usui a écrit :
 
  it actually works, your code, but it doesn't work on linux.
  Even on Geo Gebra Website... if i'm on linux environment, it doesn't
  work.
 
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 
 
 
 
  --
  Atenciosamente,
  Erica Usui.
  ___
  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




-- 
Atenciosamente,
Erica Usui.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki RESTful API: TAGS and unicode

2010-09-20 Thread Fabio Mancinelli
On 09/16/2010 10:24 PM, volker wrote:
 Hello Fabio  friends,

  i tried to use curl and the RESTful API to

  1) create a page: ok
  2) upload a file/image: ok
  3) create some TAGS to the page: 

  1) and 2) is working, but 3 is not working. What is wrong in 3)?

  What about unicode/Umlaut in page-name, tag-name and
  upload-filename. I have some problems with öäü-German and
  øæå-Norwegian.

Hi Volker,

3) doesn't work because the .../tags resource doesn't support PUT.
At the beginning this resource was just meant to be a shortcut to list 
tags, not to modify them. But indeed it would be nice to allow the user 
to modify tags through this resource. You can open an improvement 
request on the JIRA for that.

As a workaround you can manipulate the TagClass object to modify tags:

curl -u Admin:admin -X PUT -H Content-type: text/plain --data-ascii 
foo,bar 
http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome/objects/TagClass/0/properties/tags

If the reply is a 404, this means that the TagClass object doesn't exist 
on the page. In this case you need to send an additional request to 
create the object:

curl -u Admin:admin -X POST -H Content-type: 
application/x-www-form-urlencoded --data-ascii 
className=TagClassproperty#tags=foo,bar 
http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/WebHome/objects

Concerning the unicode/Umlaut problem what's exactly the issue?

Hope this helps,
Fabio
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How do I for divide one string I need only the part of the user name (Admin) instead of XWiki.Admin

2010-09-20 Thread [Ricardo Rodriguez] eBioTIC.
Thanks!

Raluca Stavro wrote:
 Please, as $context is a class and getUser() is a method of that class,
 what is .substring()?
 

 $context.getUser() returns a String representing the full name of the
 current user document (ex: XWiki.RicardoRodriguez).
 This is why, all the String methods can be applied on the returned value.

   

Thus, all these methods are the ones documented here..

http://download.oracle.com/javase/1.4.2/docs/api/java/lang/String.html

Is that right?

 Let's call *name* to the answer to the previous question. Please, where
 are the possible *name* that could be used with a given method of a
 given class?

 I'm browsing XWiki API looking for a way of doing the same you have
 proposed with .getUser() but with the name of a document. That is, how
 to get Document instead Space.Document.

 For instance, here...

 #set($results=$xwiki.searchDocuments($query))
 #foreach($item in $results)
 #set ($itemdoc = $xwiki.getDocument($item))
 * [$itemdoc$itemdoc],  ~~$itemdoc.display('Genrus')
 $itemdoc.display('Species')~~br/

 $itemdoc shows Space.Document. How do I get just Document?
 

 You have to get the name of the document:
 $itemdoc.name
   

That is far clear: once I get in $itemdoc a document object I can 
retrieve its properties by using $itemdoc.property syntax. I can't use 
.substring() (or any other String method) with $itemdoc simply because 
$itemdoc is not a string. Am I right?

Please, accept my apologies if this questions are too basic! Thanks!

-- 
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems

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


Re: [xwiki-users] Migrating Xwiki

2010-09-20 Thread [Ricardo Rodriguez] eBioTIC.
Hi!

Kaya Saman wrote:
 I can keep the Postgres database that isn't a problem as it's available 
 on all platforms. However, when you say that Xwiki should be the same 
 release I was hoping to just copy the webapps/xwiki container as if I'm 
 not mistaken the xwiki.war file that I'm using gets extracted by 
 Tomcat/Glassfish or other which fully contains the Xwiki instance minus 
 the DB??.

   

Minus the DB, and any edit file! Be careful with xwiki.cfg, 
hibernate.cfg.xml, any edit Velocity (*.vm) template and any library you 
have copied to WEB-INF/lib (for instance, MySQL connector must be copied 
there to allow XWiki to access a MySQL database).

 Moving that should keep everything in check with a few additions to the 
 hibernate.cfg.xml file if changing database! .I presume as I need to 
 test this out fully first before things blow up in my face!

   
I insist: remember to back-up xwiki.cfg and take not of what 
extra-libraries you are using!

Cheers,

Ricardo

-- 
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems

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


Re: [xwiki-users] How do I for divide one string I need only the part of the user name (Admin) instead of XWiki.Admin

2010-09-20 Thread [Ricardo Rodriguez] eBioTIC.
Thanks, Paul!

Paul Libbrecht wrote:
   $.getClass()
 or the failsafe variant:
   $!.getClass() 

 (which cannot be used as $.class) so as to recognize the class of an 
 object hence know the available properties.
 Of course, the javadoc also helps.

   
It seems really useful for me as well. But, please, how could I query 
the class or available properties? Is that possible or the only way to 
get them is by going to the JavaDoc document? And, if so, where could I 
found the available properties for XWiki classes? I am sure I am missing 
something obvious... It's easy to read the properties by using the web 
interface and ?editor=class to the URL of the document holding the class 
definition, but how could I do this programmatically? Of course, it has 
to be the code of that editor. But I'm not able yet of reading and 
understanding that code.

Any entry level help will be welcome! Thanks!

Ricardo

-- 
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems

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


Re: [xwiki-users] How do I for divide one string I need only the part of the user name (Admin) instead of XWiki.Admin

2010-09-20 Thread Paul Libbrecht

I think XEclipse does it pretty well.
But what I prefer to use is my favourite IDE IntelliJ IDEA.
For this, it depends if velocity or groovy.

- if groovy, I use imports and give types to my variables... this way... 
there's a way to add variables from context but I was never fully satisfied 
with it. I name the files *.groovy.

- if velocity, I name the files *.vm, and I insert such fragments as the below 
in the header
#* @vtlvariable name=lucene 
type=com.xpn.xwiki.plugin.lucene.LucenePluginApi *# ##
#* @vtlvariable name=xwiki type=com.xpn.xwiki.api.XWiki *# ##
#* @vtlvariable name=request type=javax.servlet.http.HttpServletRequest *# 
##
#* @vtlvariable name=luQ type=org.apache.lucene.search.BooleanQuery *#
  and this gives me auto completion

Of course, this relies on the fact that my IntelliJ has all the necessary 
dependencies (I import the right pom.xml for this).
I believe it should be possible to get this in Eclipse using the velocity mode 
but a friend of mine, an expert there told me it wasn't possible. I can't 
believe it.

We should definitely have a page about that in dev.xwiki.org. But not how to  
build!

paul


Le 20 sept. 2010 à 19:50, [Ricardo Rodriguez] eBioTIC. a écrit :
 It seems really useful for me as well. But, please, how could I query 
 the class or available properties? Is that possible or the only way to 
 get them is by going to the JavaDoc document? And, if so, where could I 
 found the available properties for XWiki classes? I am sure I am missing 
 something obvious... It's easy to read the properties by using the web 
 interface and ?editor=class to the URL of the document holding the class 
 definition, but how could I do this programmatically? Of course, it has 
 to be the code of that editor. But I'm not able yet of reading and 
 understanding that code.
 
 Any entry level help will be welcome! Thanks!
 
 Ricardo
 
 -- 
 Ricardo Rodríguez
 CTO
 eBioTIC.
 Life Sciences, Data Modeling and Information Management Systems
 
 ___
 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 do I for divide one string I need only the part of the user name (Admin) instead of XWiki.Admin

2010-09-20 Thread [Ricardo Rodriguez] eBioTIC.
Thanks again, Paul,

Paul Libbrecht wrote:
 I think XEclipse does it pretty well.
 But what I prefer to use is my favourite IDE IntelliJ IDEA.
 For this, it depends if velocity or groovy.

 - if groovy, I use imports and give types to my variables... this way... 
 there's a way to add variables from context but I was never fully satisfied 
 with it. I name the files *.groovy.

 - if velocity, I name the files *.vm, and I insert such fragments as the 
 below in the header
 #* @vtlvariable name=lucene 
 type=com.xpn.xwiki.plugin.lucene.LucenePluginApi *# ##
 #* @vtlvariable name=xwiki type=com.xpn.xwiki.api.XWiki *# ##
 #* @vtlvariable name=request type=javax.servlet.http.HttpServletRequest 
 *# ##
 #* @vtlvariable name=luQ type=org.apache.lucene.search.BooleanQuery *#
   and this gives me auto completion

 Of course, this relies on the fact that my IntelliJ has all the necessary 
 dependencies (I import the right pom.xml for this).
 I believe it should be possible to get this in Eclipse using the velocity 
 mode but a friend of mine, an expert there told me it wasn't possible. I 
 can't believe it.
   

I am afraid that I can do about this today is to say thanks and mark 
this thread as important and come back to it when I has a well installed 
and configured dev environment! :-) I thin I was not far from this point 
some time ago, but I have to catch up again now! Let's see if I'm able 
to get something and will be back with results!

Do you use IntellijIDEA Community Edition or Ultimate Edition?
 We should definitely have a page about that in dev.xwiki.org. But not how to  
 build!

   

Please, why do say But not how to build! Simply because it already 
exists such a page?

Thanks!


-- 
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems

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


Re: [xwiki-users] How do I for divide one string I need only the part of the user name (Admin) instead of XWiki.Admin

2010-09-20 Thread [Ricardo Rodriguez] eBioTIC.
Hi!

 ... It's easy to read the properties by using the web 
 interface and ?editor=class to the URL of the document holding the class 
 definition, but how could I do this programmatically? Of course, it has 
 to be the code of that editor. But I'm not able yet of reading and 
 

This page content a lot of useful code for I was trying to learn how to 
do...

http://yourwiki/bin/edit/XWiki/ClassSheet?editor=wiki

I'm user it is well know for most of you, but I've just found it a while 
ago!

I'm using a XE 2.4.30451.

Thanks!

-- 
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems

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


Re: [xwiki-users] How do I for divide one string I need only the part of the user name (Admin) instead of XWiki.Admin

2010-09-20 Thread Paul Libbrecht

Le 20 sept. 2010 à 20:33, [Ricardo Rodriguez] eBioTIC. a écrit :

 Of course, this relies on the fact that my IntelliJ has all the necessary 
 dependencies (I import the right pom.xml for this).
 I believe it should be possible to get this in Eclipse using the velocity 
 mode but a friend of mine, an expert there told me it wasn't possible. I 
 can't believe it.
 
 
 I am afraid that I can do about this today is to say thanks and mark 
 this thread as important and come back to it when I has a well installed 
 and configured dev environment! :-) I thin I was not far from this point 
 some time ago, but I have to catch up again now! Let's see if I'm able 
 to get something and will be back with results!

It really isn't difficult.

Take a blank pom.xml.
Add a dependency to xwiki entreprise...
Import your pom in intelliJ (create a project from external model).

 Do you use IntellijIDEA Community Edition or Ultimate Edition?

For velocity support you need the Ultimate edition unfortunately.
But the licenses for open-source projects are still being granted.
For groovy, the Community edition is enough I believe.

 We should definitely have a page about that in dev.xwiki.org. But not how to 
  build!
 
 Please, why do say But not how to build! Simply because it already 
 exists such a page?

Yes, it's about how to create applications, not how to build xwiki-core.


Le 20 sept. 2010 à 20:59, [Ricardo Rodriguez] eBioTIC. a écrit :

 This page content a lot of useful code for I was trying to learn how to 
 do...
 
 http://yourwiki/bin/edit/XWiki/ClassSheet?editor=wiki
 
 I'm user it is well know for most of you, but I've just found it a while 
 ago!
 I'm using a XE 2.4.30451.


Does it help to get the methods of the XWiki object?
Maybe we're having a parallel dialog.

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


Re: [xwiki-users] Documents and classes design question

2010-09-20 Thread [Ricardo Rodriguez] eBioTIC.
Thanks, Raluca,

Raluca Stavro wrote:
 On Mon, Sep 20, 2010 at 9:29 AM, Raluca Stavro raluca.moro...@xwiki.com 
 wrote:
   
 On Sat, Sep 18, 2010 at 12:38 PM, [Ricardo Rodriguez] eBioTIC.
 ricardo.rodrig...@ebiotic.net wrote:
 Hi,

 You can use translations (See
 http://platform.xwiki.org/xwiki/bin/view/DevGuide/InternationalizingApplications).
 For class properties, the translation format is like this:

 ClassSpaceBane.ClassDocName_propertyName=A_Translation_Text
 

 ClassSpaceName.ClassDocName_propertyName=A_Translation_Text

   
I'm in fact using this method in a rather simple application we have 
created, but whereas it is rather simple to edit and fill-in properties 
in a given instantiate class, it is not so straight to use the method 
we talk about here to the same. For instance, consider this (awful, but 
it could be useful to illustrate the discussion) model...

http://ftp.ebiotic.net/onPdr/pescaderiasDataModel.png

I've implemented it by using Documents to instantiate User and Species 
classes. Species classes has two properties that hold translations of 
its name. If I manage to get a new translation, I do need to add a new 
property to this class. Or to instruct translators to edit the 
translations document and fill in the property the name of the variable 
in the format you have told before. I do prefer not to have people to 
tweak with this kind of raw XWiki documents.

Could it be possible to create a new class for each name to be 
translated and instatiate it such many times as different languages a 
given name is translated to? This class will have two properties: 
Language Code and Translation. WDYT?

I think all I have to do is to understand how http://l10n.xwiki.org 
works! But I think this is a bit far from my capabilities rigth now! As 
stated in some other message, any entry-level help will be welcome!

Thanks!

-- 
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems

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


Re: [xwiki-users] How do I for divide one string I need only the part of the user name (Admin) instead of XWiki.Admin

2010-09-20 Thread [Ricardo Rodriguez] eBioTIC.
Hi!

Paul Libbrecht wrote:
 Do you use IntellijIDEA Community Edition or Ultimate Edition?
 

 For velocity support you need the Ultimate edition unfortunately.
 But the licenses for open-source projects are still being granted.
 For groovy, the Community edition is enough I believe.

   
I don't see XWiki among the projects granted an Ultimate Edition 
Intelljidea. I don't think I'm the one to propose such an application! 
Its web site states that, as you say, the Community edition is enough 
for Groovy so, let's give it a try!
 This page content a lot of useful code for I was trying to learn how to 
 do...

 http://yourwiki/bin/edit/XWiki/ClassSheet?editor=wiki

 I'm user it is well know for most of you, but I've just found it a while 
 ago!
 I'm using a XE 2.4.30451.
 


 Does it help to get the methods of the XWiki object?
 Maybe we're having a parallel dialog.

   
I must recognize that I am a bit of a mess when talking about variables, 
properties, methods, objects and stuff!

Let's go back to the initial question: what I was looking for was how to 
read all available properties of a given object with a piece of 
code within a XWiki page. I think I'm not able yet to use the right 
concepts and the right words when taking about, in general, 
object-oriented programming. I think that what you have gone several 
steps further and give me/us some nice keys about how to do that 
programmatically from within your favourite IDE. This will allow 
anybody using this environment to get auto-completion.

I don't know if I've resumed correctly the point of situation here! I 
agree with you that it will be great to have some page in the developing 
niche of XWiki Ecosystem, but I do understand that is up to me/us to 
create it!

Let's keep learning!

Thank you so much for your time!

Ricardo




-- 
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems

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


[xwiki-users] Document concept

2010-09-20 Thread [Ricardo Rodriguez] eBioTIC.
Hi,

Please, as an new XWiki *user* is created as a new instance of 
XWiki.XWikiUser class, what class is instantiated to create a new XWiki 
*document*?

Thanks!

-- 
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems

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


Re: [xwiki-users] How do I for divide one string I need only the part of the user name (Admin) instead of XWiki.Admin

2010-09-20 Thread Paul Libbrecht

Le 21 sept. 2010 à 00:32, [Ricardo Rodriguez] eBioTIC. a écrit :

 For velocity support you need the Ultimate edition unfortunately.
 But the licenses for open-source projects are still being granted.
 For groovy, the Community edition is enough I believe.
 I don't see XWiki among the projects granted an Ultimate Edition 
 Intelljidea. I don't think I'm the one to propose such an application! 
 Its web site states that, as you say, the Community edition is enough 
 for Groovy so, let's give it a try!

The grant would be for the xwiki development, not for xwiki applications.
I think I saw there was one long ago.
Your product should be open-source.

 I must recognize that I am a bit of a mess when talking about variables, 
 properties, methods, objects and stuff!
 
 Let's go back to the initial question: what I was looking for was how to 
 read all available properties of a given object with a piece of 
 code within a XWiki page. I think I'm not able yet to use the right 
 concepts and the right words when taking about, in general, 
 object-oriented programming. I think that what you have gone several 
 steps further and give me/us some nice keys about how to do that 
 programmatically from within your favourite IDE. This will allow 
 anybody using this environment to get auto-completion.

I summarize it all as the autocompletion function.
You type $xxx then dot (.) then get a popup... that popup is based on what is 
known as type.

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