Hi,
I'm writing a component with a dependency on a 3rd-party JAR. I've
installed the JAR in my local repository and added the dependency in the
component's POM, and everything builds fine. However, when I add the
component to my XWiki install (on the same machine) and try to start it up,
I get a NoClassDefFound error.
What is the standard way to write a component with 3rd-party dependencies?
Thanks!
~David
--
View this message in context: http://n2.nabble.com/Component-with-3rd-party-dependency-tp3818195p3818195.…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I want to sort the items in a panel by name.
I'm using as follows, but the items in the panel are not in alphabetical
order.
How can I do this with the same code below?
#set($web = $doc.web)
#panelheader('Name')
#foreach($subdoc in $xwiki.getSpaceDocsName("$doc.web"))
#if($subdoc!='WebPreferences' && $subdoc!='WebHome')
- [${doc.web}.${subdoc}]
#end
#end
#panelfooter()
Thanks,
Alexandre Souza
Hi All ,
Could someone explain me if exists any possibility to migrate a mysql
database in syswiki to a mysql database in xwiki?
Thanks in advance,
Carolina Ramirez
Hi,
I'm new to XWiki (and Maven, for that matter) and would like to write a
component. I've gone through the Writing XWiki Components tutorial and the
Building XWiki from sources page and also found this helpful post:
http://n2.nabble.com/Components-in-XWiki-td2621693.html#a2621693. I
generated the sample org.xwiki.component.HelloWorld component from the
archetype in the tutorial, compiled it using the Maven Eclipse plugin, then
dropped the jar in my WEB-INF\lib. But when I try to load the component
with the sample script:
{{groovy}}
def greeter =
com.xpn.xwiki.web.Utils.getComponent(org.xwiki.component.HelloWorld.class);
{{/groovy}}
I get exceptions saying "Failed to load component
[org.xwiki.component.HelloWorld] for hint [default]" and "Can't find
descriptor for the component [role = [org.xwiki.component.HelloWorld] hint =
[default]]"
I've also tried adding the @ComponentRole and @Component annotations (with
no hints) to HelloWorld.java and DefaultHelloWorld.java which weren't there
before, and also adding org.xwiki.component.HelloWorld to the plugins in
xwiki.cfg, but this doesn't seem to change anything.
What am I missing to successfully load the component?
Much thanks,
David Breeden
--
View this message in context: http://n2.nabble.com/Installing-components-tp3811159p3811159.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I've got lots and lots of pages created in xwiki/1.0 syntax. Now we decided to migrate to V2.0. Furthermore it's noticeable that we use XMLRPC to upload pages to our wiki. Migration lead to rendering problems in the new version since it expects the pages to be in xwiki/2.0 format by default. I changed the default to xwiki/1.0, cleared the wiki and did another upload and it worked as expected.
However this isn't the approach we would like to use in production. To avoid migrating hundreds of pages (and lots of code that builds pages) to 2.0 syntax but to keep the default value xwiki/2.0 we're somehow stuck. A possible and reasonable compromise could be to set the syntax of a page during creation time, meaning that legacy pages will be created as 1.0 others maybe as 2.0, or (to start dreaming) in a way of autodetecting the page's syntax.
To make it short:
Is there a way we could easily upload our 1.0 pages to a 2.0 wiki without changing the default value? Otherwise we would have to spend several days in migrating our code, which costs us without giving us any additional functionality.
Thank you
Mike
Hi all,
is it possible to fill an array in groovy, return it to velocity and
manipulate the array in velocity ?
e.g.:
filling a groovy_array with results from sql.eachRow
Now, when I'm trying to access it with velocity, the whole array is just
one string and I can't loop through it using #foreach.
Do you have any ideas what I can do ?
thanks in advance
Matthias
Hi,
if I'm logged in at dev.xwiki.org and call
http://playground.xwiki.org/xwiki/bin/view/Main/WebHome
the following error occurs:
"You are not allowed to view this document or perform this
action."
If I log out, the error doesn't occur and I can see the Playground Main
page.
If I I create (register) an extra user for playground.xwiki.org (with
the same user id), it woks well.
It's a little bit confusing...
Regards,
Roman
Hello,
I have added two drafts for User and Administrator Cookbooks:
- http://dev.xwiki.org/xwiki/bin/view/Drafts/XEDocUserCookbook
- http://dev.xwiki.org/xwiki/bin/view/Drafts/XEDocAdminCookbook
both are linked from the Documentation Main Page draft:
http://dev.xwiki.org/xwiki/bin/view/Drafts/XEDocMain
I have seen some interesting recipes at the user mailing list. If you
like this approach, please add your recipes in the cookbooks :)
As soon as the draft for the Documentation Main Page is ready, the
cookbook drafts could be "activated" as well.
Any help/feedback would be apreciated.
P.S. as I have edited this pages from Ubuntu and Windows, some things
are broken, such as info boxes, line breaks...
Thanks,
Roman
Hi,
we got links to the Filesystem like
[file://server/sharepoint_layouts$>file://///server/sharepoint_layouts$]
they are converted correctly to syntax 2.0 and are working there too
[[file://svivm01/sharepoint_layouts$>>file://///svivm01/sharepoint_layouts$]]
But when we edit those pages in the new WYSIWYG the Links just
disappear!!!???
Why?
Thanks
hel.
-----
semantic-web.hel.at
hel(a)hel.at
--
View this message in context: http://n2.nabble.com/xwiki-2-0-GWT-WYSIWYG-file-links-tp3793057p3793057.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello,
currently the xwiki documentation runs on several wiki instances and
spaces. Unfortunately it's not structured well too, so it's really very
hard to find required information. It's my experience.
I think something like a Table of Content could help indeed. Probably it
would be fix & dirty solution, but nevertheless a solution.
Please look at the current draft for that page:
http://dev.xwiki.org/xwiki/bin/view/Drafts/XEDocMain
Any feedback/help would be appreciated.
Regards,
Roman