[xwiki-users] Code doesn't work in Register page??

2008-06-10 Thread Ngo Thi Hong Nga
Hi, I put some code in space.vm to retrieve my data: #set($mydb=$xwiki.sql.getDatabase(myDB)) #foreach($row in $mydb.executeQuery(select name from mytable)) $row.getString(0) #end When I open Home page or any page but Log in and Register page, it's all ok. I don't know there's difference

[xwiki-users] Executing code - Difference between Register page and others ?

2008-06-07 Thread Ngo Thi Hong Nga
Hi, I put some code in space.vm to retrieve my data: #set($mydb=$xwiki.sql.getDatabase(myDB)) #foreach($row in $mydb.executeQuery(select name from mytable)) $row.getString(0) #end When I open Home page or any page but Log in and Register page, it's all ok. I don't know there's difference

[xwiki-users] Problem with link target=blank

2008-05-10 Thread Ngo Thi Hong Nga
I have 2 documents in XE 1.3.1: - Main.test1 with a link: [Test2Main.test2blank] - Main.test2 with a link: [HomeMain.WebHomeblank] I do 2 test cases with Firefox 2.0: - TC1: Open Main.test2 and click Home, the Main.WebHome is opened in a new tab -- OK - TC2: Open Main.test1 and click Test2, the

Re: [xwiki-users] How to remove all documents in recycle bin

2008-04-28 Thread Ngo Thi Hong Nga
Thank Artem. -- Ngô Thị Hồng Nga ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users

Re: [xwiki-users] Convert String to Integer in Velocity

2008-04-25 Thread Ngo Thi Hong Nga
, at 7:20 PM, Ngo Thi Hong Nga wrote: Hi, is it possible to convert a String to Integer in Velocity? I tried with Groovy but I don't know how to do with Velocity. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users

[xwiki-users] Error while configuring ua.gradsoft.xwikisql.SqlPlugin

2008-04-18 Thread Ngo Thi Hong Nga
Hi, I'm using XE 1.3 with xwiki-plugin-sql-1.3.jar. I put the jar in WEB-INF\lib, append ua.gradsoft.xwikisql.SqlPlugin to xwiki.cfg and restart Tomcat. When I run XWiki, the following error is thrown: *exception* javax.servlet.ServletException: Servlet execution threw an exception

Re: [xwiki-users] Error while configuring ua.gradsoft.xwikisql.SqlPlugin

2008-04-18 Thread Ngo Thi Hong Nga
No, I'm running XE 1.3 with JDK 1.5. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users

Re: [xwiki-users] Get sources of Xwiki ??

2008-04-08 Thread Ngo Thi Hong Nga
You can get it here: http://maven.xwiki.org/releases/com/xpn/xwiki/platform/xwiki-core/1.3.1/ Unfortunately, I can't get it from the SVN repository... I can't find the files that I need. Where could I find all the sources files of the 1.3.1 version? Can anyone upload it anywhere or send

[xwiki-users] Edit PagedViewLinks Macro

2008-04-04 Thread Ngo Thi Hong Nga
Hi, I want to modify PagedViewLinks Macro but I don't know where it is. Any help would be appreciated. -- Ngô Thị Hồng Nga ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users

[xwiki-users] Problem with Groovy code

2008-04-03 Thread Ngo Thi Hong Nga
Hi, I want to split the words seperated by character |. % String[] sources=new String(hello|world).split(|); for (i in 0..sources.length) { print sources[i]+br/ } % but the result is: h e l l o | w o r l d I tried using String[] sources=new String(hello|world).split(\|); but it gives me error.

Re: [xwiki-users] Problem with Groovy code

2008-04-03 Thread Ngo Thi Hong Nga
Thank you very much. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users

Re: [xwiki-users] XWiki Enterprise 1.3 MS-SQL

