Hi
I'd like to attach big document to a XWiki page. But If the doc is bigger than
1MB it fails with the following message :
java.sql.BatchUpdateException: Packet for query is too large (2152630 >
1048576). You can change this value on the server by setting the
max_allowed_packet' variable.
It seems that it exists a parameter to allow the insertion in the database of
document bigger that 1 048 576 B.
Does someone know where I should add this param ?
BTW, I use MySQL 4.1 over GNU/Linux.
Thanks in advance
--
Xavier MOGHRABI - Consortium ObjectWeb
Email: xavier.moghrabi at objectweb.org
Phone: +33 4 76 61 52 35
Hi
I'd like to add in a form the possibility for users to upload file. My form
look like this one :
<form action="" enctype="mutipart/form-data" method="post">
<input type="text" name="submitter" />
<input type="file" name="file" />
<input type="submit" />
</form>
The problem I have is with xWiki to get the data from the $request object and
handle them by using Velocity. After I'd like to store the uploaded file as
attachment in a document.
If someone of yours have already done that I'm interesting in getting a such
example.
By the way, I've noticed that there is a plugin called FileUpload in XWiki. I
think it would be great to use it because uploaded file handling is not
really handy, but I don't know how to use it within the wiki.
Thanks.
--
Xavier MOGHRABI - Consortium ObjectWeb
Email: xavier.moghrabi at objectweb.org
Hi,
I would like some direction in learning to understand things like this (code I found in your demo database):
#set($obj = $doc.getObject("XWiki.FAQClass","language",$language, true))
#set($class = $obj.xWikiClass)
#foreach($prop in $class.properties)
1.1 ${prop.prettyName}:
$doc.display($prop.getName(), "rendered", $obj)
<br />
#end
...will I have to look at the code to understand usage on things like "XWiki.FAQClass.properties" in my scripts? Or is there another resource?
The above works, but what I really want to do is modify that code to loop thru the objects present in a "table" such as "Blog.Categories" that came with demo.
...But in a nested loop:
#set($obj = $doc.getObject("XWiki.MyTable","language",$language, true))
#set($class = $obj.xWikiClass) <--- what is this?
#foreach(...object in that class??...)
1 ${...thatObject.Name}
#set ($sql = ", BaseObject as obj where obj.name=CONCAT(XWD_WEB,'.',XWD_NAME) and obj.className='Csdg.ArticleClass' and obj.name<>'Csdg.ArticleClassTemplate'")
#foreach ($item in $xwiki.searchDocuments($sql))
#set($bentrydoc = $xwiki.getDocument($item))
#set($bentryobj = $bentrydoc.getObject("Csdg.ArticleClass", "language", $language, true))
#if (${bentrydoc.display("audience","view", $bentryobj)} == "Users")
* [$item]
#end
#end
#end
...I'm not sure how much help to expect with this, but any comment would be great.
thank you in adv.
-Ken
Can someone advise me what happens if you create a wiki page named such as:
Myspace.subspace1.subspace2.document?
Does this represent a page named "document" in the space Myspace.subspace1.subspace2 ?
Or a page named subspace1.subspace2.document in a space called Myspace?
I understand of course that xwiki doesn't have a concept of nested spaces in the true sense, i.e. access rights on Myspace would not 'flow through' down the line through multiple child spaces.
Thanks,
Milt
Hello everybody!
I'm try to using XWiki 0.9.840 in the own projects, but have a lot
of problem with Russian text. Maybe I do something wrong, so please
help me if possible.
I'm using KOI8-R encoding in XWiki. Russian text is edited and
viewed correctly.
1. But it's impossible to search on the Russian - search box
contains "????" after Sumbit. Looks like incorrect encoding is used.
2. When I try to use Lists Syntax - it's not working at all. Some
lines are displayed as bold, some lines as regular text.
3. It's impossible to create new page with Russian name. It's always
saved as "?????".
Thank you for your comments!
--
Best regards,
Andrey mailto:voland@udm.ru
Youcef,
> Convert your data encoding to utf-8, the procedure to configure utf-8 under
> xwiki it is well explained (I dont remember the link, but try to find it).
> All PB with encoding will be solved for each language!
thank you for quick response, but can't agree with you. I tried to
use UTF-8 - the same problems with search and page naming.
btw, how-to for UTF-8 is not very well in "database" part. For
instance, text "change the mysql encoding to UTF-8 (check it using
"show variables")" should be replaced by following instruction
(based by my experience):
1. (For MySQL 4.1.x) Create database with default UTF-8 encoding.
Example: CREATE DATABASE xwiki DEFAULT CHARACTER SET utf8;
2. Add these lines to WEB-INF\hibernate.cfg.xml (don't know, why
team suggest to use my.cnf setting for this instead of configure a
DB pool connection):
<property name="connection.characterEncoding">utf8</property>
<property name="connection.useUnicode">true</property>
>> Hello everybody!
>>
>> I'm try to using XWiki 0.9.840 in the own projects, but have a lot
>> of problem with Russian text. Maybe I do something wrong, so please
>> help me if possible.
>>
>> I'm using KOI8-R encoding in XWiki. Russian text is edited and
>> viewed correctly.
>>
>> 1. But it's impossible to search on the Russian - search box
>> contains "????" after Sumbit. Looks like incorrect encoding is used.
>>
>> 2. When I try to use Lists Syntax - it's not working at all. Some
>> lines are displayed as bold, some lines as regular text.
>>
>> 3. It's impossible to create new page with Russian name. It's always
>> saved as "?????".
>>
>> Thank you for your comments!
--
Best regards,
Andrey mailto:voland@udm.ru
We set up the xwiki using the sample database, and it works fine, but on the java console there are lots of exceptions at startup time concerning objects not found. Firstly, is this normal? How do you clean up the object store so these don't happen?
Thanks again...
Hi,
I just want to change the copyright notice. We have XWiki 0.9.840. I have Admin rights. This is what I did:
1 create brand new space by linking to it from elsewhere: [Research.Proposals]
2 hit ? to create that page ...view/Research/Proposals
3 Select more actions/Space Preferences/Presentation
4 All fields are shown empty. I assume this is interpreted as "use XWiki preference for this field"
5 I write "Copyright <company name>" in the copyright field
6 Hit Save Preferences
7 Go to page just created and reload.
Result: copyright notice still not changed in that space. Am I doing something wrong? I'd appreciate your help
--jose