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
Hi,
I'd like to build a small application that should send emails.
XWiki is installed on a Redhat Linux 4 with Sendmail 8.13.1. When I try a
simple example to send email I get the following error message from XWiki :
Error number 4001 in 4: Error while parsing velocity page Demos.test
Wrapped Exception: Invocation of method 'sendMessage' in class
com.xpn.xwiki.XWiki threw exception class com.xpn.xwiki.XWikiException :
Error number 10005 in 10: Could not login to mail server localhost port 25
error code 501 (501 5.0.0 Invalid domain name
)
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing
velocity page Demos.test
Wrapped Exception: Invocation of method 'sendMessage' in class
com.xpn.xwiki.XWiki threw exception class com.xpn.xwiki.XWikiException :
Error number 10005 in 10: Could not login to mail server localhost port 25
error code 501 (501 5.0.0 Invalid domain name
...
In fact after looking for the problem in my sendmail conf, I discover that the
problem come from the domain name indicated by XWiki which avoid XWiki to
connect to sendmail : 'HELO XWiki version 0.9.840'
I would like to know if there is a way to change the XWiki domain name or to
tell sendmail to accept wrong domain name. In my sendmail config, I've put
this :
FEATURE(`accept_unresolvable_domains')dnl
But it still doesn't work.
Thanks a lot
--
Xavier MOGHRABI - Consortium ObjectWeb
--
Sendmail debug trace :
obispeno sendmail[17999]: NOQUEUE: connect from obispeno.inria.fr [127.0.0.1]
obispeno sendmail[17999]: AUTH: available mech=CRAM-MD5 LOGIN DIGEST-MD5
ANONYMOUS PLAIN, allowed mech=EXTERNAL GSSAPI KERBEROS_V4 DIGEST-MD5 CRAM-MD5
obispeno sendmail[17999]: j9JHQANM017999: Milter: no active filter
obispeno sendmail[17999]: j9JHQANM017999: --- 220 obispeno.inria.fr ESMTP
Sendmail 8.13.1/8.13.1; Wed, 19 Oct 2005 19:26:10 +0200
obispeno sendmail[17999]: j9JHQANM017999: <-- HELO XWiki version 0.9.840
obispeno sendmail[17999]: j9JHQANM017999: --- 501 5.0.0 Invalid domain name
obispeno sendmail[17999]: j9JHQANM017999: invalid domain name (XWiki) from
obispeno.inria.fr [127.0.0.1]
obispeno sendmail[17999]: j9JHQANM017999: --- 421 4.4.1 obispeno.inria.fr Lost
input channel from obispeno.inria.fr [127.0.0.1]
obispeno sendmail[17999]: j9JHQANM017999: obispeno.inria.fr [127.0.0.1] did
not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
I have installed Tomcat 4.1.14, MySQL 4.1 and XWiki 0.9.840. I have
tried following the instructions listed on the download page: Install
on Windows with standard Apache Tomcat and receive errors when trying to
start up Tomcat. The following error is from the log:
2005-10-17 15:11:11 StandardManager[/XWikiWeb]: Seeding of random number
generator has been completed
2005-10-17 15:11:11 StandardContext[/XWikiWeb]: Exception starting
filter Set Character Encoding
java.lang.ClassNotFoundException:
com.xpn.xwiki.web.SetCharacterEncodingFilter
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1407)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1252)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFi
lterConfig.java:205)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicatio
nFilterConfig.java:280)
at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilte
rConfig.java:73)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.jav
a:3101)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3558
)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:707)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
2005-10-17 15:11:11 StandardContext[/XWikiWeb]: Context startup failed
due to previous errors
I have searched in the WAR to find the JAR that might contain
SetCharacterEncodingFilter, but do not find anything. What JAR is this
class supposed to be packaged in and how can I find that JAR? Any
recommendations to get me up and going would be much appreciated.
Thanks.
Katrina N. Mitchell
The Home Depot - Information Systems
Development Workbench
(770) 433-8211 ext. 82097
You can do it. We can help.