Re: [xwiki-users] Adding a document in XWiki.org

2007-10-31 Thread Your XEN ICT Team - Ricardo Rodriguez
Vincent Massol wrote: You're the first one I see to have this need so I'm curious to understand what's your use case first. My belief is that you're not using XWiki properly. Me again jumping in others' threads! :-( Before XWiki arrives to our lives, their are much easier now, we use O

Re: [xwiki-users] Adding a document in XWiki.org

2007-10-31 Thread Vincent Massol
Since I was probably not clear let me try to rephrase what I meant: 1) If what you to manipulate is data generated by xwiki (i.e. everything in the XWiki database) then you should use the API provided by xwiki and not manipulate this data directly. 2) If what you want to manipulate is your

Re: [xwiki-users] Adding a document in XWiki.org

2007-10-31 Thread Your XEN ICT Team - Ricardo Rodriguez
Vincent Massol wrote: > Since I was probably not clear let me try to rephrase what I meant: > > 1) If what you to manipulate is data generated by xwiki (i.e. > everything in the XWiki database) then you should use the API provided > by xwiki and not manipulate this data directly. > > 2) If what y

Re: [xwiki-users] Sample Groovy Code

2007-10-31 Thread Esbach, Brandon
The Xwiki system has it's own internal database structure; called using "$xwiki.search(type_hql_here)". -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Massol Sent: 31 October 2007 07:01 To: XWiki Users Subject: Re: [xwiki-users] Sample Groovy Co

Re: [xwiki-users] Adding a document in XWiki.org

2007-10-31 Thread Vincent Massol
On Oct 31, 2007, at 11:35 AM, V. Harikrishnan Nair wrote: > > Gosh ! I didn't realise that I could create such an uproar ! :-)) The uproar was caused by the fact that you asked for help without explaining what you wanted to do... If you had explained what you just explained below I guess it

Re: [xwiki-users] Adding a document in XWiki.org

2007-10-31 Thread V. Harikrishnan Nair
Gosh ! I didn't realise that I could create such an uproar ! :-)) To answer Q1. -> I wanted to make XWiki a platform for integrating some tools like XPlanner with a Project Mangement template which carries copious amounts of data in its database and also as an area where employees can interact

Re: [xwiki-users] Adding a document in XWiki.org

2007-10-31 Thread Your XEN ICT Team - Ricardo Rodriguez
V. Harikrishnan Nair wrote: Hi, Harikrishnan, Perhaps the Three Wise Men could be a better target for our messages :-) (I do hope this Christian metaphor is known enough!) I think we are messing up things here and this won't be useful for anybody. Don't you thing it would be better to split th

Re: [xwiki-users] Adding a document in XWiki.org

2007-10-31 Thread Esbach, Brandon
I took a quick look at "access another database from xwiki in groovy"; this quick snippet -seems- to work (this uses mysql) <% import groovy.sql.Sql; def sendSQL = Sql.newInstance("jdbc:mysql://localhost/myotherdatabase", "username-can-be-root", "password-g

Re: [xwiki-users] Adding a document in XWiki.org

2007-10-31 Thread V. Harikrishnan Nair
Hi Ricardo, Ricardo Rodríguez wrote: > > Perhaps the Three Wise Men could be a better target for our messages :-) > (I do hope this Christian metaphor is known enough!) > the metaphor is well known and so is James Blunt (forgive me if it's a poor joke) > Accessing RDBMS other than XWiki

Re: [xwiki-users] Adding a document in XWiki.org

2007-10-31 Thread Vincent Massol
Guys, this looks like a good topic for adding to the API guide at http://www.xwiki.org/xwiki/bin/view/DevGuide/APIGuide It should be mentioned in #warning() box that this is ONLY for data outside of XWiki's control. In addition we should also look at finding out how custom mapping works in XW

Re: [xwiki-users] Adding a document in XWiki.org

2007-10-31 Thread Esbach, Brandon
Hmm the list server messes up formatting :( Added a bunch of lines to see if that's better <% import groovy.sql.Sql; def sendSQL = Sql.newInstance("jdbc:mysql://localhost/myotherdatabase", "username-can-be-root", "password-goes-here", "com.mysql.jdbc.Drive

[xwiki-users] Parsing textbox data

2007-10-31 Thread V. Harikrishnan Nair
Hello again ! I want to take a string entered into a textbox and place it into a MySQL db (which is not XWiki's RDB). For that I created a simple form shown below - This is the velocity page (named VelocityTest2) which is supposed to parse the string entered into the text box

Re: [xwiki-users] Parsing textbox data

2007-10-31 Thread Vitantonio Messa
hi, I think this should work: #set($j = $request.formval) Vito V. Harikrishnan Nair wrote: > Hello again ! > > I want to take a string entered into a textbox and place it into a MySQL > db (which is not XWiki's RDB). For that I created a simple form shown below > - > > > > >

Re: [xwiki-users] Velocity error messages in xwiki-1.1.1

2007-10-31 Thread Andreas Haumer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi! Thanks for your reply! Vincent Massol schrieb: > Hi Andreas, > > Thanks a lot for the praise. I'm really happy that you got the upgrade > working since it's not always that easy to move from 0.9 to 1.1. > Well, I did my homework: read the doc

Re: [xwiki-users] Parsing textbox data

2007-10-31 Thread Esbach, Brandon
Check that you're using correct case as well. Also, you will need to be careful with quote marks, as these need to be escaped by putting two together before sending into a sql query - so for example, O'Hara Airport should read O''Hara Airport when added to a sql statement. -Original Message---

[xwiki-users] Custom mapping doc (was Re: Adding a document in XWiki.org)

2007-10-31 Thread Vincent Massol
On Oct 31, 2007, at 11:49 AM, Vincent Massol wrote: > > On Oct 31, 2007, at 11:35 AM, V. Harikrishnan Nair wrote: > >> >> Gosh ! I didn't realise that I could create such an uproar ! :-)) > > The uproar was caused by the fact that you asked for help without > explaining what you wanted to do...

Re: [xwiki-users] Adding a document in XWiki.org

2007-10-31 Thread Your XEN ICT Team - Ricardo Rodriguez
Esbach, Brandon wrote: > Hmm the list server messes up formatting :( > Added a bunch of lines to see if that's better > <% > > > import groovy.sql.Sql; > > > def sendSQL = Sql.newInstance("jdbc:mysql://localhost/myotherdatabase", > "username-can-be-root", > "p

[xwiki-users] How do I get the rendered content of another instance of the same class?

2007-10-31 Thread Andreas
Hello, First of all, to all developers, congratulations to Xwiki! It is by far the best piece of software I've seen in a while. The introduction to "what is it?", "what can it do?" and the install and running process were just fantastic. Right now I'm entering the stage where I want to write my

Re: [xwiki-users] Parsing textbox data

2007-10-31 Thread V. Harikrishnan Nair
It's perfect ! Thank you, Vito. Vitantonio Messa wrote: > > hi, > > I think this should work: > #set($j = $request.formval) > > Vito > > > > V. Harikrishnan Nair wrote: >> Hello again ! >> >> I want to take a string entered into a textbox and place it into a >> MySQL >> db (which is n