Re: [xwiki-users] [Proposal] New free and community-managed farm on xwiki.org?

2008-01-22 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
sachin mittal wrote:
 Hi Vincent,
 People who are interested in free xwiki and want to use it as an 
 experimental tool can download it and play with it. It costs nothing 
 for them.
 As far as I have seen that students and other such individuals seldom 
 become paying customers. They typically use for project work etc.

 I think hosted solution should focus on paying customers only unless 
 you want to test the scalability of xwiki real time by giving free access.

Following this reasoning, how does Netcipia (http://www.netcipia.net)fit 
in the proposed schema?

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


[xwiki-users] errors while importing xwiki-enterprise-wiki-1.2.xar.zip

2008-01-23 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi all,

After updating to XWiki 1.2 I'm trying to get the updated documents 
included in xwiki-enterprise-wiki-1.2.xar.zip in the installation.

If I import all the documents included in 
xwiki-enterprise-wiki-1.2.xar.zip I systematically get the same three 
errors with:

Main.LuceneSearch
Panels.SyntaxHelp
Photos.NewAlbum

Only by previously removing these three documents I get a full import.

These are the ERROR messages recorded in catalina.out:

sh-3.2# tail -n2000 catalina.out | grep ERROR
11:52:16,486 ERROR http-80-15 
http://xcontroller.xen.net/xwiki/bin/import/XWiki/Import?editor=importspace=XWiki
 
SimpleLog4JLogSystem:logVelocityMessage:154 - Left side 
($request.withversions) of '==' operation has null value. If a 
reference, it may not be in the context. Operation not possible.  [line 
16, column 73]
11:58:05,003 ERROR http-80-17 
http://test02.xen.net/xwiki/bin/import/XWiki/Import?editor=import 
AbstractBatcher:doExecuteBatch:61 - Exception executing batch:
11:58:05,005 ERROR http-80-17 
http://test02.xen.net/xwiki/bin/import/XWiki/Import?editor=import 
AbstractFlushingEventListener:performExecutions:300 - Could not 
synchronize database state with session
11:58:05,006 ERROR http-80-17 
http://test02.xen.net/xwiki/bin/import/XWiki/Import?editor=import 
Package:installDocument:606 - Failed to save document Main.LuceneSearch
11:58:06,476 ERROR http-80-17 
http://test02.xen.net/xwiki/bin/import/XWiki/Import?editor=import 
AbstractBatcher:doExecuteBatch:61 - Exception executing batch:
11:58:06,478 ERROR http-80-17 
http://test02.xen.net/xwiki/bin/import/XWiki/Import?editor=import 
AbstractFlushingEventListener:performExecutions:300 - Could not 
synchronize database state with session
11:58:06,479 ERROR http-80-17 
http://test02.xen.net/xwiki/bin/import/XWiki/Import?editor=import 
Package:installDocument:606 - Failed to save document Panels.SyntaxHelp
11:58:07,261 ERROR http-80-17 
http://test02.xen.net/xwiki/bin/import/XWiki/Import?editor=import 
AbstractBatcher:doExecuteBatch:61 - Exception executing batch:
11:58:07,263 ERROR http-80-17 
http://test02.xen.net/xwiki/bin/import/XWiki/Import?editor=import 
AbstractFlushingEventListener:performExecutions:300 - Could not 
synchronize database state with session
11:58:07,265 ERROR http-80-17 
http://test02.xen.net/xwiki/bin/import/XWiki/Import?editor=import 
Package:installDocument:606 - Failed to save document Photos.NewAlbum
11:58:09,332 ERROR http-80-18 
http://test02.xen.net/xwiki/bin/skin/skins/albatross/fullscreenEdit.js 
Cache:cancelUpdate:423 - internal error: expected to get a state from 
key [xwiki:XWiki.XWikiGuest]
11:58:27,359 ERROR http-80-9 http://test02.xen.net/xwiki/bin/view/Main/ 
AbstractBatcher:doExecuteBatch:61 - Exception executing batch:
11:58:27,362 ERROR http-80-9 http://test02.xen.net/xwiki/bin/view/Main/ 
AbstractFlushingEventListener:performExecutions:300 - Could not 
synchronize database state with session
11:58:27,365 ERROR http-80-9 http://test02.xen.net/xwiki/bin/view/Main/ 
SimpleLog4JLogSystem:logVelocityMessage:154 - Method isWatchedDocument 
threw exception for reference $xwiki in template  at  [111,23]
11:59:01,372 ERROR http-80-17 
http://test02.xen.net/xwiki/bin/save/XWiki/XWikiPreferences 
AbstractBatcher:doExecuteBatch:61 - Exception executing batch:
11:59:01,373 ERROR http-80-17 
http://test02.xen.net/xwiki/bin/save/XWiki/XWikiPreferences 
AbstractFlushingEventListener:performExecutions:300 - Could not 
synchronize database state with session
sh-3.2#

Please, is this a problem with my installations? Something that 
could/must be improved in the .xar file?

Let me know if more lines from catalina.out or any other test can help 
to work out this issue. Thanks.

Best regards,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] [xwiki-devs] log

2008-01-23 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Vincent Massol wrote:

 That's because the lucene search is not fully working right now... I'm  
 aware of this and Thomas Mortagne is working on this. I know he tried  
 to fix this last week but wasn't able to find the issue till now.  
 Basically some pages are not correctly indexed somehow.

 We really need to crack this issue. It's annoying me as well...

 Thanks
 -Vincent

Pity I am not able to help with this bug! :-(

By the way, I am seeing some Lucene related messages in catalina.out 
after upgrading to 1.2. My main concern now is to work out what I see 
like a problem while creating new virtual wikis, but I will go back to 
the Lucene messages ASAP and keep this thread posted.

Thanks,

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Exception while patching

2008-01-24 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
 Hi all,

 I've recently updated a couple of XWiki installations to 1.2.6932.

 Either with old documents or with new ones, when I try to see a given 
 revision of a page, any of them, I get the following exception:

 Error number 3103 in 3: Exception while reading document version {1}
 Wrapped Exception: Error number 13027 in 13: Exception while patching
 Wrapped Exception: line::java.lang.NumberFormatException
 com.xpn.xwiki.XWikiException: Error number 3103 in 3: Exception while 
 reading document version {1}

Sorry, surely I must follow this JIRA issue...

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

Regards,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Exception while patching

2008-01-25 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Vincent Massol wrote:
 Really weird... never seen this. We could try to upgrade to a newer  
 version of JIRA

Both times I got the same error. Both times I was connected from the 
same box and the same location, but this has nothing to do with the 
client side, has it?

Please, let me know if I can be of any further help to work out this 
issue. Thanks!

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Exception while patching

2008-01-25 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Vincent Massol wrote:
 This issue is closed already so could you please create a new one  
 stating the problem again?

 Also, in order to understand the pb I need to know what's the xwiki  
 database version for the different wikis you've updated. This is  
 printed like this in the logs:
 No storage migration required since current version is [6431] 

Hi Vincent,

I will hold the thread in the JIRA issue 
http://jira.xwiki.org/jira/browse/XWIKI-2035

BTW, I've created only a couple of JIRA issues so far, but both times 
I've got the same error message when hitting the create button...

http://mire.environmentalchange.net/~webmaster/images/JiraError.png

Am I doing anything wrong? Is this a know problem? Must I create a JIRA 
Issue about the JIRA Issue? :-)

Thanks!


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Importing .xar in virtual wiki

2008-01-27 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Dicheva, Darina wrote:
 Hi Ricardo,

 Thanks so much for your hint re web browsers! Mozilla wasn't installed on the 
 web server where I was deploying the wiki, and I used Microsoft IE - 
 obviously that caused the problem. I just installed Mozzila and tried again 
 and everything worked properly. (I use Tomcat 5.5 and MySQL 5.0) The only 
 problem I still have is that the virtual wiki is not visible from outside 
 campus (the main wiki is visible), perhaps this is related to the way the 
 network pointer has been set by the system admin?

Great. But, it would be good to known why IE is not able to correctly 
import the .xar in a virtual xwiki... Provided it is a server the box 
you where  using to do the import, perhaps an old IE release installed 
there? In any case, I don't know what is the difference, if any, between 
importing a .xar in the controller and in a virtual wiki. Perhaps 
anybody else could help here.

As for accessing the server from outside the campus: only your network 
administrator can have the whole answer. Perhaps your administrator is 
using a private DNS server to resolve host names within the campus 
nerwork and the host name of virtual server is not public. I'm guessing 
you are able to ping the controller from outside the campus, but you 
can't reach the virtual server. And you can ping both from any computer 
within the campus. If you only can access your virtual server from a 
browser in the same box, I bet the host name of the virtual server is 
defined in the hosts file of the server.

Cheers,

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] simple Groovy script

2008-01-27 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
 I've tried to change groovy-all-1.0-jsr-06.jar with groovy-1.5.1.jar but 
 it seems that it is not that simple to move to the new Groovy version :-(

 I'll make any new comment in the concerned JIRA Issue.

 Thanks,
   

Call me stupid! The name of the folder in the Groovy distribution can 
not be clearest: embeddable.

The .jar to be embedded is not groovy-1.5.1.jar but 
groovy-all-1.5.1.jar. I've copied this -jar to Xwiki lib, restarted the 
servlet container and voilá! each() works now.

The only difference with groovyConsole is that the browser doesn't move 
to a new line after each output item, but this is just a minor issue 
that can be solved by simply including a br in each output line. 
Something like:

% list = [Rod, James, Chris]
list.each { println it + br} %

I will add a comment in the concerned JIRA issue.

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Importing .xar in virtual wiki

2008-01-28 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Dicheva, Darina wrote:
 Hi Ricardo,

 Thanks for your comments on accessing the virtual server from outside the 
 campus; I will contact our network admin. 

 As to the IE version on the server machine, it is 6.0.3790.0. The error was 
 only in rendering the page upon clicking on the loaded file name, I believe, 
 not in the import itself. Anyway, I don't have problems with opening other 
 virtual wiki's pages with IE from client computers.

Hi!

I'm afraid It is out of my scope to see if this IE release can have 
something to do with this particular link, sorry. But the information 
will remain here and will be helpful for anybody else suffering 
something similar! We have move all (or advised to do so) our IE 
installations to 7.0.5730.11 and things are doing better now (no XWiki 
issues with previous release, but a number of them with other 
sites/applications).

Hope you manage to solve your network issue.

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] getting documents I've been involved in

