Re: [xwiki-users] velocity escape char [ ]

2008-04-14 Thread raffovi

Yes I tried but it doesn't work.

The result is \0\

Thanks
Raffo



Guillaume Lerouge wrote:
 
 Have you tried with \[0\] ?
 
 On Fri, Apr 11, 2008 at 2:14 PM, Raffaele Viola [EMAIL PROTECTED] wrote:
 
 Hi all,

 I'm try to use javascript into a macro like this
 document.getElementById('levelone').options[0] = new Option(-Empty
 \*-,);
 but whe it is executed what I get is
 document.getElementById('levelone').options0 = new Option(-Empty
 \*-,);
 How can I solve this problem???

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

 
 
 
 -- 
 http://wikibc.blogspot.com/
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 

-- 
View this message in context: 
http://www.nabble.com/velocity-escape-char-tp16631208p16674519.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

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


Re: [xwiki-users] Issue when using foreign database

2008-04-14 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Morning!

rssh wrote:
 Something really change.

 let's test all steps.

  1. plugin is installed.
 test page:
  $plugin = $xwiki.sql
  plugin is $plugin
 (page must print something like 
   'plugin is ua.gradsoft.xwikisql.SqlPluginApi$'
  )

 2. database is retrieved
 test page:
  $plugin = $xwiki.sql
  plugin is $plugin
  br
  $db = $plugin.getDatabase('myDs');
  db is $db
  
 (page must print something like 
   'plugin is ua.gradsoft.xwikisql.SqlPluginApi$'
   db is '$db' 
(if it was not found)
  )
   
Here the results...

http://mire.environmentalchange.net/~webmaster/images/XwikiSqlTest.png
  and in xwiki.log we will see error message.

 (also, check, that you have no entry
  xwikisql.logEnabled=false
 in you xwiki.cfg
 )
   

No error was logged in xwiki.log. There is no such an entry in 
xwiki.cfg. Here the logj.properties in /classes...

http://mire.environmentalchange.net/~webmaster/txt/log4j.properties.txt


 If not - something very strange, will think about new experiments.

   

Sorry for not being of much help!!! Please, let me know what else 
must/could I try here. 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] Issue when using foreign database

2008-04-14 Thread rssh
On Mon, 14 Apr 2008 11:33:19 +0200, [Ricardo Rodriguez] Your EPEC Network ICT
Team wrote
 Morning!
 

 Yet one quick question: are you have programming rights ?