2008-04-01 Thread Ngo Thi Hong Nga
You must uncomment MySQL Configuration in WEB-INF\hibernate.cfg.xml On Tue, Apr 1, 2008 at 9:43 PM, Helmut Lehner [EMAIL PROTECTED] wrote: Hi, i tried to install xwiki 1.3 with a mssql databas following the instructions the documentation.

[xwiki-users] How to export a number of documents to xar?

2008-03-09 Thread Ngo Thi Hong Nga
Hi, I want to export some documents to xar. I go to Administration\Export, enter package name,.. and click Export, then all of my documents are exported. Is there any way allowed me to export only documents that I want? ___ users mailing list

[xwiki-users] ERROR: could not insert: xpn.xwiki.objects.Large String Property !?

2008-03-06 Thread Ngo Thi Hong Nga
Hi, I have a class named MyClass with content property with type TextArea. I write some Groovy code to read a text file (*.txt) with encoding UTF-8, and print each line in the screen (code snippet 1) , no errors. but when I replace code snippet (1) with (2), the following error occurs:

Re: [xwiki-users] Macro works in Groovy code |?

2008-03-01 Thread Ngo Thi Hong Nga
So,setting document's content with macro using Groovy is impossible and I must use Velocity to do this. Is there another way ? ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users

Re: [xwiki-users] Macro works in Groovy code |?

2008-03-01 Thread Ngo Thi Hong Nga
Thank you very much. And there's a little problem I want to ask you. I install XE 1.3-rc-1.8082, everything is ok except that once logged in, I cannot log out. Clicking Log out may not change anything. I tried clear the cache and internet temp files but doesn't solve this problem. I only can

[xwiki-users] Problem display albatross skin with XE 1.2.2

2008-02-28 Thread Ngo Thi Hong Nga
Hi, when change from XE 1.1 to XE 1.2, I met a displaying problem with skin albatross. You can view a screenshot here: http://farm4.static.flickr.com/3250/2298512208_55ab8aab03_o.jpg. Skin dodo and finch are ok. I tried clearing the cache but it doesn't work. What should I do?

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

2008-02-28 Thread Ngo Thi Hong Nga
Hi, where can I download xwiki-core-1.3-rc-1-sources.jar ? ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users

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

2008-02-28 Thread Ngo Thi Hong Nga
Hi, I install XE 1.3 and log in as user/pass: admin/admin, then click Log out, the page is displayed the same, I cannot log out !? I tested in IE and Firefox, both cannot log out. ___ users mailing list users@xwiki.org

[xwiki-users] Cannot use FileUploadPlugin !?

2008-02-27 Thread Ngo Thi Hong Nga
Hi, I want to create a page allowed to upload more files together using FileUploadPlugin. I created 2 documents but the FileUploadPlugin seems not work, the data return is null and the document MySpace.Upload is attached with a file 0KB. Anyone can explain me why this happens ? And how to fix ?

Re: [xwiki-users] How to add attachments ?

2008-02-26 Thread Ngo Thi Hong Nga
Hi, anyone can help me with using the method addAttachments(fieldName) ? Please give me a small code snippet using this method if you have time. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users

Re: [xwiki-users] How to add attachments ?

2008-02-26 Thread Ngo Thi Hong Nga
I viewed the XE core 1.1.2 source code but did not understand, so I post the question here :) Anyway, thank you. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users

[xwiki-users] How to add attachments ?

2008-02-25 Thread Ngo Thi Hong Nga
Hi, how to add attachments using one of 2 methods: addAttachments(java.lang.String fieldName) and addAttachment(java.lang.String fileName, java.io.InputStream iStream) of com.xpn.xwiki.api.Document class ? I tried using them but don't know the right way to use. Please give me an example using

Re: [xwiki-users] How to add attachments ?

2008-02-25 Thread Ngo Thi Hong Nga
Sorry for my keep asking but I really don't know what the value of argument fieldName in addAttachments(fieldName) is. Is it related to the value of file input ?? form action= enctype=multipart/form-data method=post input type=file name=file/ ___ users

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

2008-02-22 Thread Ngo Thi Hong Nga
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 ...

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

