Hi!
Tag clouds (http://en.wikipedia.org/wiki/Tag_cloud) seem so in these
days, so I made a simple implementation using the Main.Tags in xwiki.
The styling isn't too sexy, but that should be easy to configure.
Here is the code for use in a panel or similar place:
#panelheader('Tag cloud')
#set($query = "select elements(prop.list) from BaseObject as obj,
DBStringListProperty as prop where obj.className='XWiki.TagClass' and
obj.id=prop.id.id and prop.id.name='tags'")
#set( $allTags = $xwiki.sort($xwiki.search($query)))
#set( $tagsWithCount = $xwiki.metawiki.getTagsWithCount($allTags))
#set($query = "select distinct elements(prop.list) from BaseObject as
obj, DBStringListProperty as prop where obj.className='XWiki.TagClass'
and obj.id=prop.id.id and prop.id.name='tags'")
#set( $tagsDistinct = $xwiki.sort($xwiki.search($query)))
#foreach($tag in $tagsDistinct)
<span style="#getStyle($tagsWithCount.get($tag))"><a
href="$xwiki.getURL("Main.Tags", "view", "tag=$tag")")>$tag</a></span>
#end
#panelfooter()
#macro( getStyle $count )
#if ($count < 2) "font-size: 0.80em;"
#elseif ($count < 3) font-size: 1.00em; }
#elseif ($count < 4) font-size: 1.20em; }
#elseif ($count < 5) font-size: 1.40em; }
#elseif ($count < 6) font-size: 1.60em; }
#elseif ($count < 7) font-size: 1.80em; }
#elseif ($count < 8) font-size: 2.00em; }
#else font-size: 2.50em; }
#end
#end
And here's the java code invoked:
public static HashMap<String, Integer>
getTagsWithCount(ArrayList<String> allTags) {
String tag = null;
String previousTag = null;
HashMap<String, Integer> tagsWithCount = new HashMap<String, Integer>();
int count = 1;
for (int i = 0; i < allTags.size(); i++) {
previousTag = tag;
tag = allTags.get(i);
if (tag.equals(previousTag)) {
count++;
} else {
count = 1;
previousTag = null;
}
tagsWithCount.put(tag, new Integer(count));
}
return tagsWithCount;
}
Is this anything you would want to include in xwiki, or is it too
trivial to bother with? See the attached file for a sample screenshot.
best regards :-)
Thomas Drevon
Hi committers and everyone,
Jean-Vincent is starting a new XWiki project called: XWiki Enterprise
Manager. The goal is to create an application to administer/manager a
XWiki farm (ie virtual wikis).
This was initially a project we've done internally for customers (but
under an OSS license). We've decided to make it public so that
everyone can benefit from it. It's pretty raw at the moment and we're
starting from scratch. You're all most welcome to participate and
contribute to it.
Jean-Vincent is going to send a more detailed email very soon about it.
We're creating a separate JIRA project for that project. We'll create
some space on xwiki.org for it too a bit later on.
Note that Nicolas Fournier (who is new to this community) has
expressed interest in helping us build XEM and he'll join Jean-
Vincent real soon.
Thanks
-Vincent
Hello,
Although I already run Xwiki a couple of times in Eclipse, the last version of sources that I got throws me the following error when I try to run it as standalone:
Buildfile: D:\XWiki\src\xwiki\build.xml
BUILD FAILED
D:\XWiki\src\xwiki\build.xml:227: taskdef A class needed by class org.apache.cactus.integration.ant.CactusTask cannot be found: junit/framework/Test
Total time: 844 milliseconds
Can someone help me understand? I think a class is missing from the junit jar but....what should I do?
Thank you,
Evelina Slatineanu
I keep getting and error when I try to save and view and save and continue pages. It will do the actions but will report an error. This is the error it shows and please respond as soon as possible.
Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
Wrapped Exception: Error number 3211 in 3: Exception while updating archive XWiki.XWikiPreferences
Wrapped Exception: Error number 3212 in 3: Exception while loading archive 104,408,758
Wrapped Exception: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of com.xpn.xwiki.doc.XWikiDocumentArchive.setArchive
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences
Wrapped Exception: Error number 3211 in 3: Exception while updating archive XWiki.XWikiPreferences
Wrapped Exception: Error number 3212 in 3: Exception while loading archive 104,408,758
Wrapped Exception: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of com.xpn.xwiki.doc.XWikiDocumentArchive.setArchive
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:314)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:100)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:94)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:914)
at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:114)
at com.xpn.xwiki.web.SaveAction.action(SaveAction.java:123)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:149)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:121)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Thread.java:619)
Wrapped Exception:
com.xpn.xwiki.XWikiException: Error number 3211 in 3: Exception while updating archive XWiki.XWikiPreferences
Wrapped Exception: Error number 3212 in 3: Exception while loading archive 104,408,758
Wrapped Exception: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of com.xpn.xwiki.doc.XWikiDocumentArchive.setArchive
at com.xpn.xwiki.store.XWikiHibernateVersioningStore.updateXWikiDocArchive(XWikiHibernateVersioningStore.java:249)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:239)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:100)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:94)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:914)
at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:114)
at com.xpn.xwiki.web.SaveAction.action(SaveAction.java:123)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:149)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:121)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Thread.java:619)
Wrapped Exception:
com.xpn.xwiki.XWikiException: Error number 3212 in 3: Exception while loading archive 104,408,758
Wrapped Exception: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of com.xpn.xwiki.doc.XWikiDocumentArchive.setArchive
at com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDocArchive(XWikiHibernateVersioningStore.java:122)
at com.xpn.xwiki.store.XWikiHibernateVersioningStore.getXWikiDocumentArchive(XWikiHibernateVersioningStore.java:91)
at com.xpn.xwiki.store.XWikiHibernateVersioningStore.updateXWikiDocArchive(XWikiHibernateVersioningStore.java:241)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:239)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:100)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:94)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:914)
at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:114)
at com.xpn.xwiki.web.SaveAction.action(SaveAction.java:123)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:149)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:121)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Thread.java:619)
Wrapped Exception:
net.sf.cglib.beans.BulkBeanException: Error number 3003 in 3: Exception while manipulating the archive for doc
Wrapped Exception: Parse error at line 1, column 99. Encountered: Campbell
at com.xpn.xwiki.doc.XWikiDocumentArchive$$BulkBeanByCGLIB$$ae9872e2.setPropertyValues()
at org.hibernate.tuple.PojoEntityTuplizer.setPropertyValuesWithOptimizer(PojoEntityTuplizer.java:212)
at org.hibernate.tuple.PojoEntityTuplizer.setPropertyValues(PojoEntityTuplizer.java:185)
at org.hibernate.persister.entity.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:3232)
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:126)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:842)
at org.hibernate.loader.Loader.doQuery(Loader.java:717)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1785)
at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:93)
at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:81)
at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:2730)
at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:365)
at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:346)
at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:123)
at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:177)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:891)
at org.hibernate.impl.SessionImpl.load(SessionImpl.java:799)
at com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDocArchive(XWikiHibernateVersioningStore.java:112)
at com.xpn.xwiki.store.XWikiHibernateVersioningStore.getXWikiDocumentArchive(XWikiHibernateVersioningStore.java:91)
at com.xpn.xwiki.store.XWikiHibernateVersioningStore.updateXWikiDocArchive(XWikiHibernateVersioningStore.java:241)
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:239)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:100)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:94)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:914)
at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:114)
at com.xpn.xwiki.web.SaveAction.action(SaveAction.java:123)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:149)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:121)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.xpn.xwiki.XWikiException: Error number 3003 in 3: Exception while manipulating the archive for doc
Wrapped Exception: Parse error at line 1, column 99. Encountered: Campbell
at com.xpn.xwiki.doc.XWikiDocumentArchive.setArchive(XWikiDocumentArchive.java:68)
... 50 more
Hi XWiki Committers,
As part of our recognition to contributors, I think it would be good
that all of us make sure that contributors names get entered on
http://www.xwiki.org/xwiki/bin/view/Community/HallOfFame
I'm trying to do this although I'm pretty sure I'm forgetting
names... But if we all participate there's a better chance to have a
correct picture in there.
Yes, I know we already have contributor's names in SVN (when we use
the commit message format we agreed on) and they're in JIRA too but I
still think we need a more visible place to list them and xwiki.org
is as good a place as we can find.
So please help me thank them there.
I'm adding Ioana Boureanu now.
Thanks
-Vincent
The XWiki development team team is pleased to announce the
availability of the 1.1 Milestone 1 release.
Go grab it on http://www.xwiki.org/xwiki/bin/view/Main/Download
This is the first milestone for the 1.1 version. It contains several
improvements and new features for the default wiki.
Main changes:
* Lots of bugs fixed
* Improved Search: Ability to search by space and RSS feed based
on searches
* Added ability to filter and sort HTML tables in the Albatross
skin (documentation forthcoming). Added support for it on the
AllDocs, Search, What's new, Tags and SpaceIndex pages.
* Added Polish translation
* Updated German translation for German
* Improved PDF output by better rendering headers and footers.
Note that it's now possible to customize how generated headers and
footers look like
* Added experimental RTF export
* Added ability to enter comment when making changes to
documents (documentation forthcoming). It's possible to configure it
to force users to enter comments if that's what you want (it's
optional by default)
* Ability to export to PDF several documents at once
(documentation forthcoming). Note that there's no UI yet
* Added new "Orphaned Pages" page + Panel to the default wiki
+ lots of other changes.
See the full release notes on http://www.xwiki.org/xwiki/bin/view/
Main/ReleaseNotesXWiki11M1
Enjoy
-The XWiki development team
Hi,
The current structure of the menu is "Edit, Show, Print, Delete,
Rename", with Print containing "Preview, PDF", and we've also added
RTF recently. Print is not a good name for this menu, because:
- it is imperative. I'd expect the browser to actually print
something, if I didn't know how browsers work.
- PDF and RTF are not actually printed stuff, so they don't quite fit in there.
- We're also thinking of adding a XAR quick export, which does not fit
anywhere right now
So, a better structure would be: "Edit, Show, Export, Delete, Rename",
with Export containing "PDF, RTF, XML, XAR". Print preview should be
renamed to "Printable version" or something similar, and should go in
"Show" or "Export" (the former is better).
Ludovic says that "Printable version" is too long, but this is the
term used on most sites (or Printer friendly version), and it's not
longer than "Page Access Rights", for instance, which is another
submenu entry.
Sergiu
--
http://purl.org/net/sergiu
Hi commiters,
Following our recent conversation, I'd like us to agree on the 1.1
roadmap. Here's my proposal in term of timing:
* 1.1 B1 - 28th of May
* 1.1 B2 - 18th Of June
* 1.1 B3 - 9th of July
* 1.1 RC1 - 30th of July
* 1.1 RC2 - 20th of August
* 1.1 Final - 3rd of September
Note: This is time-boxed development so the delivery dates don't
change (or as little as possible) but the content may change.
See the other thread for the goals defined for 1.1.
Here's my +1
Thanks
-Vincent
Hi,
I'd like to propose changing our naming of releases to use Milestones
instead of betas and alphas.
The main reason is that we're practicing time boxing and agile
development. This means that each release gets new features/
improvements. This is the main point of agile development: release
pieces of working features at each release. Betas suggest that the
release is almost finished in term of features. On Monday we've
planned to release 1.1 Beta 1. However it's no feature complete as
we've planned 3 betas and 2 rcs and we plan to add features in the
betas.
Thus I believe we should use the word "Milestone" which is better
suited for our style of development (Note: Milestone was suggest by
Sergiu, I'm just borrowing his idea here ;-)).
So I'd suggest to change our plan to be:
* 1.1 M1 - 28th of May
* 1.1 M2 - 18th Of June
* 1.1 M3 - 9th of July
* 1.1 M4 - 30th of July
* 1.1 M5 - 20th of August
* 1.1 Final - 3rd of September
We only need to agree that M4 and M5 should be focused on bug fixing
and not introduce new features (or smallish ones only). This is
because we're not yet quite ready with our automated tests. If we had
a strong suite of tests we wouldn't need to do that and this is the
goal we need to achieve. So I hope we'll see more tests written in M1
to M3.
Here's my +1 to this new name.
Please cast your votes.
Thanks
-Vincent