2008-01-29 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Paul Libbrecht wrote:

 hello,

 what would be the query to obtain all the documents that a user has 
 been editing, at any revision?

 thanks

 paul

Hi Paul

Could the code in My Recent Modifications panel help you?

#set($recentDocs = $xwiki.searchDocuments(where 1=1 and 
doc.author='$context.user' order by doc.date desc, 5, 0))
#if($recentDocs.size()  0 || $showEmptyPanels)
#panelheader($msg.get(My Recent Modifications))
#set($first = true)
#foreach($docname in $recentDocs)
#set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument())
#if($first == true)
#set($first = false)
#else
span class=pitemseparator | /span
#end
span class=panelitema 
href=$rdoc.getURL(view)$rdoc.displayTitle/a/span
#end
#panelfooter()
#end

HTH,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Moderator

2008-02-05 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
[EMAIL PROTECTED] wrote:
 Hi,

 I am trying to confirm before implementing the wiki that you can 
 moderate pages before they are available.

 By this i mean allow users to create pages, but require them to be 
 authorised before they become available on the wiki

 Thanks for your help

Hi,

I don't know any plugin, extension,... that allow this kind of workflow 
management out of the box, but it seams to me not too difficult to do. 
For instance, you could allow users to create pages in a given space 
only and restrict the possibility of moving this pages to a free 
access space.

Perhaps you could create a JIRA issue (http://jira.xwiki.org) asking for 
this improvement. XWiki Enterprise (XE) could be the right place.

Hope this helps,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] New product proposal and request for volunteers

2008-02-06 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Sergiu Dumitriu wrote:
 Hi everybody,

 On the mailing lists, we noticed several people trying to use XWiki in 
 academic environments, requesting features such as support for 
 mathematical equations or support for LaTeX.

Hi Sergiu,

At this very moment I am preparing a short presentation for a research 
group I am working for. As stated in some previous message, we have 
decided to use XWiki as our collaborative framework. I can only consider 
any of the required or optional features listed in the referred document 
as a must for us.

Right now, our capabilities are only my own capabilities: a few messages 
here and there. But we will keep an eye on the progress of this 
initiative and I don't discard to be able to drag some resources to help 
here. I don't know how yet, but I keep trying.

LDAP and LaTeX integration would be our first interests.

Thanks for all your initiatives,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


[xwiki-users] rendering pages with Groovy code

2008-02-12 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi all,

We are facing a weird issue. The following code (provided the right host 
name, username and password)...

áéíóú

%
import groovy.sql.Sql
db = Sql.newInstance(jdbc:mysql://hostname/database, username, 
password, com.mysql.jdbc.Driver)
List samplesIA = db.rows('SELECT * FROM saltmines s where es like I 
and ess like A and ids=1')
%

Tomáronse un total de % println ${samplesIA.size()}% mostras da 
secuencia sedimentaria do perfil P3-6-IA.


Edited by any user but admin with programming rights is rendered as...

http://mire.environmentalchange.net/~webmaster/images/RightCharaters.png


Edited by admin it is rendered this other way...

http://mire.environmentalchange.net/~webmaster/images/WrongCharacters.png

Please, not the question marks and the absence of the number 32.

This happens with any page containing Groovy code in this server, but I 
am not able to reproduce the problem in my test environment. Both of 
them run 1.3-milestone-1.7186.

Please, do you know why this could happen? Thanks!

Best regards,

Ricardo


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] setUser admin

2008-02-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
raffovi wrote:
 How??

 Can you tell me sometring more?
 Thanks
 Raffo

Well, I don't know what are you calling a procedure. Let me guess it is 
a piece of code (Groovy for instance) embedded in a XWiki document. It 
must be edited by an user having programming rights. Then, any user 
accessing this document will get the same result.

%
import groovy.sql.Sql
db = Sql.newInstance(jdbc:mysql://hostname/databasename, username, 
password, com.mysql.jdbc.Driver)
List samplesIA = db.rows('SELECT * FROM saltmines s where es like I 
and ess like A and ids=1')
%

n: % println ${samplesIA.size()}%

For instance, this simple Groovy script will return the number of rows 
in the SQL query passed to the db.rows function only if it is edited and 
saved by an user having programming rights (and provided the right host, 
username, password and JDBC library are in place). If the document 
containing this code is edited by any other user without those rights, 
the code won't be executed.

There are tones of much better examples and useful pieces of code in the 
XWiki site.

HTH,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


[xwiki-users] passing username and password with the URL

2008-02-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi all,

We are using XWiki to share/develop R code.

R has a source() command that can call a remote web page where the code 
is stored and execute it locally. We can figure out more sophisticated 
ways of getting R involved, but as an starting point it could be enough 
to be able to call restricted access XWiki URLs from local R 
installations with the source() command. Thus, I think that we need to 
send to XWiki the username and the password together with this URL.

Please, could you now if this is possible and point me in the right 
direction? Thanks!

Best regards,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] rendering pages with Groovy code

2008-02-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Sergiu Dumitriu wrote:
 Yep, that's the value I'm interested in. If you can change the tomcat 
 settings, can you you add -Dfile.encoding=ISO-8859-1, restart tomcat and 
 test again?

   
I can not do that right now, but I will add the parameter, try again and 
report back as soon as possible
 Was the script working correctly before the update, or you didn't try 
 that script before? Because theoretically we didn't change anything in 
 the groovy rendering process.

   

The script has always worked fine. The problem are the question marks 
substituting the special characters when the page including the script 
is edited by a programmer. I don't know what this could mean. And, I 
insist, this only happens in one installation.

I will try by adding the file.encoding parameter and report back ASAP.

Thanks!!

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] rendering pages with Groovy code

2008-02-14 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Sergiu Dumitriu wrote:  
 Yep, that's the value I'm interested in. If you can change the tomcat 
 settings, can you you add -Dfile.encoding=ISO-8859-1, restart tomcat and 
 test again?

Hi,

Changes done and problem solved! The scrip is executed and the text 
rendered correctly by adding -Dfile.encoding=ISO-8859-1 to JAVA_OPTS in 
catalina.sh. Sorry for not being able to solve it by myself following 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Encoding

Now, xwiki.cfg reads...

xwiki.encoding=ISO-8859-1

And Tomcat...

System.getProperty(file.encoding): ISO-8859-1
OutputStreamWriter encoding is: ISO8859_

No charset has been set for MySQL, so I guess it is running latin1 and 
latin1_swedish_ci as default collation.

Don't you think that it could be advisable to write a warning somewhere 
about the need of setting up the servlet container for a given encoding? 
I've not touched this settings here, and what we get was a Tomcat 
installation with MacRoman by default and the other one with ASCII.

Thanks for your help,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] [Error]: Java heap memory error on adding large attachment

2008-02-14 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
[EMAIL PROTECTED] wrote:

 When attempting to upload a 10.5MB file attachment to a page in  XE 
 1.2-milestone-2.5917, user consistently get the error:


 Java Heap Space Out Of Memory Exception !


Hi,

http://www.xwiki.org/xwiki/bin/view/FAQ/Howtoincreasethemaximumattachmentsize

Just curiosity, what kind of file are you uploading? An image? Thanks.

HTH,

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


[xwiki-users] some encoding problems administering users

2008-02-14 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi,

Following a previous thread ([xwiki-users] rendering pages with Groovy 
code), we are running a ISO-8859-1, 1.3-milestone-1.7186 XWiki server.

Encoding seems to work fine now, but there is still at least an issue here.

When we create/edit an user by using the new AJAX reach Administration 
utility, extended characters are not correctly entered/interpreted. 
Thus, the only moment we get correctly characters is when entered in 
each field. Once we hit the accept button, the right character is showed 
as weirds symbols.

iso-8859-1 is also the value in HTTP Meta Information:

meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /

Please, what could be our error here?

Thanks!

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


[xwiki-users] searching/replacing within the xwiki edition window

2008-02-14 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi all,

Several users have asked me, and me myself find it quite useful, for 
this feature and I don't know if it is possible to find any utility 
doing this:

Is it possible to search/replace while editing a document with the wiki 
editor? Working in WYSIWYG mode, it is at least possible to use the 
built in search utility of each browser, but this doesn't work in wiki mode.

Thanks!

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] rendering pages with Groovy code

2008-02-14 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Sergiu Dumitriu wrote:
 Actually, we're trying to make this automatic, so that no system 
 settings must be changed. I hope this will work in the final 1.3 release.

   

Great! Thanks.

Best,

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] [Error]: Java heap memory error on adding large attachment

2008-02-14 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
[EMAIL PROTECTED] wrote:
 An MS Word document. 

 The error also happened with a 6.5 MB zip file - so the xwiki limit of
 10MB may not be the issue (although documents larger than the alleged
 1MB MySQL limit have been successfully uploaded). 

Thus, the problem may arise from the amount of memory available for 
Java. What servlet container are you using? I've seen this error here 
running Tomcat. You can increase this amount by passing this parameter 
-Xmx256m -Xms256m (in this case 256Mb will be the new amount of 
available memory) at startup time.

So, you have to shutdown your servlet container, modify some script to 
startup.sh, catalina.sh or whatever your are using to launch Tomcat, to 
add this paramenters to CATALINA_OPTS or JAVA_OPTS. I have not a clear 
idea about what is the right variable to be modified. Any feedback will 
be really welcome.

Here is the script I am using here to start Tomcat:

mire:/home/webmaster/bin # cat start_tomcat6
#!/bin/sh
export CATALINA_HOME=/usr/share/tomcat-6.0.10
export JAVA_HOME=/usr/share/java/jre-1.6.0_01
export JRE_HOME=/usr/share/java/jre-1.6.0_01
export CATALINA_OPTS=-Xmx512m -Xms512m
export JAVA_OPTS=-Xmx512m -Xms512m
$CATALINA_HOME/bin/startup.sh

As per your question about the need of restarting XWiki so that the new 
configuration values become effective. Yes, this is required. xwiki.cfg 
is read at deployment time. So if you have any utility that allow you to 
restart just one application, you are a lucky person :-) If you have not 
it, just restart the servlet container.

