Apologize for my newbness, however I am unable to locate instructions on
how to migrate over to MYSQL or Microsoft SQL from built in DB.
Philip Wright
Please consider the environment before printing this email
I'm trying to code some groovy string manipulation of database-extracted
data.
I can't post the actual code but it goes along these lines:
#set ($mydb=$xwiki.sql.getDatabase("jdbc/ABC"))
#set ($SQLstring = "select mycol from fw_notifiche")
#foreach($row in $mydb.executeQuery($SQLstring))
#set ($mycol = $row.getString("mycol"))
<%
vcontext = context.get("vcontext");
mycol = vcontext.get("mycol");
newmycol = mycol.replaceAll("2", "two");
vcontext.put("newmycol", newmycol);
%>
Here is the data: $newmycol <br>
#end
The problem is that only the each loop receives the processing of the vary
last row.
Let's say the the loop extracts three rows with values 1, 2, 3. The previous
code results in this output:
3
3
3
(i.e. unreplaced value from the last row)
While if I switch to mycol.replaceAll("3", "three"), the output is:
three
three
three
(i.e. each loop gets the replaced value from the last row)
Seems that velocity and groovy are incorrectly linked thru the context, or
what?
Cheers,
Stefano
--
View this message in context: http://n2.nabble.com/Context-variables-vs--foreach-tp1300473p1300473.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Jerome,
Now that I have workspaces running under xem, I want to import content
from a previous workspaces instance that I've exported as an archive.
The new Global admin page doesn't offer "Import", and entering the url
directly takes me to the Global admin page.
How can I import an archive?
Thanks,
Dan
Hello ,
I have installed XWiki 1.4.x . Then I have upgraded to 1.5.
The database is PostgreSQL. System is Windows XP.And I use
JBoss.
I can´t import something in the Administration Option.
It shows 0 Documents installed
0 Documents leaved
0 Documents with error
Thanks,
Rez
--
View this message in context: http://n2.nabble.com/I-can%C2%B4t-import-files%21-tp1117629p1117629.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello,
I am trying to change the registration page, so that it redirects to the
pevious page after you have registered (like after you have logged in)
I know, that login.vm and registerinline.vm are called in global.vm. My
first try was to add xredirect=$xwiki.getURLEncoded($logredir) to the
$regurl, but it did work.
I now asume that sending the parameters (like current page/requested page)
is somehow handled when I call $doc.getURL("loginsubmit") like in login.vm.
Where can I find the template/page behind this url?
Or the other way round. What is responsible to call the
xwiki/bin/login/XWiki/XWikiLogin page everytime I click on "edit" a page?
I hope you can give me an answer.
Thanks!
Spinring
--
View this message in context: http://n2.nabble.com/Loginsubmit-tp1115532p1115532.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello, and thank you for your attention.
I'm in my first steps on xwiki which i chose with very high expectations.
After downloading the windows 1.6 installer I installed it in my desktop to
be able to do my first steps. First thing it happened when I installed it is
that it asked to install Java newer version, so it installed version 6.
After that, everything seemed to work fine except that when I clic on "Start
XWiki Enterprise" it opens a command window that gets hung.
This has happened me in two different computers, both have windows XP and
both have an Oracle database that is not running. In one of them I have Java
5 (so it didn't actualise) and the other one Java 6.
It doesn't write any log, but I've been able to catch the messages below
from the command window. I'd like to stress my absolute lack of knowledge of
Java, so if someone answers me please talk to a child.
Thank you for your help
* * * * * * * * * * * * * * * * * * * * * * * * * * *
10:08:49.199 INFO [main] org.mortbay.log.LogImpl.add(LogImpl.java:109)
>16> ad
ded org.mortbay.log.OutputStreamLogSink@16672d6
10:08:49.168 INFO [main]
org.mortbay.util.FileResource.<clinit>(FileResource.j
ava:60) >11> Checking Resource aliases
10:08:49.215 WARN!! [main]
org.mortbay.xml.XmlParser.<init>(XmlParser.java:81) >
13> Schema validation may not be supported
10:08:49.340 INFO [main]
org.mortbay.http.HttpServer.doStart(HttpServer.java:7
29) >10> Version Jetty/5.1.5
10:08:49.356 INFO [main]
org.mortbay.util.Container.start(Container.java:74) >
14> Started org.mortbay.jetty.servlet.ServletHandler@1edc073
10:08:49.356 INFO [main]
org.mortbay.util.Container.start(Container.java:74) >
11> Started ServletHttpContext[/,/]
10:08:49.356 INFO [main]
org.mortbay.http.SocketListener.start(SocketListener.
java:204) >11> Started SocketListener on 127.0.0.1:8081
10:08:49.356 INFO [main]
org.mortbay.util.Container.start(Container.java:74) >
09> Started org.mortbay.jetty.Server@1662dc8
10:08:49.402 INFO [main]
org.mortbay.http.HttpServer.setStatsOn(HttpServer.jav
a:1133) >18> Statistics on = false for org.mortbay.jetty.Server@121f1d
10:08:49.402 INFO [main]
org.mortbay.http.HttpServer.doStart(HttpServer.java:7
29) >10> Version Jetty/5.1.5
10:08:49.418 WARN!! [main]
org.mortbay.xml.XmlParser.<init>(XmlParser.java:81) >
20> Schema validation may not be supported
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.mortbay.start.Main.invokeMain(Main.java:151)
at org.mortbay.start.Main.start(Main.java:476)
at org.mortbay.start.Main.main(Main.java:94)
Caused by: java.lang.UnsupportedClassVersionError:
org/xwiki/container/servlet/X
WikiPlexusServletContextListener (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:225)
at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:193)
at org.mortbay.http.HttpContext.loadClass(HttpContext.java:1262)
at
org.mortbay.jetty.servlet.XMLConfiguration.initListener(XMLConfigurat
ion.java:449)
at
org.mortbay.jetty.servlet.XMLConfiguration.initWebXmlElement(XMLConfi
guration.java:275)
at
org.mortbay.jetty.servlet.XMLConfiguration.initialize(XMLConfiguratio
n.java:210)
at
org.mortbay.jetty.servlet.XMLConfiguration.configureWebApp(XMLConfigu
ration.java:190)
at
org.mortbay.jetty.servlet.WebApplicationContext.configureWebApp(WebAp
plicationContext.java:425)
at
org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicatio
nContext.java:478)
at org.mortbay.util.Container.start(Container.java:72)
at org.mortbay.http.HttpServer.doStart(HttpServer.java:753)
at org.mortbay.util.Container.start(Container.java:72)
at org.mortbay.jetty.Server.main(Server.java:460)
... 7 more
--
View this message in context: http://n2.nabble.com/Windows-default-install-fails-to-start-tp1300388p13003…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello,
I'd like to subscribe for Watch list email notification for my full XWiki.
I know that I can subscribe space per space, but it is too long and I want
to setup this later on user creation.
So, I take a look on objects attached to my page and I see that there is
third way to subscribe: QUERY.
But I found nothing about what QUERY should look like!
Can somebody provide a sample?
Regards,
Arnaud.
Hi
Is it possible to configure a property of an XWiki class mandatory in the
class editor? If not please provide me an alternate way to acheive this.I am
using XE 1.5.1
Regards
Syam
--
View this message in context: http://n2.nabble.com/Mandatory-Validation-for-a-property-field-tp1140940p11…
Sent from the XWiki- Users mailing list archive at Nabble.com.
The XWiki development team is pleased to announce the release of XWiki
Enterprise 1.6 final.
Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download
This release spanned a bit more than 2 months starting on the 23rd of
July 2008 and ending on the 3rd of October 2008. During that period we
have implemented issues, fixed bugs and added new features such as:
* New experimental support for other syntaxes (Confluence, JSPWiki,
Creole, MediaWiki, TWiki and XHTML), including a new XWiki Syntax
v2.0.
* New experimental WYSIWYG editor (Work In Progress).
* Improved page footer displaying : comments, attachments, history,
various information
* New "Password Renewal and Forgot Username" feature
* Default account validation & confirmation emails provided in the
wiki preferences
* Rights Management interface now support adding groups into groups
* Improvement of Query Manager which was introduced in 1.6M1.
* New experimental XWiki Query Language called XWQL.
* Added .xml extensions to all exported wiki pages (XAR)
* The name of the main database in virtual wiki mode is not hardcoded
to 'xwiki' anymore, and in virtual mode all database names can be
prefixed with a configurable value
New or improved translations:
* german
* french
* czech
* norwegian
* ukrainian
For more information see the Release notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise16
Thanks
-The XWiki dev team
Greetings
I need to program a page that list all the files present in some folder, creating links to them. Similar to a
directory. It's possible to do this with velocity code? What is the best way to do it?
Best regards
Bruno Neves