2008-02-21 Thread Ngo Thi Hong Nga
I have a document with a input type=file and a submit button. After I click submit button, the following action is performed: - attach the file to the document - do something with the file content... - deattach the file out of the document Can I reuse the action /xwiki/bin/upload/.. to write my

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

2008-02-21 Thread Ngo Thi Hong Nga
I have already known how to do that. I have another question: I have a form with 3 file inputs and an Attach button. After click this button, 3 files are attached to the current document. How can I do this using the XWiki action /xwiki/bin/upload ?. I tried but only 1 file is allowed.

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

2008-02-19 Thread Ngo Thi Hong Nga
http://rapidshare.com/files/93105012/XwikiBulletionBoard.avi.html You can download my screen recorder to see what I have done. The category name, category description, topic title and topic first post all empty. ___ users mailing list users@xwiki.org

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

2008-02-19 Thread Ngo Thi Hong Nga
I use XE 1.1.2 ___ 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-19 Thread Ngo Thi Hong Nga
I use Windows Media Player 11 with K-lite Codec Pack to view this avi. You can download K-lite Codec Pack here: http://rapidshare.com/files/93178779/klcodec362f.exe.html ;) ___ users mailing list users@xwiki.org

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

2008-02-18 Thread Ngo Thi Hong Nga
I use Bulletin Board application with XE 1.1.2. I import the xar file, I add a new topic, enter title and first post, then make some reply. Every thing is displayed properly (author, post reply,..), except for the topic title and topic first post always be the empty string , although they are not

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

2008-02-18 Thread Ngo Thi Hong Nga
The screenshot is here: http://farm3.static.flickr.com/2411/2274127483_df5296912f_o.jpg In the left is view mode and the right is edit mode. I check the contents of the TopicClass object in my topic page, both the properties title and post is empty, when I enter something in these 2 properties,

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

2008-02-18 Thread Ngo Thi Hong Nga
I have already entered a title and the first post for the new topic, then click Save and View and the result is what you see in the left of the screenshot. That's the reason why I post this problem here. ___ users mailing list users@xwiki.org

[xwiki-users] XE 1.1.2 can use with XwikiSqlPlugin version ?

2008-02-17 Thread Ngo Thi Hong Nga
Hi, I am using XE 1.1.2 with JDK 1.5 and Tomcat 5.5.20. I have been try using XE with both Xwiki SQL plugin version 1.0 and 1.1 but there's a error: java.lang.UnsupportedClassVersionError: Bad version number in .class file Is Xwiki SQL plugin only used with XE 1.2 and above ?

[xwiki-users] Problem using Xwiki with Tomcat 6.0

2008-02-16 Thread Ngo Thi Hong Nga
Hi, when changing from Tomcat 5.5 to Tomcat 6.0, I met a problem when loading http://localhost:8080/xwiki/bin/view/Main/WebHome The page is displayed with 3 lines: #template(startpage.vm) #template(contentview.vm) #template(docextra.vm) #template(endpage.vm) Anyone can tell me how to fix this

Re: [xwiki-users] Problem using Xwiki with Tomcat 6.0

2008-02-16 Thread Ngo Thi Hong Nga
I don't know why but this morning when re-loading this page, everything is ok :) On Feb 16, 2008 10:24 PM, Ngo Thi Hong Nga [EMAIL PROTECTED] wrote: Hi, when changing from Tomcat 5.5 to Tomcat 6.0, I met a problem when loading http://localhost:8080/xwiki/bin/view/Main/WebHome The page

Re: [xwiki-users] Problem in displaying with albatross skin.

2007-12-02 Thread Ngo Thi Hong Nga
the page, using something like shift+ click on the refresh button, or clear the browser cache. Sergiu Ngo Thi Hong Nga wrote: I download xwiki1.1.2.war and put it in tomcat/webapps. When I put: http://localhost:8080/xwiki in the browser, it directs to http://localhost:8080/xwiki/*bin*/view/Main