I am sure there are people out there with a much more in depth knowledge 
about this issue. But this has helped me. I hope it could be useful for 
you as well.

Greetings,

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] searching/replacing within the xwiki edition window

2008-02-14 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Paul Libbrecht wrote:
 Ricardo,

 that's browser dependent... Opera gives you this service (at least 
 searching).
 On Macs OmniWeb gives you it if you open the external text window. 

Hi Paul,

I've tried both, Opera in Windows and OmniWeb in Mac. I'm impressed with 
OmniWeb performance and the search/replace feature of the zoom  window. 
Thanks for the tip.

Best,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] passing username and password with the URL

2008-02-16 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
 Hi all,

 We are using XWiki to share/develop R code.

 R has a source() command that can call a remote web page where the code 
 is stored and execute it locally. We can figure out more sophisticated 
 ways of getting R involved, but as an starting point it could be enough 
 to be able to call restricted access XWiki URLs from local R 
 installations with the source() command. Thus, I think that we need to 
 send to XWiki the username and the password together with this URL.

 Please, could you now if this is possible and point me in the right 
 direction? Thanks!

 Best regards,

 Ricardo

   
Hi,

Following some advise from people in the R r-help e-mail list and from 
some other threads here I can read the following authentication header:

--
http://MyHostName/xwiki/bin/loginsubmit/XWiki/XWikiLogin

POST /xwiki/bin/loginsubmit/XWiki/XWikiLogin HTTP/1.1
Host: MyHostName
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; 
rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en,en-us;q=0.7,es-es;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: UTF-8,*
Keep-Alive: 300
Connection: keep-alive
Referer: 
http://MyHostName/xwiki/bin/login/XWiki/XWikiLogin?xredirect=http%3A%2F%2FMyHostName%2Fxwiki%2Fbin%2Fview%2FMain%2F
Cookie: JSESSIONID=A89FBB1701789DE208FFDBD732E9EFFD; style=default
Content-Type: application/x-www-form-urlencoded
Content-Length: 146
xredirect=http%3A%2F%2FMyHostName%2Fxwiki%2Fbin%2Fview%2FMain%2Fj_username=xj_password=xj_rememberme=true
HTTP/1.x 302 Moved Temporarily
Server: Apache-Coyote/1.1
Set-Cookie: username=x==; Expires=Sun, 02-Mar-2008 11:26:15 GMT; 
Path=/
Set-Cookie: password=x==; Expires=Sun, 02-Mar-2008 11:26:15 GMT; 
Path=/
Set-Cookie: rememberme=true; Expires=Sun, 02-Mar-2008 11:26:15 GMT; Path=/
Set-Cookie: validation=2ea9cbeb40bdafc8314b50f18b440e30; Expires=Sun, 
02-Mar-2008 11:26:15 GMT; Path=/
Location: http://MyHostName/xwiki/bin/view/Main/
Content-Type: text/html;charset=ISO-8859-1
Content-Language: en
Content-Length: 0
Date: Sat, 16 Feb 2008 11:26:15 GMT
--

I've replaced username and password values with x and the real 
hostname with MyHostName.

In xredirect I can easily identify : as %3A and / as %2F. But, is it 
possible to pass the string j_ in an regular URL? Is this possible to 
pass username and password with this string as an URL to access a 
restricted access document or it is a requirement that the cookies are 
set before the client can read it?

For instance, could I pass username and password with the following URL...?

http://xepecnet.environmentalchange.net/xwiki/bin/view/ICT/RGraphicSample01?xpage=plain

I keep trying to pass the code in this document to R. This is what I get 
right now...

  
source(http://xepecnet.environmentalchange.net/xwiki/bin/view/ICT/RGraphicSample01?xpage=plain;)
Error in file(file, r, encoding = encoding) : unable to open connection
In addition: Warning message:
In file(file, r, encoding = encoding) :
  cannot open: HTTP status was '401 Unauthorized'

Thanks for your help!

Best,

Ricardo


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] [Error]: Java heap memory error on adding large attachment

2008-02-16 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
[EMAIL PROTECTED] wrote:
 I'll update you (here) after we apply the changes and test again.

 Thanks for your help!

Once you get it running I think we need to hear from anybody else about 
the difference between CATALINA_OPTS and JAVA_OPTS to create a 
reasonable FAQ entry applying to Tomcat.

Greetings,

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] [Error]: Java heap memory error on adding large attachment

2008-02-16 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Pavel wrote:
 Here is my version of what happens in QA.

 * What does out of memory error mean?
   - Java virtual machine (which runs tomcat which runs xwiki) has run 
 out of heap space and cannot allocate anything anymore.

 * Is it related to MySQL packet size?
   - No

 * Why this error happens?
   - Because application needs more memory than JMV is allowed to use.

 * How is that related to attachments?
   - The way xwiki handles attachments is, well, not perfect.
   Somewhat related thread is 
 http://lists.xwiki.org/pipermail/users/2007-November/009362.html

 * So what can you do?
   - a) Use -Xms and -Xmx java parameters to increase heap size.
   - b) Implement and contribute to XWiki effective attachment handling.

 * What are the -Xms and -Xmx params?
   - -Xms tells java the initial heap size, -Xmx controls max size. The 
 latter is of special interest in this case and can be increased.

 Pavel

Hi Pavel,

Do you know if this heap size issue happens just working with Tomcat as 
servlet container or it is generalizable to other application servers? 
It could be advisable clarify that this FAQ applies just to XWiki 
running on a Tomcat/MySQL server.

I would add a link to heap, something as 
http://dictionary.zdnet.com/definition/heap.html. I am not a programmer, 
so I do need this kind of help to know what is happening with my 
installation :-)

As per the CATALINA_OPTS or JAVA_OPTS variables, it would be great to 
have a confirmation, but by tracking their values along catalina.sh and 
startup.sh I reach the same conclusion you presented. FAQs are wiki 
entries, so anybody can modify them! I would add some
sample lines as (this apply to Unix-based systems, could you add that 
applying to Windows ones?)...

* to be included in a script calling startup.sh: both variables will be 
passed in to the startup process.

export CATALINA_OPTS=-Xmx512m -Xms512m
export JAVA_OPTS=-Xmx512m -Xms512m

I am guessing it is of course possible to add this values within 
catanina.sh or startup.sh, but I do prefer don't touch these files if 
possible.

Cheers,

Ricardo


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] controlling display on a per user basis

2008-02-18 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Guillaume Lerouge wrote:
 Hi,

 have you tried something akin to

 #if ($context.user == 'XWiki.YourUserName')
 Test
 #end

 ?

Nope. And it perfectly works! Thanks.

Given an user with this it is possible to control if a paragraph appears 
or not but a new doubt arises from here. Look at this...

#toc(2 3 )

#if ($xwiki.hasAdminRights())
1.1 Entry 1
1.1 Entry 2
#end

#if ($context.user == 'XWiki.MyUsername')
1.1 Entry 3
#end

Only Entry 1 and 2 are show in the document for an admin other than 
MyUsername, but all three entries appear in the TOC.

Is it possible to control this? Thanks again!

Best regards,

Ricardo


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] [Error]: Java heap memory error on adding large attachment

2008-02-18 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Pavel wrote:
 Ricardo,

 I did not test the issue on different app servers and databases. 
 However, underlying reasons for this out of memory make me strongly 
 believe that changing DB/AS will make little or no difference.

 Pavel


Hi Pavel,

Based on your message (almost your message by itself)...

http://www.xwiki.org/xwiki/bin/view/FAQ/HowToSolveAJavaHeapMemoryError

I hope others improves it.

Best,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Latex html in editor for math formulas?

2008-02-20 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team

[EMAIL PROTECTED] wrote:


Hi folks,

Will there be an additional button in the editor, to implement formulas?
Or is there?



Hi,

You must be aware of this...

http://i2geo.net/bin/Sandbox/Formulae

There is at least a thread in xwiki-devs dealing with this issue. Look 
for MathTran there.


http://www.nabble.com/forum/Search.jtp?forum=2564local=yquery=MathTran

Hope this helps,

Ricardo


--
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Hosting xwiki related source code (was Re: Latex html in editor for math formulas?)

2008-02-20 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Vincent Massol wrote:

 I think I was not clear. I see this macro going into this xlet'  
 project but not in a project on its own since that's a lot more  
 maintenance to do... I'd rather we have a single project for now and  
 if one of the module in there outgrows the project then it could move  
 to be a top level project.

 Hope this makes sense
 -Vincent

Far clear! Thanks!

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Bulletin Board cannot display topic title and first post !?

2008-02-21 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi Guillaume!

Guillaume Lerouge wrote:
 It makes sense, discussions àla Wikipedia if I'm right ;-)

I am not sure this is a good comparison. I must recognize that the last 
MediaWiki release I've installed and used is a bit old (1.9.3), but as 
far as I see the possibilities open by the XWiki arquitecture are far 
from being comparable to the ones provided by MediaWiki. In MediaWiki 
you have an interface to create new headed paragraphs of the same level 
in the discussion page. But what you have done is to provide a tool to 
create an object for each post, topic,... and this opens an universe (or 
multiverse!) of opportunities.

 The quickest way to do this is to create a specific skin with a new 
 displayer for comments. In fact, that's what was done for 
 http://wikipeople.elle.fr, see for 
 instance http://wikipeople.elle.fr/xwiki/bin/view/People/DrewBarrymore .

The example from Elle is PERFECT. But instead of using comments, I would 
like to use BBCode. It is not possible to categorize comments as we can 
categorize Category(sic)TopicMessage.

 As for the rights setting (people seeing the page but not the 
 comments), I'm not sure that XWiki can do that out of the box... What 
 you could do though is to create 2 spaces, MySpace  MySpaceDiscussion 
 - then on each page of /MySpace you put a button such as 
 [PageDiscussionMySpaceDiscussion.$doc.getName()] (through a panel for 
 instance). Then people can create a discussion page with different 
 rights for each existing page. With the parent set right it's easy to 
 get back from the page in the discussion space to the original one...

 Then you'd need to create a topic in your panel in the second space. 
 You could try to put this in a panel on the 2nd space :

 $doc.getObject('BBCode.TopicClass', true) - this creates a topic in 
 your page, but you'd still miss all the content on the 
 TopicClassSheet... Maybe playing a bit with an input form in the panel :-)


 But this looks like a big hack... Good luck if you wanna try and do it 
 though ;-)


 Guillaume


 PS: if you wait a few hours, I'll may have the time to improve the 
 BB's remaining rough edges and upload a new XAR...



