Hello,
I'm working on the JIRA issue "Automatically register translations
for the Bulletin Board application", and so I would like to be able to
access the Bulletin Board application. Could you let me access it from my
GitHub account ? My GitHub UserName is "tDelafosse".
Cheers,
Thomas
>
Hi devs,
I had to modify Selenium 1 tests to run on WebDriver because otherwise
WYSIWYG tests were not running on Firefox version newer than 11 and
this was holding ui-tests (Selenium 2 / WebDriver) tests back. Right
now all CI agents are using Firefox 11 which is a bit old. We could
configure CI to run Selenium 1 and 2 tests on different browsers, but
I'd rather use the same browser.
This is the first step of migrating all Selenium 1 tests to WebDriver.
I'd like to merge my commits into the stable-4.3.x branch because it
doesn't affect the stability of the end product (XE) and it eases the
configuration of the CI
See http://jira.xwiki.org/browse/XE-1252 and
https://github.com/xwiki/xwiki-enterprise/commit/811cd70797141d93f062b73907…
Here's my +1
Thanks,
Marius
I want to make such a Comparator so that I can sort objects retrieved by
$xwiki.getObjects("Class")
If I had the Comparator, I'd be able to pass it to a collection sort method
and sort objects.
I'm planning to make that Comparator in a groovy snippet.
I may be able to make a Component for that even.
Is it possible?
If it was possible, would you give me some hints?
Hello everyone,
I'm trying to write a listener. The listener is correctly triggered after
creation. But when I change the listener code, it is not taken into account
by the server. I have to
restart the server. How to avoid this?
This my code:
{{groovy}}
import org.xwiki.observation.*
import org.xwiki.observation.event.*
import com.xpn.xwiki.web.*
import com.xpn.xwiki.*
class AutoEventListener implements EventListener
{
def xwiki
def context
AutoEventListener(xwiki, context)
{
this.xwiki = xwiki
this.context = context
}
String getName()
{
return "auto_febi"
}
List<Event> getEvents()
{
return Arrays.asList(new DocumentSaveEvent())
}
void onEvent(Event event, Object source, Object data)
{
if (source.fullName != "EventListenerAuto") {
def document = xwiki.getDocument(source.fullName)
def var= document.getValue("avisDSI")
if (var != "-"){
document.set("nomDSI","coucou")}
}
}
}
def observation = Utils.getComponent(ObservationManager.class)
observation.removeListener("auto_febi")
def listener = new AutoEventListener(xwiki, xcontext)
observation.addListener(listener)
{{/groovy}}
Thank you very much for your future answer,
Cécile
--
View this message in context: http://xwiki.475771.n2.nabble.com/listener-not-reloading-after-modification…
Sent from the XWiki- Dev mailing list archive at Nabble.com.
Can I use $services.xml to parse a XML document to get the tag name and
value?
#set( $xml = "<test><input1>eeee</input1></test>");
I would like the input value "eeee". How can this be done?
Thanks,
Patrick
--
View this message in context: http://xwiki.475771.n2.nabble.com/question-about-xml-tp7582405.html
Sent from the XWiki- Dev mailing list archive at Nabble.com.
I am upgrading from Xwiki 2.7.33656 to Xwiki 4.3-milestone-1.
I also upgraded from Tomcat 5.5.33 to Tomcat 7.0.32.
I installed the Xwiki as a WAR in the new instnace of Tomcat. I modified
the hibernate.cfg.xml file as indicated in the install instructions.
When trying to access the new Xwiki it just sits on a blank page with
reference to http://localhost:8080/xwiki/bin/view/Main/.
I did try to run the MYSQLDUMP file from the older Xwiki instance in the
newer Xwiki instance.
But each time it fails with "lost connect to mysql".
Is there some difference between the MySQL databse instances of Xwiki 2.7.*
and Xwiki 4.3* that could be causing this problem?
Some of the log files are below...
*catalina*.log
*Nov 14, 2012 11:24:24 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 29542 ms
*localhost_access_log*
0:0:0:0:0:0:0:1 - - [14/Nov/2012:11:41:36 -0600] "GET /xwiki/ HTTP/1.1" 302
-
0:0:0:0:0:0:0:1 - - [14/Nov/2012:11:41:36 -0600] "GET /xwiki/bin/view/Main/
HTTP/1.1" 200 -
*localhost.log*
Nov 14, 2012 11:23:55 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener:
attributeAdded('org.apache.jasper.compiler.TldLocationsCache',
'org.apache.jasper.compiler.TldLocationsCache@2b9406')
--
View this message in context: http://xwiki.475771.n2.nabble.com/Blank-Xwiki-after-upgrading-from-2-7-3365…
Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi,
I took a look at the new model proposal and there are a few questions and suggested changes.
https://github.com/xwiki/xwiki-platform/blob/feature-newmodel/xwiki-platfor…
Should this be a String rather than a Java UUID type?
https://github.com/xwiki/xwiki-platform/blob/feature-newmodel/xwiki-platfor…
If we use getChildren() rather than getChildReferences(), we will be mangling the model with the database code which violates the MVC principle.
Also we run the risk of encouraging users to walk the tree looking for the entity it wants rather than creating a reference to it and using that.
Walking the tree would obviously incur enormous unnecessary database load.
https://github.com/xwiki/xwiki-platform/blob/feature-newmodel/xwiki-platfor…
Do we want to continue with the concept of the global variable representing the "current" document?
I'm currently not brimming with alternative ideas but the heavy reliance on the XWikiContext has lead to
a lot of inter-modular communication which makes oldcore difficult to maintain, perhaps we can prevent
this in the new model.
https://github.com/xwiki/xwiki-platform/blob/feature-newmodel/xwiki-platfor…
I would rather this have a name which doesn't collide with a java.lang class. When I see Object in a .java
file I would like it to always mean java.lang.Object.
https://github.com/xwiki/xwiki-platform/blob/feature-newmodel/xwiki-platfor…
I like XClass better for this purpose, it is essentially a class and creating a new name which nobody
has ever heard of will just steepen the learning curve and make things hard on newcomers.
https://github.com/xwiki/xwiki-platform/blob/feature-newmodel/xwiki-platfor…
Why not give the user direct access to the property without the intervening wrapper?
https://github.com/xwiki/xwiki-platform/blob/feature-newmodel/xwiki-platfor…
I don't like this.
A Persistable is saved in a store by a user. Who is the user and where are they saving it?
What if I want to have multiple stores?
Must there be a global variable representing the store which is implied by this function?
The comment and minorEdit fields are also a bit dubious, perhaps in the future they will make no sense, perhaps
they should really be attributes of the Document, also the "attributes" parameter reminds me of this:
http://geek-and-poke.com/2012/06/how-to-create-a-stable-api.html
Finally, giving the document awareness of where and how it is stored violates the MVC boundries.
I think we should not worry about the API which stores the Persistable when we are creating the model, the
store API should be separate so that it can evolve while the model stays stable.
https://github.com/xwiki/xwiki-platform/blob/feature-newmodel/xwiki-platfor…
A session is essentially a transaction? If so why not call it Transaction? Also why does it extend Persistable?
How do you persist a session?
https://github.com/xwiki/xwiki-platform/blob/feature-newmodel/xwiki-platfor…
Why does addSpace() not take a Space parameter? it makes sense to me that you would do:
parent = storeApi.get(wikiRef, "SomeSpace", user);
child = new DefaultSpace();
child.addDocument("ADocument", new DefaultDocument("This is content."));
parent.addSpace("ChildSpace", child);
storeApi.save(parent, user);
I'm just brainstorming here but this seems like a reasonable approach..
I noticed the lack of a User data type, is that just something which is planned for the future or is it
intentionally missing?
Thanks,
Caleb
The XWiki development team is proud to announce the availability of XWiki
Enterprise 4.3 Milestone 2.
This release brings:
- a new and experimental Solr Search engine
- new default date, user and group pickers
- a new localization module allowing applications to register translations
- REST API additions
- various other improvements.
You can download it here: http://www.xwiki.org/xwiki/bin/view/Main/Download
Make sure to review the release notes:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki43M2
Thanks
-The XWiki dev team