Hi,
I have two classes in separated pages and I want one of them to extend the other. How should I include the parent class?
I tried:
Page 1:
------------------
<%
public class A {
...
}
%>
------------------
Page 2:
------------------
#set($mydoc = $xwiki.getDocument("Include.Page1"))
$mydoc.renderedContent
<%
public class B extends A {
...
}
%>
------------------
But that's not working, i get this error - unable to resolve class A @ line 3.
I also tried to use parseGroovyFromPage(), but I wasn't successful.
So what is the correct way to make it work?
--
View this message in context: http://n2.nabble.com/Include-a-groovy-script-into-another-groovy-script-tp2…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I'm feeling a little dumb at the moment since I expected doing the action I'm struggling with to be so obvious as to be almost default, but I would appreciate being pointed in the right direction. I have not found a specific answer by searching the FAQ or this mailing list so maybe I'm experiencing something abnormal or haven't configured something correctly.
In Xwiki workspaces after installation I get to the page:
The organization's space has not been created yet
As a member of the group of Administrators, you are allowed to create the Organization's own workspace. Click the link below if you wish to create the organization's own workspace.
Create the organization space $newspace.set("spacetype", "workspace")
Warning: You have not created your personal space yet.
http://myserverip:8080/xwiki/bin/view/XWiki/XWikiPreferences?section=Organi…
and I see:
---------------------------------------------------------------------------------------
Show the available categories
* General
* Workspaces
* Users
* Groups
$newspace.set("spacetype", "workspace") $newspace.set("spacetype", "workspace")
Click on this button if you wish to create your organisation's space. The organisation's space includes every user on this XWiki Workspaces. It features a blog, a wiki, a file manager and a photo album. You may want to create it if you wish to publish information meant to address all your users at once.
Define your new workspace's basic settings
Space name
Mandatory - You can enter up to 50 more characters for your new space title :
$newspace.display("displayTitle","edit")
Description
Optional - You can enter a short text describing the purpose of this workspace :
$newspace.display("description","edit")
Applications
Choose the applications you want to install in your workspace from the list below :
Access level
Select an access level for this workspace :
$newspace.display("accesslevel","edit")
Color
Choose a background color for your workspace :
$newspace.display("color","edit")
----------------------------------------------------------------------------------------
Its not clear to me how to create this Organization Space.
Apparently the above is giving me the syntax I can use, but where is it entered?
It doesnt appear to be as simple as clicking on the button 'Create the space' because that does nothing for me. I can see the browser showing the ip of the xwiki server when I click but I get no feedback from the server telling me there's a problem or even that it received my mouse click.
Then higher up on the page there's some text with a light bulb which states Click on this button if you wish to create your organisation's space. Well I don't see any suitable button near this text only a button much further down the page - the one I described above.
To get to this point I installed Ubuntu 8.10 server in a VM, added Java 6, Tomcat 6, Postgresl8.3 and setup the xwiki database and xwiki-enterprise-web-1.8.war in the container and also loaded xwiki-enterprise-wiki-1.8.xar default pages. I can login as Admin, create new users, groups, import the Word addin, etc but didnt see much in the way of user workspaces, so then loaded xwiki-workspaces-wiki-1.2-milestone-1.xar which duly overwrote some of the existing enterprise xar default pages and I logged in as the default Admin user.
I'm not getting any errors reported, everything appears to be working, but despite rummaging around the xwiki website I havent found any comprehensive admin doc that explain the way forward for a 1st time admin/user. e.g. http://workspaces.xwiki.org/xwiki/bin/view/AdminGuide/ tells me hardly anything. I am using Firefox 3.07 both on localhost Ubuntu and remote client Windows to access XWiki. As far as I can tell Firefox is not blocking any pages from loading. I also tried IE7, same results.
After failing with the above I guessed that maybe the plugin to do this wasnt loaded by default, so from rummaging I guessed that
http://code.xwiki.org/xwiki/bin/view/Plugins/SpaceManagerPlugin
might do the trick, so I did:
* Copy xwiki-plugin-spacemanager-1.1.jar to Tomcat-Xwiki's WEB-INF/lib directory
* Edit WEB-INF/xwiki.cfg file
I added
com.xpn.xwiki.plugin.spacemanager.impl.SpaceManagerImpl
to the plugins list
* Restart your XWiki instance
Restarted Tomcat6
Made no difference.
I'm running out of ideas here.
What method *should* I be doing to create the Org space and then obviously following on from this the user sub-spaces?
Thanks
Cheers
Hi,
I'm using the 1.8 version of xwiki and was wondering if somebody could give me a very simple demo of how I can get the table sort snippet to work in the 2.0 syntax,
At the moment I can only get it to work in the 1.0 syntax and I know I'm probably missing something simple!
Thanks very much
P.S. Would it be possible to get this facility (sortable and filterable) incorporated within the new WYSIWYG editor's table wizard?
--
View this message in context: http://n2.nabble.com/Sortable-Tables-in-2.0-Syntax-tp2557611p2557611.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi guys,
is it possible, to have a DBList property be dependent on another when
being inline mode and editing a new page?
Example:
I have DBListProperty A which gets me 1000 selectable entries. I have
DBListProperty B with like 10 entries and by selecting an entry in B,
I want those entries in the A box to disappear, that should not be
selectable. So to say, filter the entries with some other properties.
I only think of some AJAX operations to handle somethiong like this,
but hopefully you guys can give me some hints to point me into the
right direction on how to do this.
Thanx in advance,
Sebastian
Canel that... Should've been to intranet01 instead of localhost
----- Original Message -----
From: Thomas Mortagne [thomas.mortagne(a)xwiki.com]
Sent: 03/30/2009 04:04 PM ZE2
To: XWiki Users <users(a)xwiki.org>
Subject: Re: [xwiki-users] Can't get XEM application xar imported in XEM 1.6
Hi ,
On Mon, Mar 30, 2009 at 15:12, Martijn Ras <martijn.ras(a)gmail.com> wrote:
> Hello,
>
> I'm trying to set up XEM on a new machine.
>
> I put the XEM WAR file under the webapps folder of my tomcat installation.
> Created the MySQL database, just like i used to do with the XE
> installations I performed so far, and set the rights as specified in
> the installation section of the AdminGuide.
> After starting tomcat the database was created and everything else looked fine.
>
> However, whatever i do everything is redirected to the page
> http://example.com:9080/xwiki/bin/Main/ThisWikiDoesNotExist
By default XEM access a wiki based on it's host (see
http://manager.xwiki.org/xwiki/bin/view/AdminGuide/AccessWiki for more
details). If it's not listed in one of the wikis descriptors, it can't
find it. That said when no descriptor can be found the following rules
are applied:
* if the host is an IP (127.0.0.1, 85.65.12.36, etc.) XWiki select
the main wiki
* else, if the first part of the host name (what is before the
first point) is "www" XWiki select the main wiki
* else, if the first part of the host name match a wiki identifier
XWiki select this wiki
at the end if it still can't find anything he send you to the
configured URL indicating that the wiki you are trying to reach does
not exists (by default it's
http://example.com:9080/xwiki/bin/Main/ThisWikiDoesNotExist in
xwiki.cfg file).
So, two solutions for you here:
- clean way: access the main wiki with the ip if you can or with a
host starting with "www." (like www.xwiki.org) or "xwiki." and add the
right hosts to the main wiki's descriptor
- set xwiki.virtual=0 in xwiki.cfg and restore it to 1 when you
correctly configured the main wiki descriptor
(Just added it to
http://manager.xwiki.org/xwiki/bin/view/AdminGuide/InstallationMySQL)
>
> I'm probably overlooking something really simple, anyways, can one of
> you please enlighten me on how to get the XEM XAR loaded?
>
> Mazzel,
>
> Martijn.
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
--
Thomas Mortagne
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Hello,
I'm trying to set up XEM on a new machine.
I put the XEM WAR file under the webapps folder of my tomcat installation.
Created the MySQL database, just like i used to do with the XE
installations I performed so far, and set the rights as specified in
the installation section of the AdminGuide.
After starting tomcat the database was created and everything else looked fine.
However, whatever i do everything is redirected to the page
http://example.com:9080/xwiki/bin/Main/ThisWikiDoesNotExist
I'm probably overlooking something really simple, anyways, can one of
you please enlighten me on how to get the XEM XAR loaded?
Mazzel,
Martijn.
Hi all
My name is Paweł Niechoda and I am participating in SoC. I just want to say
hello to Xwiki community.
I am interested in creating new XEclipse Navigator. So now I am analysing
it. I think I will apply for that project :)
Paweł
Hi,
That's my first training on xwiki ; I got a pb.
I downloaded xwiki enterprise and installed it as a Tomact 5.5 webapp, with
MySQL DB.
I login as Admin.
I have added 2 new users ; it's sure cause I can login these users ; but I
don't see them by the category "users" from xwiki preferences
In fact, I got a page where it is written "Displaying rows from 1 to 3 out
of 3" (which is right) but the array is empty.
What's wrong with me ?
I should tell that with the standalone installation, I don't get this
trouble : I (as Admin) can see the users
Thanks for help
#
" This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, please advise the sender immediately and delete this e-mail and all attached documents from your computer system. Any unauthorised disclosure, distribution or copying hereof is prohibited."
" Ce courriel et les documents qui y sont attaches peuvent contenir des informations confidentielles. Si vous n'etes pas le destinataire escompte, merci d'en informer l'expediteur immediatement et de detruire ce courriel ainsi que tous les documents attaches de votre systeme informatique. Toute divulgation, distribution ou copie du present courriel et des documents attaches sans autorisation prealable de son emetteur est interdite."
#