Thanks for the tips! I have these hours indeed. In the meantime, I keep 
trying to make the pieces fit!

Cheers,

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Bulletin Board cannot display topic title and first post !?

2008-02-21 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Guillaume Lerouge wrote:


 - the check on rights is done before the moment each Bulletin Board 
 is displayed, so it may have something to do with the rights 
 configuration... Do you explicitely deny the view right to your user ? 

 (Locally when I deny view right to an user he cannot see the bulletin 
 boards he can't access in the list, ie I don't get the bug)


 In the meanwhile I've updated the XAR for the panel to read My instead 
 of Your ;-)


 Guillaume


Thanks for the My :-)

As for the bug, I have not been able yet to find a pattern. It happens 
with some users, but not with others. And I am not able to find the 
differences between them concerning rights assignments. Come back as 
soon as possible.

Thanks!

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] How to attach and deattach file by code

2008-02-22 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Ngo Thi Hong Nga wrote:
 My solution sounds silly but it works :)
 Assume that the upload document is named XWiki.Upload. In this 
 document, I change the value of the hidden field xredirect to 
 XWiki.DoSomething. I create another document named XWiki.DoSomething, 
 in it, write some code to deal with the file content, blah ... , 
 finally, redirect back to XWiki.Upload.
Thanks!

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


[xwiki-users] ghost document

2008-02-24 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi,

This doubt comes from a previous thread, document name including /. But 
as far as the behavior now is a bit different, I don't know why, please, 
allow me to start a new issue.

The point is that I'd created a document with / in its name. Namely 
PCI/A/9641/07. It is quite frequent to find such a names from project 
codes and stuff.

Looking for PCI in Search, shows this document, but any action (Delete, 
Rename, Rights or Copy) shows an empty page. Looking for any word in the 
document doesn't return it as a result.

Table xwikidoc contents the following document:

XWD_FULLNAME:Wetlands.PCI
XWD_NAME: PCI/A/9641/07

http://our.server.name/xwiki/bin/view/Wetlands/PCI says that the 
requested document could not be found.

Must I simply remove this entry or could this action compromise the 
integrity of the database?

Thanks for your help,

Ricardo


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] ghost document

2008-02-25 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Esbach, Brandon wrote:
 Slash in the actual name is not such a good idea - xwiki assumes you're 
 trying to create a new space, and acts accordingly.
 For me, the updateName() script catches both / and \ though, among other 
 problem characters (or is that something I've changed on mine)?

I completely agree about the use of slash in the actual name of a 
document! But it nos always possible to avoid that even though I repeat 
it every time I've the opportunity to our users.

As I understand, updateName() script can be used at creation time to 
clean document names. Is it used by default by the Create panel? It 
this is true, it didn't work fine here (I'm currently using 1.3M1).

Could it be used to change the name of an already create document?

In this case, PCI/A/9641/07 was used as the name for a new document in 
space Wetlands. PCI space wasn't created, but a PCI document in Wetlands 
space. See here...

http://mire.environmentalchange.net/~webmaster/images/WetlandsBadNameDoc.png

These are the records in xwikidoc...

http://mire.environmentalchange.net/~webmaster/images/WetlandsBadNameDocRecords.png

Could I delete the record XWD_ID = 1457683305 solve this issue?

I'm suffering some communication problems from my current location, so 
I've not searched xwiki.org site for updateName() script. So, please, 
accept my apologies if I am asking anything with an obvious answer.

Thanks!

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Headings aud sub-headings auto numbering

2008-02-25 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Gaëtan GUYODO wrote:
 Hi,
 Is there any way to have an automatic numbering of headings and 
 sub-headings in every pages of a wiki ?
 When I create a page with headings and sub-headings, I obtain :
 Heading 1
 Heading 2
 Heading 2
 Heading 1

 and I would have that result :
 1 Heading 1
 1.1 Heading 2
 1.2 Heading 2
 2 Heading 1...

 Any idea ?
   

No an answer, just a request. Sorry.

I would like to add one step further: we are using the space as a 
metaphor for a book. Let's say each chapter will be a document in a 
given space. It will be great to be able of establish a numeration 
schema along the whole space. Tables, figures and images in this 
documents would also follow a common numbering schema.

Some kind of label must be added to the text string being their caption 
and some kind of process must compile and generate lists with the entries.

How to do that: I don't know... yet :-) But keep trying.

Best regards,

Ricardo


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Bulletin Board cannot display topic title and first post !?

2008-02-25 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team

 Nope, just my years of experience with Velocity.
   

Thanks! I do hope I manage to get such an experience...

Best,


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Headings aud sub-headings auto numbering

2008-02-25 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Vincent Massol wrote:
 Hi,

 I've looked at the source code and I've come up with this:
 http://www.xwiki.org/xwiki/bin/view/FAQ/NumberedSections

 Thanks
 -Vincent

Please, could you think of a solution for applying numbered sections to 
a given space? Thanks!

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Headings aud sub-headings auto numbering

2008-02-25 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Vincent Massol wrote:
 The answer is already in the FAQ entry I believe...

 -Vincent
   

Hi Vicent, colleagues,

Sorry if I am missing something, but I am not able to make this work. 
I've tried to save a sample as a regular user, as an user with admin 
rights and as admin by itself. Both in virtual wikis and in the 
controller. I've always used a 1.3M1 installation.

http://xepecnet.environmentalchange.net/xwiki/bin/view/ICT/NumberedSections?viewer=code

Please, could you tell me where I am wrong?

Must I be able to find tocNumbered and tocData in the context 
constructor documentation?

Thank you so much for your help,

Ricardo


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Headings aud sub-headings auto numbering

2008-02-26 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Vincent Massol wrote:
 What's wrong is that you have used the #toc macro at the same time...  
 This macro uses the sames context variables and since you've called it  
 with  (which is equivalent to using false for section numbering)  
 it has removed the section numbering.

 -Vincent

Thanks and sorry for asking before investigating further.

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


[xwiki-users] searching FAQ

2008-02-27 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi all,

I've being following this for a some days and it seems to me that the 
search FAQs utility in...

http://www.xwiki.org/xwiki/bin/view/FAQ/

doesn't work. Or at least I am not able to get a single entry in any query.

Could you confirm this issue? Thanks!

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


[xwiki-users] import_listoferrorsfiles

2008-03-01 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi,

I've seen this kind of error before, but never had a clear idea about if 
this is a problem of the local installation of something that could/must 
be corrected in the import .xar process.

Now working with 1.3-RC-1.8082. While importing 
xwiki-enterprise-wiki-1.3-rc-1.xar in several wikis (a bunch of 
databases holding virtual wikis + the main database), the results show 
always a number of documents with errors. Like here...

Importing xwiki-enterprise-wiki-1.3-rc-1.xar: Error while importing
133 Document(s) installed
0 Document(s) skipped
4 Document(s) with error

These 4 documents are:

Main.LuceneSearch
Panels.SyntaxHelp
Photos.NewAlbum
XWiki.XWikiSyntax

The most frequent error shows just three documents failing:

Main.LuceneSearch
Panels.SyntaxHelp
Photos.NewAlbum

Please, is this tied to my database condition or it is something that 
must be corrected/modified in the imported .xar file?

Thank you so much,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


[xwiki-users] saving user's changes problems

2008-03-01 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi all,

In a 1.3-milestone-1.7186 installation I frequently get the following 
error while trying to inline edit an user. I also get this error if I 
edit user's objects. The name of the group doesn't appear always in the 
error message (Here you will read XWiki.XWikiAdminGroup):


Error number 3201 in 3: Exception while saving document XWiki.rrodriguez
Wrapped Exception: Row was updated or deleted by another transaction (or 
unsaved-value mapping was incorrect): 
[com.xpn.xwiki.objects.LargeStringProperty#
XWiki.XWikiAdminGroup,
]
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while 
saving document XWiki.rrodriguez
Wrapped Exception: Row was updated or deleted by another transaction (or 
unsaved-value mapping was incorrect): 
[com.xpn.xwiki.objects.LargeStringProperty#
XWiki.XWikiAdminGroup,
]
at 
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:410)
at 
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:97)
at 
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:91)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1078)
at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:120)
at com.xpn.xwiki.web.SaveAction.action(SaveAction.java:129)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:147)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Unknown Source)


Please, does this make any sense for you? Could I do anything to avoid 
these errors? Thanks!!!

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] import_listoferrorsfiles

2008-03-01 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Vincent Massol wrote:
 I remember seeing this too but I don't know the cause. I thought I had  
 fixed this but probably not. I remember tracking the cause but without  
 finding the reason.

 Could you open a jira issue with all details?

 As a workaround try importing again these files. I think if you do it  
 3 or 4 times it starts working fine. That's what I found when I was  
 debugging it I think.

I have tried a number of times without success. The only workaround I've 
found is to previously delete the concerned documents. Then, the import 
process works seamlessly.

Importing xwiki-enterprise-wiki-1.3-rc-1.xar: Import successful
133 Document(s) installed
0 Document(s) skipped
0 Document(s) with error

I will open a JIRA issue.

The new Tucan skin working with 1.3RC1 is like a blow of fresh air! It 
is, at least here, much faster and the ergonomy is highly improved. I do 
hope we can enjoy it as soon as possible!

Thanks,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] import_listoferrorsfiles

2008-03-01 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
 Could you open a jira issue with all details?

Done ,

http://jira.xwiki.org/jira/browse/XE-203

Thanks,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


[xwiki-users] managing groups

2008-03-01 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi!

I am now trying 1.3RC1 in a Mac OS X box.

Whatever skin I choose, Albatross or Tucan, the AJAX rich groups editor 
shows the following aspect...

http://mire.environmentalchange.net/~webmaster/images/XWikiGroupsManagement.png

Add new user and Add new groups work fine, but must I expect that the 
list of group members appears in the table on the left? If yes, must the 
column Manage be populated with any action's button? Thanks!!!

Here the list of group members both with Toucan and Albatross.

http://mire.environmentalchange.net/~webmaster/images/XWikiAddingUserToucan.png

http://mire.environmentalchange.net/~webmaster/images/XWikiAddingUsersAlbatross.png

