Dear all,
I have a class with a UserList attribute. I am trying to add users to
this list from an other page with no success. I try using the following
code :
#if($joinTask!="")
#set($taskDoc = $xwiki.getDocument("Project.${joinTask}"))
#set($taskObj = $taskDoc.getObject("XWiki.TaskClass"))
#set($list = $taskObj.get("assignedPeople"))
$list.add($xwiki.getUser())
$taskObj.set("assignedPeople", ${list})
$taskDoc.save()
#end
but $list.add does not exist so I tried differently :
#if($joinTask!="")
#set($taskDoc = $xwiki.getDocument("Project.${joinTask}"))
#set($taskObj = $taskDoc.getObject("XWiki.TaskClass"))
#set($list = $util.getArrayList())
$list.add($xwiki.getUser())
$taskObj.set("assignedPeople", ${list})
$taskDoc.save()
#end
but I have a casting exception.
I had a look on the velocity website, on this list archives,... with no
success
My question is : Can I add users like that or the only way is through
the edit panel and if yes, what is my mistake ?
Best regards,
Jean
--
----
Jean Couteau
Code Lutin - http://www.codelutin.com
44 Bd des Pas Enchantés - 44230 St-Sébastien/Loire
Tél : 02 40 50 29 28 - Fax : 09 59 92 29 28
I am trying to set up XWiki Enterprise Manager on WebLogic 9.2 with an
Oracle database. After deploying the application, and accessing it, I get
the following error.
The page still renders somewhat, but am unable to create wikis or do
anything.
Any help is appreciated, thanks.
Wrapped Exception:
java.lang.IllegalAccessError: tried to access class
org/mozilla/javascript/Defau
ltErrorReporter from class org/mozilla/javascript/CompilerEnvirons
at
org.mozilla.javascript.CompilerEnvirons.<init>(CompilerEnvirons.java:
48)
at
com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScri
ptCompressor.java:236)
at
com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScr
iptCompressor.java:397)
at com.xpn.xwiki.web.sx.JsExtension$1.compress(JsExtension.java:99)
at
com.xpn.xwiki.web.sx.AbstractSxAction.renderExtension(AbstractSxActio
n.java:91)
at com.xpn.xwiki.web.JsxAction.render(JsxAction.java:75)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:216)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
First of all I want say Hello to all the community.
I'm newbie of XWiki and wiki in general; I'm trying to start a enterprise
wiki and I choose XWiki after many consideration.
To create a clean and organized wiki I want give to the users the
possibility of create page starting from some template.
Previously, I use PbWiki and this platform offer some template by default,
like:
- blank template
- meeting (to schedule meetings)
- press release
- project
- to do list
and so on.
I have see the
http://www.xwiki.org/xwiki/bin/view/FAQ/HowToCreateADocumentTemplate LINK
that explain that purpose, but what I want to do is offer to the users a
choice from a list of templates to start from.
Have you some help to me?
Thank you
--
View this message in context: http://n2.nabble.com/Create-document-from-many-template-tp2424398p2424398.h…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
1) I've just migrated my xwikies to 1.8.4, seems to work fine, thanks
again team ;)
2) I have imported the "Extended Todo Application" v1.3 and it doesn't
worked first: adding a new todo => nothing new , the todo list was still
empty.
I saw that "Extended Todo Application" worked with "Date Picker". So I
downloaded "Date Picker", imported that application and now it works fine !
Maybe it could be usefull to add that information on the "Extended Todo
Application" page.
Or maybe I'm just blind (possible).
3) That "Extended Todo Application" v1.3 have dates on mm/dd/yyyy
format. is-it possible to use another format (like, for example,
dd/mm/yyyy) ?
Thanks,
Gaëtan
Hi all,
I'm trying to upgrade XWiki from 1.0 to 1.2. The problem comes when I want
to import my .xar file (6Mb) and get a Java Heap Space Out Of Memory
Exception.
I've checked your admin page
http://www.xwiki.org/xwiki/bin/view/FAQ/Howtoincreasethemaximumattachmentsi…
and
it looks like for my problem (file < 10Mb), only MySQL should be changed. So
I've changed the max_allowed_packet parameter but the problem still occurs.
I don't have anything in Tomcat or MySQL logs, which is a bit strange. The
only trace I get is the one bellow. It looks like Lucene breaks because of
the file upload not working. Any idea ? How could I get more details in the
log ?
Thanks,
Antonio
[http://localhost:8080/xwiki/bin/upload/XWiki/Import]
[http-8080-Processor25] ERROR lucene.IndexUpdater - invalid
parameters given to add: XWiki.Import, null,
{grouplist={xwiki:XWiki.XWikiGuest=[], xwiki:xwiki:XWiki.XWikiGuest=[]},
fileuploadlist=[name=null, StoreLocation=D:\Servers\Tomcat\apache-
tomcat-5.5.23\temp\upload_662feb76_117990b87e0__8000_00000000.tmp,
size=77bytes, isFormField=true
, FieldName=xredirect, name=null, StoreLocation=D:\Servers\Tomcat\apache-
tomcat-5.5.23\temp\upload_662feb76_117990b87e0__8000_00000001.tmp,
size=20bytes, isFormField=true, FieldName=filename, name=
Backup2008-01-20.xar , StoreLocation=D:\Servers\Tomcat\apache-
tomcat-5.5.23\temp\upl
oad_662feb76_117990b87e0__8000_00000002.tmp, size=6639095bytes,
isFormField=false, FieldName=filepath], msg=com.xpn.xwiki.web.XWikiMessageTo
ol@1171e30, util=com.xpn.xwiki.util.Util@bf1a4a, baseskin=albatross, tdoc=
XWiki.Import, ajax=false, locale=fr, doc=XWiki.Import, mainxwiki=x
wiki, skin=albatross, message=javaheapspace,
fileuploadplugin=com.xpn.xwiki.plugin.fileupload.FileUploadPlugin@571cc4,
vcontext=org.apache.v
elocity.VelocityContext@1219665}
Hi,
since update to 2.1 i can not delete attachments anymore.
Environment:
XE 2.1/Tomcat6/Mysql
Upload attachment
-> Delete attachment (Message Attachment deleted appears, "Attachments (0)"
displayes)
Reload page
-> Attachment is still here
Any idea?
Thanks
hel.
-----
semantic-web.hel.at
hel(a)hel.at
--
View this message in context: http://n2.nabble.com/Cant-delete-attachments-tp4197275p4197275.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I've done a installation on my localhost (Windows XP machine) of XE
2.1.1, Tomcat 6 and MySQL 5.1.
After this i wrote a bad hql query and executed it which brought MySQL
to spyke the CPU usage to 100% and even more rendering both the
localhost and database unusable.
{{velocity}}
#set($badhql = ", BaseObject obj, StringProperty stringprop,
LargeStringProperty largestringprop where (doc.name like '%$text%' or
doc.content like '%$text%') or (obj.name=doc.fullName and
stringprop.id.id=obj.id and stringprop.value like '%$text%') or
(obj.name=doc.fullName and largestringprop.id.id=obj.id and
largestringprop.value like '%$text%')")
#set($ok = $list.addAll(0, $xwiki.searchDocuments("$badhql")))
{{include document="XWiki.Results"/}}
{{/velocity}}
The bad thing is that $xwiki.searchDocuments brought me to this state
(no programming rights.).
Now my question is: Are there any remedies against this? MySQL
configuration statements that prevent this kind of behaviour?
--
Flavius Olaru
Hello,
I've gone to the XWikipreferences, then edit > Class.
Here's what is set:
name: upload_maxsize
Pretty Name: Maximum Upload Size
x No
Number: 53
Number Type: long
Size: 200
Error: XWiki has a default limit of around 10Mb for attached files.
This limit can be changed using the upload_maxsize parameter. Check
the FAQ for more information.
Any ideas?
Does anybody had this idea before?
I'd like to establish the mapping as follows:
http://something.metrolace.ru/Page ->
http://metrolace.ru/bin/view/Something/Page/http://something.another.metrolace.ru/ ->
http://metrolace.ru/bin/view/SomethingAnother/WebHome/
That is, the whole domain is a collaborative wiki with
pretty short URLs. New domains are being created on demand
because they are essentially good old Spaces.
I'm going to use url_rewrite in Squid (in particular, because I
don't know why it's so difficult to get rid of /bin/) and custom
XWikiURLFactory implementation.
Any advices? Did somebody already write custom URLFactory before?
--
If you want to get to the top, you have to start at the bottom
Hello,
I notice that exportation in rtf format has some bad behaviors:
- Two things are not really important because, like it's rtf format, we
can modify the document. But the rendering is a little weird : the
importation doesn't create a cover page with the main title and puts the
beginning of the table of content at the bottom of the first page...
- As well (and it's the big point to me), tables are rendered in a
strange way: the column width is so thin that we cannot notice the
content of cells... We can thin "No matter, we can modify the larger in the
rtf document" but we can only do that cell by cell... For small tables, it's
okay but, for bigger ones, it's not very useful ! I put an example in
attachment of this table so that you can see the issue:
|=column 1|=column 2
|content 1|content 2
To finish, I just have one question about customizing exportation. I tried
to customize the PDF export Look & Feel by creating a PDFClass and a
PDFClassTemplate. The template has a textearea "style" property which
contains (just to test) :
h1{
color : red;
}
div{
color : red;
}
p{
color : red;
}
I added the "&template=XWiki.PDFClassTemplate" line to the exportation link
but the rendering is always the same... Did I forgot to do something ?
For your knowledge, I tried that because I would like to customize the table
look and feel. I don't like that they don't have borders...
Thank you in advance for your help.
Marine