(I trying reproduce situation and still can't understand it)

 rssh wrote:
  Something really change.
 
  let's test all steps.
 
   1. plugin is installed.
  test page:
   $plugin = $xwiki.sql
   plugin is $plugin
  (page must print something like 
'plugin is ua.gradsoft.xwikisql.SqlPluginApi$'
   )
 
  2. database is retrieved
  test page:
   $plugin = $xwiki.sql
   plugin is $plugin
   br
   $db = $plugin.getDatabase('myDs');
   db is $db
   
  (page must print something like 
'plugin is ua.gradsoft.xwikisql.SqlPluginApi$'
db is '$db' 
 (if it was not found)
   )

 Here the results...
 
 http://mire.environmentalchange.net/~webmaster/images/XwikiSqlTest.png
   and in xwiki.log we will see error message.
 
  (also, check, that you have no entry
   xwikisql.logEnabled=false
  in you xwiki.cfg
  )
 
 
 No error was logged in xwiki.log. There is no such an entry in 
 xwiki.cfg. Here the logj.properties in /classes...
 
 http://mire.environmentalchange.net/~webmaster/txt/log4j.properties.txt
 
  If not - something very strange, will think about new experiments.
 
 
 
 Sorry for not being of much help!!! Please, let me know what else 
 must/could I try here. Thanks!
 
 Cheers,
 
 Ricardo
 
 -- 
[UTF-8?] Ricardo Rodrцґguez
 Your EPEC Network ICT Team
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




--
Ruslan Shevchenko
GradSoft. http://www.gradsoft.ua

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


Re: [xwiki-users] Issue when using foreign database

2008-04-14 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
rssh wrote:

  Yet one quick question: are you have programming rights ?

 (I trying reproduce situation and still can't understand it)

   
Quick answer:

Yeap! Default Admin user BUT virtual wiki! Let me try in the main wiki...

Cheers,

Ricardo

-- 
Ricardo Rodri'guez
Your EPEC Network ICT Team

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


[xwiki-users] [ANN] XWiki Workspaces 1.0 RC 1 Released

2008-04-14 Thread Jerome Velociter
The XWiki development team is pleased to announce the release of XWiki
Workspaces 1.0 RC 1.

Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download

This is the first release candidate for the 1.0 version of XWiki
Workspaces. A second release candidate is planned for next monday, before
hopefully being able to deliver the 1.0 final release.

Bug fixed since 1.0 Milestone 2 :

* XWS-17 - JavaScript error when uploading photos
* XWS-29 - With IE6, selected users does not appear in the list when
adding members to a space group
* XWS-33 - On a private workspace, only admins can access content, not
writers and readers
* XWS-37 - Readers are not displayed in the directory of a space
* XWS-38 - List numbers are not shown in the WYSIWYG  view mode
* XWS-40 - Lightboxes are displayed real bad in IE6
* XWS-41 - Writers and readers rights are inverted in a workspace
* XWS-42 - Impossible to set a category for a Wiki Page : the active
field is automatically changed when we click on the categories Select
* XWS-43 - A macro is not evaluated when comparing two versions
* XWS-49 - The tooltips displayed when we are over the My Profile 
MyDashboard buttons are not translated
* XWS-50 - The dates are formated differently on the different pages
* XWS-56 - Comments do not show up anymore in wiki pages, blog posts
and photo albums
* XWS-59 - Missing activitystream hibernate mapping in the war
distribution
* XWS-60 - Galleries with empty description generates two entries in
gallery list

For more information, see the Release notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesWorkspaces10RC1

Regards,
The XWiki dev team

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


Re: [xwiki-users] Issue when using foreign database

2008-04-14 Thread rssh
On Mon, 14 Apr 2008 16:36:59 +0200, [Ricardo Rodriguez] Your EPEC Network ICT
Team wrote
 [Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
  rssh wrote:

   Yet one quick question: are you have programming rights ?
 
  (I trying reproduce situation and still can't understand it)
 

  
  Quick answer:
 
  Yeap! Default Admin user BUT virtual wiki! Let me try in the main wiki...
 
  Cheers,
 
  Ricardo
 

 Same behavior in the main server: no message recorded in xwiki.log. 
 Same answer to the document scripts:
 
 *
 plugin is installed
 
 $plugin = [EMAIL PROTECTED] plugin is $plugin
 
 database is retrieved
 
 $plugin = [EMAIL PROTECTED] plugin is $plugin
 $db = $plugin.getDatabase('myDs'); db is $db
 *
 

And what container you use ?
 This is jetty or apache ?

(btw,
1. if 'myDs' does not exists $plugin.getDatabase('myDs') must return valid
 SqlDatabase, which will throw exception on first SQL sentence)

2. test page is incorrect (my fault - I was mean velocity syntax of assigment
but write simple assigment). I. e. instead:
 test page:
  $plugin = $xwiki.sql
  plugin is $plugin
  br
  $db = $plugin.getDatabase('myDs');
  db is $db 

must be:
#set($plugin = $xwiki.sql)
plugin is $plugin
br
#set($db = $plugin.getDatabase('myDs'))
db is $db 

And we will have something like 
[EMAIL PROTECTED]
[EMAIL PROTECTED] 

Then let add's add at end:

$db.wasError()br
$db.getLastException()

We must have something like
true
javax.naming.NameNotFoundException: Name UNEXISTENT is not bound in this Context

Is this true ?

P.S. looks like I just reproduced this effect and will publish fix tomorrow.


--
Ruslan Shevchenko
GradSoft. http://www.gradsoft.ua

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


Re: [xwiki-users] Issue when using foreign database

2008-04-14 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
rssh wrote:
 And what container you use ?
  This is jetty or apache ?
   

Tomcat. I guess when you say Apache you mean Apache Tomcat, doesn't you?
 (btw,
 1. if 'myDs' does not exists $plugin.getDatabase('myDs') must return valid
  SqlDatabase, which will throw exception on first SQL sentence)

 2. test page is incorrect (my fault - I was mean velocity syntax of assigment
 but write simple assigment). I. e. instead:
   
 test page:
  $plugin = $xwiki.sql
  plugin is $plugin
  br
  $db = $plugin.getDatabase('myDs');
  db is $db 
 

 must be:
 #set($plugin = $xwiki.sql)
 plugin is $plugin
 br
 #set($db = $plugin.getDatabase('myDs'))
 db is $db 

 And we will have something like 
 [EMAIL PROTECTED]
 [EMAIL PROTECTED] 
   

Not only your fault! I've not been critic with your code and the lacking 
set was obvious! Sorry.
 Then let add's add at end:

 $db.wasError()br
 $db.getLastException()

 We must have something like
 true
 javax.naming.NameNotFoundException: Name UNEXISTENT is not bound in this 
 Context

 Is this true ?

   

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

The message in Spanish is equivalent to the version in English you have 
posted upper here.

Yeap, it is true!

No messages in xwiki.log yet.
 P.S. looks like I just reproduced this effect and will publish fix tomorrow.


   
Cool! I will be pending of this update and try it here ASAP. Thanks!

Greetings,

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] Issue when using foreign database

2008-04-14 Thread rssh
On Mon, 14 Apr 2008 23:56:09 +0200, [Ricardo Rodriguez] Your EPEC Network ICT
Team wrote
 rssh wrote:
  And what container you use ?
   This is jetty or apache ?
 
 
 Tomcat. I guess when you say Apache you mean Apache Tomcat, doesn't you?

yes.

So, the diff to right solution is in attachment. (and by url:
http://xwikisql.googlecode.com/files/xwiki-sql-plugin.1-4.2.patch
)

I will publish next version which will include those fixes during this week.

(Btw - can you send me files with commented out sql types -- so I will prepare
version for JDK-1.4)

 

 Cool! I will be pending of this update and try it here ASAP. Thanks!
 
 Greetings,
 
 Ricardo
 
 -- 
 Ricardo RodrМguez
 Your EPEC Network ICT Team
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users



--
Ruslan Shevchenko
GradSoft. http://www.gradsoft.ua

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


Re: [xwiki-users] Issue when using foreign database

2008-04-14 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
rssh wrote:
 (backup file: SqlDatabase.java.bak.java
  if we have SqlDatabase.java, than .bak.java can be deleted)

   

My fault: I'd renamed the old SqlDatabase.java to *.java.bak but my 
clever MacBook had added .java to the file and I didn't realize. And I 
dind't read the error message :-( Sorry.

Build successful, *.jar in place, XWiki restarted and here they are the 
error messages in XWiki.log:

2008-04-15 01:14:13,276 
[http://test01.xen.net/xwiki/bin/view/Main/Database] [http-80-1] ERROR 
xwikisql.SqlPlugin - exception during creation of datasource myDs
javax.naming.NameNotFoundException: El nombre myDs no este asociado a 
este contexto

Now, the text code...

1.1.1 database is retrieved

#set($plugin = $xwiki.sql)
plugin is $plugin

#set($db = $plugin.getDatabase('myDs'))
db is $db

Gives...

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

Well, great! this works fine, as far as I can understand. Thanks, Ruslan!

Now, I can move to JNDI set up. Any other thing I could try here before 
moving ahead? I will try the new *.jar tomorrow in the production server 
(java version 1.4.2_10) and post here the results. I've been trying in 
a java version 1.5.0_13 so far.

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] Trouble with velocity script to list Object properties

2008-04-14 Thread Tjaart van Wijck
I have created the class Contacts.ContactClass. This class has three string
properties firstname, surname and phone1. I have also created two
instances of this class and filled out the attributes.

Now, it should be straight forward to write a Velocity script to seach for
all objects with the given class type of Contacts.ContactClass and write
out the attributes but I'm having some trouble. Below is my script:
#set($query=select obj from BaseObject obj where
obj.className='Contacts.ContactClass')
#set($results=$xwiki.search($query, 10, 1))
#foreach ($item in $results)
$item.get(firstname) | $item.get(surname) | $item.get(phone1) br /
#end

However this does not work. All I get is:

$item.get(firstname) | $item.get(surname) | $item.get(phone1)
$item.get(firstname) | $item.get(surname) | $item.get(phone1)

When I run:

#set($query=select obj from BaseObject obj where
obj.className='Contacts.ContactClass')
#set($results=$xwiki.search($query, 10, 1))
#foreach ($item in $results)
$item
#end

I get:

 Contacts.Tjaart 0 Contacts.ContactClass
 Contacts.Jane 0 Contacts.ContactClass


Which is incorrect. Please help, I've been struggling for quite a while and
getting really frustrated.

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


Re: [xwiki-users] Trouble with velocity script to list Object properties

2008-04-14 Thread Guillaume Lerouge
Hi Tjaart,

 I have created the class Contacts.ContactClass. This class has three
 string
 properties firstname, surname and phone1. I have also created two
 instances of this class and filled out the attributes.

 Now, it should be straight forward to write a Velocity script to seach for
 all objects with the given class type of Contacts.ContactClass and write
 out the attributes but I'm having some trouble. Below is my script:
 #set($query=select obj from BaseObject obj where
 obj.className='Contacts.ContactClass')
 #set($results=$xwiki.search($query, 10, 1))
 #foreach ($item in $results)
 $item.get(firstname) | $item.get(surname) | $item.get(phone1) br /
 #end

 However this does not work. All I get is:

 $item.get(firstname) | $item.get(surname) | $item.get(phone1)
 $item.get(firstname) | $item.get(surname) | $item.get(phone1)

 When I run:

 #set($query=select obj from BaseObject obj where
 obj.className='Contacts.ContactClass')
 #set($results=$xwiki.search($query, 10, 1))
 #foreach ($item in $results)
 $item
 #end

 I get:

  Contacts.Tjaart 0 Contacts.ContactClass
  Contacts.Jane 0 Contacts.ContactClass


Have you tried with :

#foreach($item in $results)
$item.getObject('Contacts.ContactClass')
$item.display('firstname') | $item.display('lastname') |
$item.display('phone1') br /
#end

or

#foreach($item in $results)
$item.getObject('Contacts.ContactClass')
$item.firstname | $item.lastname | $item.phone1 br /
#end

?

Hope this helps,

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