That is all I must be found or is there any kind of entries in the 
Manage column?

Thanks!

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] saving user's changes problems

2008-03-01 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Sergiu Dumitriu wrote:
 See http://jira.xwiki.org/jira/browse/XWIKI-1937

   

Thanks!

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] saving user's changes problems

2008-03-01 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Sergiu Dumitriu wrote:
 [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
   
 Hi all,

 In a 1.3-milestone-1.7186 installation I frequently get the following 
 error while trying to inline edit an user. I also get this error if I 
 edit user's objects. The name of the group doesn't appear always in the 
 error message (Here you will read XWiki.XWikiAdminGroup):

 

 See http://jira.xwiki.org/jira/browse/XWIKI-1937

   
Sergiu, please, I understand that this answer belongs to the previous 
thread import_listoferrorsfiles but not to this different issue while 
editing users, doesn't it?


Thanks!

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


[xwiki-users] collapsed panels

2008-03-02 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi all,

After googling for a while, I realize that the collapsing/expanding 
trick is a quite vaste issue!

Please, is it possible to force XWiki to deliver collapsed panels? Or 
even better: is it possible to set a panels to be delivered , by 
default, collapsed or expanded?

Thanks!

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] collapsed panels

2008-03-02 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team

Vincent Massol wrote:
Yes, that's what we do now :) Check in edit mode for example,  
there are panels that are collapsed. Edit those panels and you'll see  
how it's done.


Moreover we even remember when a user has collapsed/expanded a panel  
in a cookie... :)


I'm really starting to enjoy this stuff... :-)

Thanks! I see what you say: XWiki syntax help has the clues... even 
though I don't see them right now :-)


I've also reached http://openrico.org/, what also seems of maximum interest.

By the way: XWiki syntax help seems to have some problems to expand 
under Safari 3.0.4 (5523.15), Mac OS X 10.5.2. It works fine when 
accessed from Panels, but it doesn't expand sub-accordions (Titles, 
Paragraphs,...) when access in edit mode. Could you reproduce this 
problem over there?


Thanks!

--
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] collapsed panels

2008-03-02 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
 Vincent Massol wrote:
 Yes, that's what we do now :) Check in edit mode for example,  
 there are panels that are collapsed. Edit those panels and you'll see  
 how it's done.

 Moreover we even remember when a user has collapsed/expanded a panel  
 in a cookie... :)

Hi,

I am afraid I am not able to understand how this is done.

There is a JavaScript script at the end of the panels show as collapsed 
by default. It must be togglePanelVisibility which is controlling the 
collapsed state, but I am not able to understand how. For instance, the 
XWiki Syntax Help panel reads:

script type=text/javascriptnew Rico.Accordion( 'xwikisyntaxhelp', 
{panelHeight:'max'} 
);togglePanelVisibility((document.getElementById('xwikisyntaxhelppanel')).getElementsByTagName(
 
'div').item(0));/script

As far as I see here, if there are no child nodes in the accordion, it 
is not possible to establish a collapsed state for the panel. Or I am 
not able to find how.

Please, how could I collapse a panel as simple as...

#panelheader('Consumidores/as')
item 1
#panelfooter()

Thanks you so much for your help,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] managing groups

2008-03-03 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Vincent Massol wrote:
 I don't think this is a Mac OS X box issue per see since lots of us  
 are developing on Mac and we don't see this. It's probably that you're  
 using Safari and not Firefox.

 I don't think we have validated the Toucan skin on Safari. At least I  
 know I haven't.

 Could you create jira issues for all issues you find on Safari? Make  
 sure you create these issues in the Toucan skin JIRA project and that  
 you specify Safari in the description.

Done!

http://jira.xwiki.org/jira/browse/XSTOUCAN-10

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] managing groups

2008-03-03 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Vincent Massol wrote:
 Could you create jira issues for all issues you find on Safari? Make  
 sure you create these issues in the Toucan skin JIRA project and that  
 you specify Safari in the description.


I've also created the same issue in the Albatross skin JIRA project:

http://jira.xwiki.org/jira/browse/XSALBATROSS-19

Regards,

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] error while updating to 1.3M2

2008-03-03 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Following a conversation held in the #IRC channel between Vincent and 
Sergiu concerning the WARN message referenced before.

I am using the default authentication services when the warn error was 
recorded...

xwiki.authentication=form
xwiki.authentication.validationKey=totototototototototototototototo
xwiki.authentication.encryptionKey=titititititititititititititititi
xwiki.authentication.cookiedomains=xwiki.com,wiki.fr

# Comment if you want to enable logout only for 
/bin/logout/XWiki/XWikiLogout
xwiki.authentication.logoutpage=/[^/]+/logout/*
...


As per LDAP

#-
# LDAP
#-

#-# new LDAP authentication service
# 
xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl

#-# Turn LDAP authentication on - otherwise only XWiki authentication
#-# 0 : disable
#-# 1 : enable
# xwiki.authentication.ldap=1
...


This database was used with LDAP authentication with prior releases.

Please, how could I be of further help to solve this issue? Thanks.

Best,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] error while updating to 1.3M2

2008-03-03 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Please, allow me to post this for our reference...

http://rafb.net/p/Ek4UlE10.html

http://mire.environmentalchange.net/~webmaster/txt/ApiUser13RC1.txt

Regards,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] collapsed panels

2008-03-03 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Vincent Massol wrote:

 You can use #includeMacros(maropagename)

Used! It works fine with this line in each panel...

#includeMacros(XWiki.Macros)

XWiki.Macros contents the new macros and /templates/macro.vm remains 
untouched.

I keep working on a panels macro that accepts a collapsed/expanded status.

Perhaps this doubt is silly but, must a JIRA issue about this be created 
in XAPANELS, XE or XWIKI?

Thanks for your help,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


[xwiki-users] panel background

2008-03-03 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi all,

I would like to set a given panel with a different background. Let's 
say, white, instead of the default #384554 in Albatross skin.

I read in macros.vm panels' entries...

## Note: We pass the Panel name as an HTML class attribute so that it's 
possible to style
## the Panels selectively using CSS.

Does this means that it is possible to change the background on a per 
panel basis by using CSS?

In any case, I've tried to create a new macro assigning a different 
background color. This way...

#macro(panelhiddenheaderwhitebackg $title)
#set ($specialClassAttribute = )
#if ($paneldoc  $paneldoc != )
  #set ($specialClassAttribute = 
$util.convertToAlphaNumeric($paneldoc.name))
#end
div class=panel expanded $specialClassAttribute
h5 class=xwikipaneltitle hidden 
onclick=togglePanelVisibility(this.parentNode);$title/h5
div class=xwikipanelcontentswhitebackg
#end

Class for the div holding the content is set to 
xwikipanelcontentswhitebackg. I've created this class in 
colorsblack.css, imported by style.css, but there is no background shown 
for this panel. Using Firefox/Inspector, I can not see colorsblack.css 
referenced when inspecting this element.

Please, is it possible to do this? Where am I wrong?

Thank you so much,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


[xwiki-users] RSS access to private feeds? - BulletinBoard

2008-03-04 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi all,

I've been playing for a while with the new cool BulletinBoard 
application. Please, is it possible to access RSS feeds for restricted 
access boards?

I am doubting if this is a matter of the RSS client, XWiki feed URL 
format or XWiki been/not been able to accept basic authentication (or at 
least username and password not being able to be sent in the URL string) 
a combination of these issues or anything else.

The point here is that we do need to restrict this access to a given 
board but at the same time RSS it is quite useful. Of course Watch could 
be an option.

Any tip will be welcome! Thanks!

Cheers,

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] RSS access to private feeds? - BulletinBoard

2008-03-06 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Cool!

Guillaume Lerouge wrote:
 You could also try to use your own EPEC IRC bot to handle the job ;-)

The bot stuff sounds great. But I have to find how to deliver the Watch 
RSS feed or  the EPEC IRC bot output to the XWiki desktop. I mean, a 
the browser where I am editing, adding content, managing rights,...

Perhaps something like this http://gadget.myworklight.com/?

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Automatic forward to user page after login?

2008-03-06 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi Dan,

Dan wrote:
 Thanks a lot. But maybe I made it confused, English is not my mother 
 language.
   

It is not your fault! You clearly said login, no logout. Sorry!
 In fact what I need is that after the user entering username/password and 
 click the log-in button, the next page should be the user's profile page. 
 For example, after entering username/password the user Admin click log-in, 
 then the coming page should be 
 http://localhost:8080/xwiki/bin/view/XWiki/Admin
 The problem is that before log-in, we can't get the username and user 
 profile page URL in global.vm  because we don't know which user will exactly 
 log-in.

I guess this must be done by hacking the same template. Let me take a 
look. Once you hit the login button, you already has the needed 
information. I keep guessing the the value to be considered is $loginurl 
instead of $logouturl...

#set($loginurl = $xwiki.getURL(XWiki.XWikiLogin, login, 
xredirect=$xwiki.getURLEncoded($logredir)))
  a class=glink href=$!loginurl 
id=headerlogin$!msg.get(login)/a#sep()

I will try to have this done and come back if I am able to get this done.

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Bulletin Board cannot display topic title and first post !?

2008-03-06 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi Guillaume,

Guillaume Lerouge wrote:
  if it works let's use it ;-)


Following Vicent advise in another thread I have realized that 
Panels.IncludedDocuments could help me to avoid a problem: if I included 
Panels.BulletinBoardList in a given column and an user has no access to 
any bulletin board, we got an empty panel. Just the title was showed up.

We think users must not get this entry if they have not access to any 
bb. I would like to propose the following code to avoid what we consider 
a problem. The way I check for granted access to bb is really primitive. 
But it works and it is not dangerous at all! It will be great if you or 
others could find a more elegant way to get the same result. Thanks!

*
#set($sql = , BaseObject as obj where obj.name=doc.fullName and 
obj.className='BBCode.BBClass' and obj.name'BBCode.BBClassTemplate' 
order by doc.date desc)

#set($count = 0)

#foreach($item in $xwiki.searchDocuments($sql))
#if($xwiki.getDocument($item).hasAccessLevel('view', $context.user) 
== 'true')
#set($count = $count +1)
#end
#end

#if($count 0 || $showEmptyPanels)

#includeMacros(XWiki.Macros)
#panelheaderc('My Bulletin Boards')
#foreach($item in $xwiki.searchDocuments($sql))
#if($xwiki.getDocument($item).hasAccessLevel('view', $context.user) 
== 'true')
#if ($xwiki.getDocument($item).getValue('bbtitle') != )
* [$xwiki.getDocument($item).display('bbtitle')$item]
#else
* [$item]
#end
#end
#end
#panelfooter()

#end
*

The description must be modified accordingly. Perhaps...

*
This panels lists all the Bulletin Boards an user has view, edit  admin 
access to in a given wiki. If an user does not have the right to see a 
given Bulletin Board, he / she will not see it in the list. If he / she 
has access to none of them, the panel will not show up.
*

Thanks!

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Another language question

2008-03-07 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team

Sergiu Dumitriu wrote:



Unfortunately, attachment and comments are the same for all the 
languages, using the default XWiki code.


  


I am afraid this is also true for panels. Or am I missing anything?

Thanks!

--
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] collapsed panels (continued)

2008-03-07 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team

Hi João,

Joao Henrique Silva Santos wrote:

I want to maintain the expanded/collapsed-status of my panels when
surfing my xwiki.

I've seen the post
http://lists.xwiki.org/pipermail/users/2008-March/010746.html :

  


I think it would be ok to follow the original thread ;-)

To maintain the status while surfing the wiki is the default behavior. 
Do you get a different thing? Does your browser accept cookies?




However, I can't see the code used for XWiki panels since I can't
enter edit mode.
I really want to see how to implement those cookies, so if I'm looking
in the wrong place, where can I search it?


I read your wiki, thus if you have installed it I don't understand why 
can you not enter edit mode? Even tough you have installed the default 
.xar, you can gain access by using Admin as username and admin as 
pasword. See this...


http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HInstallingtheDefaultWikiXAR

The code controlling status cookies is in macro.vm template. Look for it 
in the /templates folder under /xwiki. You must want to find macros 
panelheader and largepaneheader.


Hope this helps,

Ricardo


--
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] [ANN] XWiki Enterprise 1.3 Released

2008-03-08 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Vincent Massol wrote:
 The XWiki development team is pleased to announce the release of XWiki 
 Enterprise 1.3 final.

Congratulations! Thanks for the effort!

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


[xwiki-users] trying to understand colorsblack.css - background-image

2008-03-08 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi,

I'm trying to customize a number of XWiki installations to be able to 
show its potentialities minimizing the effort invested in modifying its 
apparency. Using 1.3-SNAPSHOT.8231.

At the moment is out of my capacities to understand how Toucan has been 
developed and is evolving, but I saw that copying a number of templates 
and CSS files to the folder of a new skin helps a lot.

If I copy colorsblack.css to the new skin folder, it is quite easy to 
modify margins, font sizes and other properties. But I would like to 
understand how does the url in the background-image property work. For 
instance here:

#globallinks {
background-image:url(headerperso-bg.jpg);
background-position:left bottom;
}

It seems that headerperso-bg.jpg is picked up from Albatross skin, the 
base one, and not from the new skin folder where colorsblack.css is 
stored. By using Firebug I can see that it is that new CSS the one the 
site is using.

I can use any absolute URL there and it works fine.

Please, is this the expected behavior or must the browser pick up the 
new background stored in the new skin folder? Am I missing or 
misunderstanding anything? Thanks!

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Do you like our new T-Shirt?

2008-03-09 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team

Hi Vincent,

It will be with pleasure that we order a number of them for our TeamMates!

In fact I would like to add a Powered by XWiki motto and XWiki logo to 
the T-shirt we are designing for our volley, basket and street-hockey 
teams! (well, in the street-hockey case is more a bunch of crazy 
rollers... :-)


Considering we are not playing Premier League, what are the conditions 
we must follow to wear the XWiki logo? Is there a vectorial format file 
available with the logo?


We would like a reverse option: black background, so we need a 
different color for the X. Could you propose it? Thanks!!!


Greetings,

Ricardo


Vincent Massol wrote:

Hi,

Here's the new T-shirt that we're planning to print:
http://www.xwiki.com/xwiki/bin/download/Blog/NoTShirtYetCeBIT2008/TSHIRTCEBIT9.png

WDYT? Do you like it? Would you wear it? :)

(Full story at CEBIT here:
http://www.xwiki.com/xwiki/bin/view/Blog/NoTShirtYetCeBIT2008) 
http://www.xwiki.com/xwiki/bin/view/Blog/NoTShirtYetCeBIT2008


Thanks
-Vincent


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



--
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] trying to understand colorsblack.css - background-image

2008-03-09 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Chengmin Ding wrote:
 I am not sure if the following suggestion will help but it helps me
 solve a websphere portal related skin/theme problem recently.
 If there is any background tag or background-image defined after the
 background-image in your skin, the later background tag will overwrite
 your background-image tag defined previously. So you can try to use
 background instead of background-image to check or rearrange the
 sequence of your css file so your skin's tag is the last to fire on.

 -Chengmin

Thanks for the tip.

I think this was not the case here. The point was that all background 
tags worked fine, but images where loaded from the base skin instead of 
from the folder where the CSS for the customized skin is stored.

I've just upgraded to 1.3 and it is working fine now. I don't know why, 
but it seems that any of the changes done between 1.3RC1 and 1.3 
affected this behavior. Great! Although I've learned nothing :-(

I know skins and in general interface issues are hot issue right now, so 
I will try to stop finding fancy solutions and keep an eye on 
http://dev.xwiki.org/xwiki/bin/view/Design/InterfaceExtensions :-)

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] ghost document

2008-03-09 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
[Ricardo Rodriguez] wrote:
 Sorry for insisting on this topic, but I have at least an annoying
 aesthetic problem that is causing me some problems here. You will see in
 the following link two documents starting with PCI. The second one, PCI/...
 points to nothing.

 http://mire.environmentalchange.net/~webmaster/images/GhostPci.png

 May I simply delete this document from the database without affecting its
 integrity?

 Thank you so much for your help,

 Ricardo
   
Done! See 
http://www.xwiki.org/xwiki/bin/view/FAQ/HowToDeleteAnInaccessibleDocument

Thanks,

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] panel background

2008-03-09 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Vincent Massol wrote:
 yes that's what we do in the toucan skin for the search panel.

Done! Thanks.

It is just a matter of creating a div DivName within the panel and a 
new #DivName in one of the CSS files. I've create it in style.css.

I'm guessing if MergeCSS Snippet could be the tool to avoid modifying 
default css as IncludeMacro avoid to modify default macro.vm. Isn't it? 
Thanks.

Best,

Ricardo


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] panel background

2008-03-09 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team

Vincent Massol wrote:


Not sure I understand what you mean ;)

  


Some time it is easier to ask directly instead of doing weird things :-( 
Sorry for not being clearer.


The point is that by using macro.vm I can easily add new macros to our 
sites without needing to modify macros.vm. This way, our customizations 
are completely independent of the base skin and updates are pretty 
straightforward.


Now that following your advise I have learned how to control panels' 
appearance by using CSS, it will be great to have a tool to include new 
CSS code in the rendering process without modifying the default css 
files. This way, as with the macros, I have not to be concerned about 
overwriting old default css while updating.


The only tool I founded in xwiki.org that I guess could do something 
like this is MergeCSS. But I don't understand well how it could be used.


Hope this is a bit clearer now. Thanks for your patience!

Ricardo

--
Ricardo Rodríguez
Your EPEC Network ICT Team

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


[xwiki-users] contentcontainerinner background

2008-03-09 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi,

Working with XWiki 1.3 and Albatross skin I've successfully changed the 
background of the inner content container by editing colorsblack.css 
this way...

.content #contentcontainerinner, .contenthideright #contentcontainerinner {
background-image:url(MyBackGroundImage.png);
background-position:right top;
background-repeat:no-repeat;
}

My challenge now is to be able to set a different background on per 
space basis.

By googling on this topic, I've found a number of reference using 
JavaScript to dynamically change CSS.

Please, is this the path I must follow in this case or could I find 
other alternative in XWiki? Thanks!

Best,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] null pointer in preferences

2008-03-11 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Thanks Al,

I've a pending update to 1.3 here, so any information about the behavior 
of your installation will be welcome.

Cheers,

Ricardo


Alberto Squassabia wrote:
 Ricardo:

 Thanks so much for picking this up.  And thanks for a
 great wiki.

   
 1. desc xwiki.xwikircs
 2. select count(*) from xwiki.xwikircs where
-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] installation problems

2008-03-11 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi, Yishay,

Yishay Mor wrote:
 Hi all,

 I'm trying to install xwiki 1.3 on a Mac XSERVE Leopard (osx 1.5) 
 server, and I'm not getting very far.

 I downloaded the war, opened http://localhost:8080/manager/html, and  
 deployed.
 My manager shows XWiki up and running.
 I click http://localhost:8080/xwiki and get redirected to 
 http://localhost:8080/xwiki/bin/view/Main/WebHome
 and then I get a blank page.
 same for http://localhost:8080/xwiki/bin/admin/XWiki/XWikiPreferences

Just to be sure, have you edited your hibernate.cfg.xml? It is a bit 
strange that you get a blank page instead of an error, but...

Another doubt, does XServe Leopard has a firewall? Is port 8080 accessible?

My 2 c.,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] contentcontainerinner background

2008-03-11 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Benjamin, Vincent,

Thanks for your answers.

Please, forgive me if I am missing something obvious (I am on the road 
plugging in here and there :-) ... How to I apply a skin to a page? I've 
tried by adding a XWiki.XWikiSkins object to each page I want to be 
displayed with a given skin but it doesn't work for me.

Thanks!!

Ricardo

Vincent Massol wrote:
 You can also replace the css used in the Admin  Preferences  Skin. 
 There's a field for it.

 This it's easy to create a custom css file and do an import of the 
 style.css inside.

 Thanks
 -Vincent

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] collapsed panels (continued)

2008-03-12 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi Joao! Sorry for being late with this answer...

Joao Henrique Silva Santos wrote:
 Hi Ricardo.
 First, I would like to say thanks for the reply.

 The reason I didn't reply to the original thread is because I was not
 registered at the time, and so I did not have the post on my inbox to
 reply.

   
OK. I should have supposed something like this. Perhaps Nabble could 
help in this situations. Although you have already found this, it could 
be helpful to follow any other thread of which you have not the starting 
point in your inbox...

http://www.nabble.com/XWiki-f2563.html

I also use this tool when the account I have registered with in the list 
can not be used to send from a given location. I frequently have this 
problem.

I have not a clear idea about how frequently Nabble synchronizes with 
lists contents. But it eventually works!
 As for cookies, yes, my browser does accept them (I'm using firefox
 but there is also this behaviour for IE 6 and 7 browsers).

 When I say I can't enter edit mode I wasn't refering to my wiki :),
 but to Xwiki's wiki.
 I've already seen macro.* (I even edited so that my panels are
 collapsed by default), but can't find anything regarding...

New messages give more information than this entry, thus I am moving 
there to follow the flow!

Cheers,

Ricardo


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] upgrading xwiki 1.2.2

2008-03-12 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi Joao,


Joao Henrique Silva Santos wrote:
 Hi.

 I have installed an XWiki 1.2.2 through a XWiki Enterprise ZIP, and
 now want to upgrade to 1.3.
 From the documentation, it seems that easy upgrades of the wiki
 require the WAR installation, which I have not done. Do I have to
 export my current wiki into a WAR (if so, how can I do it?), or is it
 done through a different method?


Have you checked out Upgrading an XWiki Installation in the following 
location?

http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation

HTH,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] hello :D

2008-03-12 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team

Hi Grabriela,

Gabriela Radu wrote:


 hello
regarding the css use for links ..
th{style:type=div|align=left}*{style:type=span|font-size=12px|color=#ff|background-color=#FF}style 
a {color:#FFCCDF;}[Review product feedback to 
designersRev_Desfeed]/style{style}*{style} /th
it does not work..it just shows me the css code...but the colors are 
the same(default)
that is why i said last time that i don't think i get the use of css 
in xwiki. can u help me with it, pls?

thanks


I am trying to understand what you are trying to do... Are you including 
this code in a XWiki page?


XWiki look and feel is completely controlled by CSS, JS and Velocity 
macros. Each time is easier to modify some characteristics of the layout 
although it is by no means easy to understand/control the whole thing!


If you want to use CSS to control the appearance of your contents or the 
layout of your wiki, these could be good starting points...


http://platform.xwiki.org/xwiki/bin/view/AdminGuide/CSS+files

http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Skins#HCreatingawholenewskin

Just my two cents,

Ricardo

--
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] upgrading xwiki 1.2.2

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi,

Joao Henrique Silva Santos wrote:
 Hi
 Yes, I did, but it only mentions the WAR distribution upgrade. Or am I
 mis-reading it?

Touché! :-) Good point. It was me myself who misread your message.

I've once downloaded and used a zipped distribution to debug a problem 
with MySQL (following Vincent advice) and all what I did was to remove 
the folder of the hsqldb database (I don't remember the name and some 
xwiki.org sections are now down for maintenance, but it was easy to 
locate) and configure hibernate.cfg.xml accordingly.

So I am *guessing* that all you have to do is to bring down your servlet 
container, create a backup copy of the whole /xwiki directory structure 
(jsut in case!), put in place the new zip contents, copy your current 
database to the new location and start the container again.

Please, let me knows if this helped. It could be helpful for others if 
we could create a FAQ about this (if it doesn't existe yet!) Thanks.

Best,

Ricado

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] installation problems

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi,

Yishay Mor wrote:
 Thanks Ricardo,

 My server's 8080 is behind a firewall, but I can see it and have no 
 problem running other JSP / servlets.

If you can manage your network, could you try by stopping the firewall? 
I am guessing it could be easy for you if xwiki and MySQL are running on 
the same server and you have an administrative account there. It is 
weird that you don't get errors if you had not hibernate.cfg.xml 
configured and a MySQL drivers in place.

Could you also take a look to your catalina.out and/or the console of 
your server? There must be useful information there.

 thanks for reminding me about hibernate.cfg.xml
 I also realized that I hadn't installed a MySql driver in WB-INF.
 However, even though I fixed these two issues, I'm still getting a 
 blank page.

 Also, I wasn't sure with settings to use in hibernate:

Use always the uncommented lines from your current release as the base 
for your configuration. Documentation is mostly manually updated, so 
there could be changes not reflected there. This is a wiki, so our 
contribution will be welcome... when we know what we are doing :-)

Thanks!

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] collapsed panels (continued)

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Joao Henrique Silva Santos wrote:
 Hi, Ricardo

 I've tested your macro and it behaves just as before..
 I guess I'll try to upgrade the wiki and see if it is one of the solved bugs.

 regards,
 Joao
Could I access to your wiki to see how do the panels behave from here?

I will set some panel in our wikis using this same macro to see if they 
work fine for you as they do for me.

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] upgrading xwiki 1.2.2

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Great!

Joao Henrique Silva Santos wrote:
 Hi.
 I've upgraded the xwiki from 1.2.2 to 1.3 final using the zip distributions
 All I did was:

 1 - copy the entire directory to a backup folder
 2 - unzip the 1.3 zip file xwiki-enterprise-hsqldb-1.3.zip
 3 - deleted the newly created database ($XWIKI_HOME/database), and
 replaced it with the backed up database folder.
   

I think this path could go in a FAQ entry. Perhaps it does not make 
sense to propose a way of updating from the zipped standalone 
distribution running on Jetty/hhsqldb to the war one. The standalone 
release is intended to entry level users, and it would be advisable to 
move to the war distribution running on whatever servlet container and a 
relational database like MySQL or Oracle. But you have your contents in 
the standalone version... what database are you planning to run with 
XWiki war?
 Then I wanted to implement the changes I had made on the 1.2.2
 albatross skin, but since I could not find where to make some changes
 (namely how to change the url of the wiki icon, which was defined on
 global.vm), I decided instead to:

 4 - rename albatross (in webapps/xwiki/skins) to albatrossORIGINAL;
 5 - copy to the skins folder the albatross folder from my backed up
 1.2.2 xwiki
   

This is not a good idea. Albatross has changed a lot since 1.2.2 times 
(better, the pair Albatross/Toucan :-), so I think you MUST use the new 
release. I will be glad to help you to recover your customized behavior, 
but first of all we need to work out the collapsed/expanded panels issue.

What do you think?

Saúde,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


[xwiki-users] #includeMacros(macrosDocument)

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Please, where must I include a #includeMacros macro to have the macros 
defined there available for any document in a wiki?

I see the Macro Mapping field in Administration  Preferences  
Advanced, but I am not able to find how to use it. I've tried by putting 
the macros there, the macro there calling a document with the macros' 
definition,.. but none of these worked. A modified macros.vm does perfect.

Thanks for your help,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] #includeMacros(macrosDocument)

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Sergiu Dumitriu wrote:
 If it doesn't have to be a wiki document, then the best thing to do is 
 to write a mymacros.vm file, put it somewhere, like /skins/mymacros.vm, 
 and register it in /WEB-INF/velocity.properties (search for macros.vm 
 and append it there).
   

Thanks Sergiu. This surely works, but it will imply to keep track of a 
change done in another XWiki configuration file. Of course is not big 
deal to add it to xwiki.cfg and hibernate.cfg.xml that have to be 
changed after each update. I think the approach proposed by Guillaume 
avoid it.

Is there any performance difference between both methods I must take 
into account?

Thanks!!

Ricardo


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] #includeMacros(macrosDocument)

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Guillaume Lerouge wrote:
 First you need to put all your macros in one page, let's say 
 XWiki.MyMacros . Then you'll have to go to the Administration, Tab 
 Preferences, Line Advanced. Then put the name of your page in the 
 Velocity Macro Pages field (you can put only one page there for 
 performance reasons). So you'll have :

 Velocity Macro Pages :
 XWiki.MyMacros

 Then save the page. You can now call your macros from wherever in the 
 wiki.

Thanks, Guillaume. It works fine. I was putting the document in the 
wrong method. Is it worth a FAQ entry?

Are you aware of any performance difference between this approach and 
the one prosed by Sergiu?

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] #includeMacros(macrosDocument)

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Sergiu Dumitriu wrote:
 Just looked at the code to see how it works.

 Registering in velocity.properties causes the file to be parsed once 
 when the platform starts.

 Registering in XWikiPreferences causes the file to be parsed for each 
 line (!) of the parsed document.

 
Thanks!

Far clear! To look at the code is my main pending issue :-(

Keep trying to survive with the help of the community,

Ricardo


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] collapsed panels (continued)

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Sergiu Dumitriu wrote:
 Found the problem. The panels that have a space in the document name 
 don't work. Cookie names cannot contain spaces, so when setting and 
 checking the cookie the script should remove any spaces.
   

Experience again! And systematic... :-) Thanks!

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] collapsed panels (continued)

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team

Sergiu Dumitriu wrote:


Can you try and fix the js?
Thanks
  

I'll try! Thanks.

Ricardo

--
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] upgrading xwiki 1.2.2

2008-03-14 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team

Joao Henrique Silva Santos wrote:


I'll make a post in the FAQ.
As for the database, I'm not sure, since I'm not responsible for the
server and don't know yet what database and servlets are availabe.
Will try to find out...


Great! As for the database, I think I could offer you temporal hosting 
for a small MySQL database here. Let me know if you consider it will 
help you to convince your administrator that to host MySQL there (or any 
other option) will be a good idea.

I think you're right, even with the collapsed panels problem solved.
Just have to find a time when I can allow myself to break the layout
of the wiki. Even though the page its in the very early construction
phase, I have couple of co-workers who also make contributions.

So my first question regarding the albatross skin is the following:
Since the global.vm file is missing, and at least a few of the
properties it defined are now elsewhere (such as colors.css), while
others are not, should I create a new global.vm or is it entirely
deprecated?
In my case, I want to modify the url of the main logo, which was
defined in global.vm as

[...]
  div id=company
  div id=companylogo
a href=SOMEURL
[]


Nope, global.vm is by no means deprecated! But it is now stored in the 
/templates folder under /xwiki. All Velocity templates have been moved 
there.


But if you create your own skin and put a global.vm file there, it will 
take precedence over the one in /templates.


Take a look to this...

http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Skins#HCreatingawholenewskin

This might help.

Cheers,

Ricardo

--
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] changing some layout details in a single page

2008-03-14 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team

Guillaume Lerouge wrote:
What you can do is to append ?skin= at the end of your page name to 
force it to use that given skin, for instance :


mywiki.com/xwiki/bin/view/Main/WebHome?skin=albatross 
http://mywiki.com/xwiki/bin/view/Main/WebHome?skin=albatross (or toucan)


Then you can add this code to your selected pages (it's not clean but 
it will work) :


#if(!$request.skin || $request.skin  $request.skin != 'myskin')

#set($skin = '?skin=myskin')

#set($url = $xwiki.getURL($doc.fullName))

#set($pageurl = $url + $skin)

$response.sendRedirect($pageurl)

#end


Oh! How powerful is this stuff! The only problem is to know how to use 
all the resources this framework provides us.


Don't you think this must go to Code Snippets?

Thank you so much,

Ricardo

--
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Custom Default Skin Everywhere, Except Login Page

2008-03-14 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Andrew Hughes wrote:
 Hi All,

 I've changed my default skin to a custom skin. Once logged in all 
 users on all pages get this default theme :)

 However, the login page has the albatross theme still. I've tried 
 adding skin=myskin on the end and that works brilliant. But that's 
 not good behaviour.

 What am I missing in order to fix this?

Have you set Always authenticate on viewing: to Yes?

HTH,

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] changing some layout details in a single page

2008-03-15 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Sergiu Dumitriu wrote:
 A shorter code:

 #if($!request.skin != myskin)
 $response.sendRedirect($doc.getURL(view, skin=myskin)
 #end

   
Much more elegant :-) Must this go to a code snippet entry? Thanks!

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] changing some layout details in a single page

2008-03-15 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team

[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:

Sergiu Dumitriu wrote:
  

A shorter code:

#if($!request.skin != myskin)
$response.sendRedirect($doc.getURL(view, skin=myskin)
#end

  


Much more elegant :-) Must this go to a code snippet entry? Thanks!

Cheers,

Ricardo

  
Oops! Sorry, I've misread Guillaume's last message. Adding a snippet 
code entry...


Best,

--
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] changing some layout details in a single page

2008-03-15 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Done!

http://code.xwiki.org/xwiki/bin/view/Snippets/ForceSkinSnippet

Thank you so much,

Ricardo

Sergiu Dumitriu wrote:
 Also, I forgot a closing )

 $response.sendRedirect($doc.getURL(view, skin=myskin))
   

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] panel background

2008-03-15 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team

Thanks JV!

Jean-Vincent Drean wrote:


Looks like Skin Extensions
(http://dev.xwiki.org/xwiki/bin/view/Design/SkinExtensions) are what
you're looking for.
Sergiu  Marta are currently working on it :
http://markmail.org/message/oa6f6olzm7iwnpkk?q=xwiki+list:org%2Exwiki%2Edevs+1%2E4+roadmap


Thanks for the tip.

I was guessing why I was not aware of this proposal. The reason is 
simple: I was lost with the XE 1.4 roadmap and I am afraid I am not 
paying enough attention to the xwiki.org RSS feed... :-(


The proposal seems of maximum interest for those of us considering the 
final appearance of a page in the a web browser as the result of a huge 
number of interactions between available information, features, user 
preferences and rights, corporation policies and design work. Once 
again, I am sure XWiki will give me many, many. many days of happiness! 
:-) Thanks to the XWiki Team and Community for the great work.


Ricardo
**

--
Ricardo Rodríguez
Your EPEC Network ICT Team

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


[xwiki-users] updateName() usage

2008-03-16 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi,

Please, allow me to repost this question as a new thread although it is already 
posted deep in a previous one.

I see updateName() extensively used in XWiki to remove spaces and forbidden 
characters from document titles.

I was wondering if this XWiki helper javascript method could be used to remove 
spaces from 
any other string. If it is possible, please, could anybody post an example of 
how to use it?

Thank you.

Best regards,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] how can i see the created tables from xwiki db?

2008-03-17 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team

Hi,

Gabriela Radu wrote:

hi.
i don;t want to export my projects, i just want to see the tables that 
xwiki creates when i make a new space(project). how can i see that? 
like in using mysql you can see the db from the .sql . do i have 
something similar here? pls say yes :)

Thank you!
 


Hi Gabriela,

I am not sure what are you looking for, but I think that you must we 
aware about the fact that no new table is created when you create a new 
space. In fact a new space exists when a page is created on it. And it 
will be removed when all the pages belonging to it are deleted. So, new 
pages/spaces are stored in the predefined database structure.


XWiki has its own methods that will probably allow you to get what you 
want. For instance, look at the My Recent Modifications panel code:


#set($recentDocs = $xwiki.searchDocuments(where 1=1 and 
doc.author='$context.user' order by doc.date desc, 5, 0))

#if($recentDocs.size()  0 || $showEmptyPanels)
#panelheader($msg.get(My Recent Modifications))
#set($first = true)
#foreach($docname in $recentDocs)
#set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument())
#if($first == true)
#set($first = false)
#else
span class=pitemseparator | /span
#end
span class=panelitema 
href=$rdoc.getURL(view)$rdoc.displayTitle/a/span

#end
#panelfooter()
#end

The first Velocity directive, #set, uses a method searchDocuments() of 
the $xwiki class to pass a given set of documents to $recentDocs. Its 
argument contents pure SQL: where 1=1 and doc.author='$context.user' 
order by doc.date desc :-)


On the other hand, it is possible to use SQL within XWiki. See this 
Groovy snippet...


%
import groovy.sql.Sql
db = Sql.newInstance(jdbc:mysql://YourHots/YourDatabase, username, 
password, com.mysql.jdbc.Driver)
List YourResults = db.rows('SELECT * FROM tablename s where field1 like 
I and field2 like A and field=1')

%

It allows you to use SQL statements and get the results on your XWiki 
page. It, of course, can ask XWiki schema as well.


Hope this helps,

Ricardo

--
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] BulletinBoard application installation

2008-03-17 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi Glenn,

Glenn Everitt wrote:
 Thanks for the quick reply - my apologies for the double post.   I've been
 nabble-d.   Nabble said it wasn't posted so I deleted the post but it
 didn't...I need to work on my patience.  All the ways to extend Xwiki make
 it a very interesting platform - especially things like the Bulletin Board. 
 It great from user perspective the user interface is consistent.  Nice from
 admin viewpoint, same security / group / roles model.

 Glenn Everitt

I've also had this same problem with Nabble: it claimed the message was 
not posted when it really was. I've read in some previous thread 
something about going the Jive way.

We have been using Jive for several projects here: it will be really 
great to see XWiki managing this list and devs one allowing users to 
read/post messages without needing a desktop email client. A configured 
desktop client is not always available while on the road, or POP3 and 
SMTP ports are blocked in some locations. Thus, to be able to use port 
80 to follow the opened threads is useful in these situations.

The discussion is within the  [xwiki-users] Managing emails in XWiki 
(was Re: Roadmap for XE 1.4) thread.

Just my two cents,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] collapsed panels (continued)

2008-03-17 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi,

Sergiu Dumitriu wrote:
 Can you try and fix the js?
 Thanks
   

I didn't fix the js, but this works for me. It works with any (well, at 
least one, two or three) white spaces between words in the panel 
document name. I've only removed the spaces from the cookieName by using 
the replace() method. Thanks to Jonathan Revusky in the Velocity Users List!

$initialState must be set in the panel code. It has two posible 
values/states: collapsed or expanded. Thus, the schema of a new panel 
would be...

#set($initialState= [collapsed|expanded])
#panelheaderc (Panel Title)
[panel content]
#panelfooter ( )

May I use this syntaxis, [collapsed|expanded], to represent alternative 
content?

And the macro will be...

#macro(panelheaderc $title)
#if($initialState == collapsed)
  #set($alternativeState = expanded)
#else
  #set($alternativeState = collapsed)
#end
#set($cookieName = ${context.user}_${panel})
#set($cookieName = $cookieName.replace( , ))
#set($expanded = $initialState)
#set($expanded = $xwiki.getUserPreferenceFromCookie($cookieName))
## Note: We pass the Panel name as an HTML class attribute so that it's 
possible to style
## the Panels selectively using CSS.
#set ($specialClassAttribute = )
#if ($paneldoc  $paneldoc != )
  #set ($specialClassAttribute = 
$util.convertToAlphaNumeric($paneldoc.name))
#end
div class=panel $expanded $specialClassAttribute
h5 class=xwikipaneltitle onclick=if(eltHasClass(this.parentNode, 
'$initialState')) createCookie('$cookieName','$alternativeState', ''); 
else eraseCookie('$cookieName'); 
togglePanelVisibility(this.parentNode);$title/h5
div class=xwikipanelcontents
#end


I will move this to an ad hoc Jira issue. Thanks!

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] XWiki Goodies Coming Ahead !!

2008-03-17 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Great!!!

Guillaume Lerouge wrote:
 Hi fellow XWikiers,

 We teased you with a few exclusive t-shirt pictures 2 weeks ago... The 
 time has now come to offer our community the opportunity to enjoy them 
 too !
...
 We hope to see you all wearing XWiki apparel soon ;-)

 On behalf of the XWiki Development Team,
 Guillaume

 PS : Ricardo, we'd be glad to see the XWiki logo on your sports teams 
 shirts :-) You'll find all the images you'll need on the Goodies page 
 mentioned above. Don't forget to send us the pictures when you wear 
 them - and win ! :-)

Of course we do realize that you would prefer Real Madrid or Barcelona 
footbol club to wear XWiki stuff, but be sure: you have here a bunch of 
brave XWiki logo warriors! :-)

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] how can i see the created tables from xwiki db?

2008-03-17 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team

Gabriela Radu wrote:

hi.
i don;t want to export my projects, i just want to see the tables that 
xwiki creates when i make a new space(project). how can i see that? 
like in using mysql you can see the db from the .sql . do i have 
something similar here? pls say yes :)

Thank you!


Hi Gabriela,

Perhaps you want to be aware of this...

http://code.xwiki.org/xwiki/bin/view/Snippets/HQLQueryTesterSnippet

Coming from [xwiki-users] hibernate query explorer? thread. Posted by 
Jean-Vincent Drean.


Cheers,

Ricardo

--
Ricardo Rodríguez
Your EPEC Network ICT Team

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


  1   2   3   >