[xwiki-users] Markup help
Hi, At present I'm a total noob when it comes to xwiki so please forgive anything that demonstrates that in the following request for guidance/support... I'd like to create a xwiki page that, in appearance, is not dissimilar to this page: http://www.xwiki.com/xwiki/bin/view/BlogFr/ Where the difference will ocur is that I'd like to aggregate several *external* blog feeds into the main body content as per the blog post item list in the example above and the same (i.e. aggregate external feeds) for the twitter module sitting in the right column further down although ideally i'd like to mash twitter and identica feeds into a single list thus merging the timelines - and for extra kudos a de-dupe would be sweet to cut out those cross-posts and retweets. Would be cool to do the cloud as well though I suspect I'll need to try and cache an aggregated 'lookup' before attempting that feat. Finally, I'm currently working under a particular constraint - the version of xwiki I'm using is v1.5.2.12758. Any pointers re: best practice for a) embedding javascript in the page as per the twitter object and b) blog post aggregation and ideally c) some demo markup anyone could share and would be totally delighted if d) anyone wants to tell me how they'd do or have done the tag cloud from an aggregated feed. Kind Regards, Ed. PS. I've looked at this example with Groovy though I'd appreciate confirmation I can do it in the version I'm using before attempting, failing and resorting to losing head on hair from ignorant frustration ;-) i.e. any extra dependencies to do the groovy thing or can I just do this straight away with the version I currently use: http://bit.ly/8KcgLD ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] WG: Xeclipse plugin
Fabio, The Xeclipse plugin that I installed did not install 2 of the views shown on website: The XWiki Page Editor and the XWiki Object Editor are missing. I have only the XWiki Navigator and the XWiki preview available in Eclipse. I also installed the full version of Xeclipse as a separate application and it works fine. All the elements are there, and the syntax highlighting in Xwiki syntax is available. Greetings, Steven Calkins -Ursprüngliche Nachricht- Von: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Im Auftrag von Fabio Mancinelli Gesendet: Freitag, 27. November 2009 16:43 An: XWiki Users Betreff: Re: [xwiki-users] WG: Xeclipse plugin On Nov 27, 2009, at 4:24 PM, Steven Calkins wrote: Fabio, A bit more to the issue: I just renamed the strange page from Panels.Recently Modified* to Panels.Recently Modified2 and the grabbing finished without an error. Still there is no list of pages under the Panels node in the Xwiki Eclipse Navigator. In another space I have -- Glossary -- and -- Views -- as page names. I sort the pages using $sorttool.sort(), but I wanted these to be at the top although they would not be alphabetically sorted there. So I added the -- before and after. Of course I could just manually enter them into the panel, but now the panel space seems to be correctly grabbed despite the unusual name that occurs there. Steven, Yes. I see two different kinds of exceptions in the stack trace: Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence. and Caused by: org.eclipse.core.internal.resources.ResourceException: * is an invalid character in resource name 'Panels.Recently Modified*'. But I cannot tell more without having a debugger in front of me. Thanks. Fabio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Markup help
Hi Ed, On Dec 1, 2009, at 9:39 AM, Ed Daniel wrote: Hi, At present I'm a total noob when it comes to xwiki so please forgive anything that demonstrates that in the following request for guidance/support... I'd like to create a xwiki page that, in appearance, is not dissimilar to this page: http://www.xwiki.com/xwiki/bin/view/BlogFr/ Where the difference will ocur is that I'd like to aggregate several *external* blog feeds into the main body content as per the blog post item list in the example above and the same (i.e. aggregate external feeds) for the twitter module sitting in the right column further down although ideally i'd like to mash twitter and identica feeds into a single list thus merging the timelines - and for extra kudos a de-dupe would be sweet to cut out those cross-posts and retweets. We have a Feed plugin (used by XWiki Watch BTW) that can be used to fetch Blog feeds and aggregate them. Unfortunately we don't have any doc yet about the Feed plugin on code.xwiki.org Here are the sources you can check to see how to use it: http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/plugin/feed/ Would be cool to do the cloud as well though I suspect I'll need to try and cache an aggregated 'lookup' before attempting that feat. Finally, I'm currently working under a particular constraint - the version of xwiki I'm using is v1.5.2.12758. Unless you really like beating yourself I recommend you upgrade ;) That said, the Feed plugin has existed for a long time so it probably works fine. -Vincent Any pointers re: best practice for a) embedding javascript in the page as per the twitter object and b) blog post aggregation and ideally c) some demo markup anyone could share and would be totally delighted if d) anyone wants to tell me how they'd do or have done the tag cloud from an aggregated feed. Kind Regards, Ed. PS. I've looked at this example with Groovy though I'd appreciate confirmation I can do it in the version I'm using before attempting, failing and resorting to losing head on hair from ignorant frustration ;-) i.e. any extra dependencies to do the groovy thing or can I just do this straight away with the version I currently use: http://bit.ly/8KcgLD ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [xwiki-devs] Can XWiki benefit from Google AJAX Libraries API ?
On 12/01/2009 06:10 AM, Asiri Rathnayake wrote: Link: http://code.google.com/apis/ajaxlibs/ Article about how it can make websites fast: http://radar.oreilly.com/2009/11/steve-souders-making-web-sites.html XWiki web gurus, can XWiki benefit from this? Is it worth considering? Maybe. Its main advantages are that: - it increases the chance of having the prototype and scriptaculous scripts in the cache. - it downloads them from Google's fast CDN, reducing the load on our servers I don't know how does it work with the rest of our scripts, which assume that Prototype is already loaded. It probably doesn't which means that we'll need lots of changes in all our js code to integrate it. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] [Proposal] Roadmap for XE 2.2
Hi everyone, Here's a proposal Guillaume and I have prepared for the XE 2.2 roadmap. - XWiki committers: I have assigned some devs based on past work. Please confirm if it's ok for you or not. You can also suggest other stuff you'd like to do if you think you'll have the time - XWiki contributors: Please let us know if you're willing to participate and on the topic you're interested in participating to - XWiki users: Please let us know if we have forgotten something important Must have (Priority 1): - Wiki Macro isolation for XEM (Vincent) - WCAG (Jean-Vincent + Vincent + Sergiu + Caty) - User Profile UI (Caty + Jean-Vincent) - Google Gadgets integration (scope to be defined by Anamaria) - Bug fix + stabilization (All) - Patch application (Volunteer needed) -- Lucene patches -- Performance patches - i18 rendering (Thomas) - Annotations (Anca) Nice to have (Priority 2): - ColorTheme UI improvement - Watchlist UI - xwiki.org improvements: -- use new skin + new colors -- horizontal navigation -- Home page redesign -- Download page redesign -- Project page design -- Support page redesign Dates: - 2.2M1: 28 Dec 2009 - 2.2M2: 18 Jan 2010 - 2.2RC1: 1er Feb 2010 - 2.2 RC2/Finale: 8 Feb 2010 Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [Proposal] Roadmap for XE 2.2
On Tue, Dec 1, 2009 at 12:23, Vincent Massol vinc...@massol.net wrote: Hi everyone, Here's a proposal Guillaume and I have prepared for the XE 2.2 roadmap. - XWiki committers: I have assigned some devs based on past work. Please confirm if it's ok for you or not. You can also suggest other stuff you'd like to do if you think you'll have the time - XWiki contributors: Please let us know if you're willing to participate and on the topic you're interested in participating to - XWiki users: Please let us know if we have forgotten something important Must have (Priority 1): - Wiki Macro isolation for XEM (Vincent) - WCAG (Jean-Vincent + Vincent + Sergiu + Caty) - User Profile UI (Caty + Jean-Vincent) - Google Gadgets integration (scope to be defined by Anamaria) - Bug fix + stabilization (All) - Patch application (Volunteer needed) -- Lucene patches -- Performance patches - i18 rendering (Thomas) - generic transformation markers (Thomas) - Annotations (Anca) Nice to have (Priority 2): - ColorTheme UI improvement - Watchlist UI - xwiki.org improvements: -- use new skin + new colors -- horizontal navigation -- Home page redesign -- Download page redesign -- Project page design -- Support page redesign Dates: - 2.2M1: 28 Dec 2009 - 2.2M2: 18 Jan 2010 - 2.2RC1: 1er Feb 2010 - 2.2 RC2/Finale: 8 Feb 2010 Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Activating the XWiki monitoring feature
Hi everyone, I'm trying to activate the xwiki monitoring feature, following the instructions given here:http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging, but it doesn't work for me. Is it because I'm working on Xwiki Enterprise Manager? Do you have any idea of what I can do to get my log file? In advance thanks Raphaelle This message and any attachments is intended for the named addressee(s) only and may contain information that is privileged and/or confidential. If you receive this message in error, please delete it and immediately notify the sender. Any copying, dissemination or disclosure, either whole or partial, by a person who is not the named addressee is prohibited. We use virus scanning software but disclaim any liability for viruses or other devices which remain in this message or any attachments. * Ce message, ainsi que toute piece jointe, est exclusivement adresse au(x) destinataire(s) nomme(s) et peut contenir des informations confidentielles. Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement l'emetteur. Toute copie, transmission ou divulgation, integrale ou partielle, par une personne qui n'est pas nommee comme destinataire est interdite. Nous utilisons un logiciel anti-virus mais nous denions toute responsabilite au cas ou des virus, ou tout autre procede, seraient contenus dans ce message ou toute piece jointe. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [xwiki-devs] Can XWiki benefit from Google AJAX Libraries API ?
In i2geo we decided to drop this dependency on google-APIs-server for prototype and friends. We decided this based on my observation that connections are often opened to such servers, even just for checking that it is not modified even though it is in cache. It's an easy adjustment. paul Le 01-déc.-09 à 12:18, Sergiu Dumitriu a écrit : On 12/01/2009 06:10 AM, Asiri Rathnayake wrote: Link: http://code.google.com/apis/ajaxlibs/ Article about how it can make websites fast: http://radar.oreilly.com/2009/11/steve-souders-making-web-sites.html XWiki web gurus, can XWiki benefit from this? Is it worth considering? Maybe. Its main advantages are that: - it increases the chance of having the prototype and scriptaculous scripts in the cache. - it downloads them from Google's fast CDN, reducing the load on our servers I don't know how does it work with the rest of our scripts, which assume that Prototype is already loaded. It probably doesn't which means that we'll need lots of changes in all our js code to integrate it. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ devs mailing list d...@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Testing framework within XWiki pages
Hello all, I've been desiring a testing framework to aid my development efforts within XWiki pages. Specifically, I want to use test-driven development so that I can write tests for scripts before I write the scripts themselves. These tests would be harnesses (possibly using {{include document=Blah.Blah}} and xwiki.parseGroovyFromPage(Blah.Blah)) and would report passes / failures / errors. There would also be a way to develop a suite of tests to run all at once, xUnit style. Before taking the time to develop this myself, has anyone developed something like this, or are there any recommendations or code you could share? Thanks, Joshua ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Template Property Value Propagation
I have created a class that will be used to display SOPs (standard operating procedures). I have assigned the class its required properties (mostly of data types String and TextArea) and generated the class sheet and class template. When I create new documents/instances of the SOPClass, the documents look like the SOPTemplate. I've tried populating the constant properties in the SOPTemplate and creating a new document. The new document looks like the SOPTemplate in structure but does not have any values associated with its properties. Is there a way that the SOPTemplate can propagate it's property values to new instances of the SOPClass? That is, I want some (but not all) of the properties of SOPClass to be the same for every new document/instantiation of the SOPClass. Is this possible? Similarly, if these constant properties are modified in the future, I'd like the changes to be distributed across all instances of SOPClass. Any and all help is greatly appreciated. Joe ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Template Property Value Propagation
Hi Joe, On Tue, Dec 1, 2009 at 6:00 PM, Joe Shuster joseph.shus...@gmail.comwrote: I have created a class that will be used to display SOPs (standard operating procedures). I have assigned the class its required properties (mostly of data types String and TextArea) and generated the class sheet and class template. When I create new documents/instances of the SOPClass, the documents look like the SOPTemplate. I've tried populating the constant properties in the SOPTemplate and creating a new document. The new document looks like the SOPTemplate in structure but does not have any values associated with its properties. Do you mean you edited the SOPTemplate page with the object editor and added your constant properties in the relevant object fields? If you did so, when creating a new SOP those values should be copied from the template. Is there a way that the SOPTemplate can propagate it's property values to new instances of the SOPClass? That is, I want some (but not all) of the properties of SOPClass to be the same for every new document/instantiation of the SOPClass. Is this possible? Similarly, if these constant properties are modified in the future, I'd like the changes to be distributed across all instances of SOPClass. Is this value supposed to be user-editable? If it is, it's gonna be hard to propagate if it gets changed. On the other hand if it's not user-editable, there's not much of a point in using an object to store it. Guillaume Any and all help is greatly appreciated. Joe ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Template Property Value Propagation
Thanks for the quick response, Guillaume. On Tue, Dec 1, 2009 at 12:34 PM, Guillaume Lerouge guilla...@xwiki.comwrote: Hi Joe, On Tue, Dec 1, 2009 at 6:00 PM, Joe Shuster joseph.shus...@gmail.com wrote: I have created a class that will be used to display SOPs (standard operating procedures). I have assigned the class its required properties (mostly of data types String and TextArea) and generated the class sheet and class template. When I create new documents/instances of the SOPClass, the documents look like the SOPTemplate. I've tried populating the constant properties in the SOPTemplate and creating a new document. The new document looks like the SOPTemplate in structure but does not have any values associated with its properties. Do you mean you edited the SOPTemplate page with the object editor and added your constant properties in the relevant object fields? If you did so, when creating a new SOP those values should be copied from the template. Yes, this is what I did. The values don't seem to be copied when I create a new SOP based on the template. I'm going to try to recreate my class and see if it helps. Is there a way that the SOPTemplate can propagate it's property values to new instances of the SOPClass? That is, I want some (but not all) of the properties of SOPClass to be the same for every new document/instantiation of the SOPClass. Is this possible? Similarly, if these constant properties are modified in the future, I'd like the changes to be distributed across all instances of SOPClass. Is this value supposed to be user-editable? If it is, it's gonna be hard to propagate if it gets changed. On the other hand if it's not user-editable, there's not much of a point in using an object to store it. Please forgive my naivety but how would I store static text (ie, text that is not user editable) within a class/template. Thanks again, Joe Guillaume Any and all help is greatly appreciated. Joe ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Template Property Value Propagation
On Tue, Dec 1, 2009 at 18:43, Joe Shuster joseph.shus...@gmail.com wrote: Thanks for the quick response, Guillaume. On Tue, Dec 1, 2009 at 12:34 PM, Guillaume Lerouge guilla...@xwiki.comwrote: Hi Joe, On Tue, Dec 1, 2009 at 6:00 PM, Joe Shuster joseph.shus...@gmail.com wrote: I have created a class that will be used to display SOPs (standard operating procedures). I have assigned the class its required properties (mostly of data types String and TextArea) and generated the class sheet and class template. When I create new documents/instances of the SOPClass, the documents look like the SOPTemplate. I've tried populating the constant properties in the SOPTemplate and creating a new document. The new document looks like the SOPTemplate in structure but does not have any values associated with its properties. Do you mean you edited the SOPTemplate page with the object editor and added your constant properties in the relevant object fields? If you did so, when creating a new SOP those values should be copied from the template. Yes, this is what I did. The values don't seem to be copied when I create a new SOP based on the template. I'm going to try to recreate my class and see if it helps. Is there a way that the SOPTemplate can propagate it's property values to new instances of the SOPClass? That is, I want some (but not all) of the properties of SOPClass to be the same for every new document/instantiation of the SOPClass. Is this possible? Similarly, if these constant properties are modified in the future, I'd like the changes to be distributed across all instances of SOPClass. Is this value supposed to be user-editable? If it is, it's gonna be hard to propagate if it gets changed. On the other hand if it's not user-editable, there's not much of a point in using an object to store it. Please forgive my naivety but how would I store static text (ie, text that is not user editable) within a class/template. Sorry there is nothing like static values associated to the xClass yet. The workaround depends on how you want to use theses static values. What you could do is writing some custom UI to edit/view theses objects and: - take care of propagating the value change to all objects of the same class - display and edit the value from the template instance Thanks again, Joe Guillaume Any and all help is greatly appreciated. Joe ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Template Property Value Propagation
Hi Joe, On Tue, Dec 1, 2009 at 6:43 PM, Joe Shuster joseph.shus...@gmail.comwrote: Thanks for the quick response, Guillaume. On Tue, Dec 1, 2009 at 12:34 PM, Guillaume Lerouge guilla...@xwiki.com wrote: Hi Joe, On Tue, Dec 1, 2009 at 6:00 PM, Joe Shuster joseph.shus...@gmail.com wrote: I have created a class that will be used to display SOPs (standard operating procedures). I have assigned the class its required properties (mostly of data types String and TextArea) and generated the class sheet and class template. When I create new documents/instances of the SOPClass, the documents look like the SOPTemplate. I've tried populating the constant properties in the SOPTemplate and creating a new document. The new document looks like the SOPTemplate in structure but does not have any values associated with its properties. Do you mean you edited the SOPTemplate page with the object editor and added your constant properties in the relevant object fields? If you did so, when creating a new SOP those values should be copied from the template. Yes, this is what I did. The values don't seem to be copied when I create a new SOP based on the template. I'm going to try to recreate my class and see if it helps. Weird, what code do you use to create new items? Normally the SOPTemplate page gets copied during the creation process thus any data stored in it and its objects should get copied too. I used that in the past. Is there a way that the SOPTemplate can propagate it's property values to new instances of the SOPClass? That is, I want some (but not all) of the properties of SOPClass to be the same for every new document/instantiation of the SOPClass. Is this possible? Similarly, if these constant properties are modified in the future, I'd like the changes to be distributed across all instances of SOPClass. Is this value supposed to be user-editable? If it is, it's gonna be hard to propagate if it gets changed. On the other hand if it's not user-editable, there's not much of a point in using an object to store it. Please forgive my naivety but how would I store static text (ie, text that is not user editable) within a class/template. As text on the Class' Sheet page. Simply edit the Sheet page and add some content on it - it will immediately change for all your documents. Guillaume Thanks again, Joe Guillaume Any and all help is greatly appreciated. Joe ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Edit bug?
Hi xwiki-users, When I browse to a new space (http://localhost/xwiki_root/bin/view/MySpace) and edit the page using the edit this page link, it forwards me to a different space: http://localhost/xwiki_root/bin/edit/view/MySpace). It works when I browse to http://localhost/xwiki_root/bin/edit/MySpace/WebHome, but would be nice to have this fixed :-) But great work stuff in XWiki 2.0.x! -- Lewis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Components from the wiki
Hi xwiki-users, I'm trying to bootstrap a component from the wiki itself (via Groovy). I have an interface defined as follows: // This is the text inside the User.UserDAO document {{groovy}} interface UserDAO { def ROLE = UserDAO.class.name /** * Returns the current user name. */ def getUserName() /** * Returns the current user's password */ def getPassword() } {{/groovy}} I also have a dummy implementation defined as follows: // This is the text inside the User.UserXWQLDAO document {{include document=User.UserDAO /}} {{groovy}} import org.xwiki.component.annotation.Component import org.xwiki.component.annotation.Requirement import org.xwiki.component.descriptor.DefaultComponentDescriptor import org.xwiki.query.Query import org.xwiki.query.QueryManager import com.xpn.xwiki.web.Utils @Component(roles = [ UserDAO.class ]) class UserXWQLDAO implements UserDAO { @Requirement def QueryManager queryManager /** * Returns the current user name. */ def getUserName() { return bleh } /** * Returns the current user's password */ def getPassword() { return bleh } } if(!Utils.componentManager.hasComponent(UserDAO.class)) { def componentDescriptor = new DefaultComponentDescriptor() componentDescriptor.setImplementation(UserDAO.class) Utils.componentManager.registerComponent(componentDescriptor, new UserXWQLDAO()) } {{/groovy}} The first problem I ran into was that Groovy 1.6.5 ran into IncompatibleClassChangeErrors (http://jira.codehaus.org/browse/GROOVY-3830). Upgrading to 1.6.6 fixed this issue. But, then I ran into a NPE: *exception* javax.servlet.ServletException: Failed to initialize Request/Response or Session com.xpn.xwiki.web.XWikiAction.initializeContainerComponent(XWikiAction.java:391) com.xpn.xwiki.web.XWikiAction.initializeXWikiContext(XWikiAction.java:372) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:112) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) javax.servlet.http.HttpServlet.service(Unknown Source) javax.servlet.http.HttpServlet.service(Unknown Source) com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:119) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295) com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) *root cause* org.xwiki.container.servlet.ServletContainerException: Failed to initialize request org.xwiki.container.servlet.internal.DefaultServletContainerInitializer.initializeRequest(DefaultServletContainerInitializer.java:98) com.xpn.xwiki.web.XWikiAction.initializeContainerComponent(XWikiAction.java:387) com.xpn.xwiki.web.XWikiAction.initializeXWikiContext(XWikiAction.java:372) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:112) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) javax.servlet.http.HttpServlet.service(Unknown Source) javax.servlet.http.HttpServlet.service(Unknown Source) com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:119) com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295) com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) *root cause* java.lang.NullPointerException Haven't investigated any further than this, but has anyone successfully created components completely within a wiki document? That would just be so cool! Great work! -- Lewis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Edit bug?
Hi Lewis, -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Lewis Denizen Sent: Tuesday, December 01, 2009 11:51 AM To: XWiki Users Subject: [xwiki-users] Edit bug? Hi xwiki-users, When I browse to a new space (http://localhost/xwiki_root/bin/view/MySpace) and edit the page using the edit this page link, it forwards me to a different space: http://localhost/xwiki_root/bin/edit/view/MySpace). It works when I browse to http://localhost/xwiki_root/bin/edit/MySpace/WebHome, but would be nice to have this fixed :-) But great work stuff in XWiki 2.0.x! You'll need to include the trailing /, like so: http://localhost/xwiki_root/bin/view/MySpace/ It will then go to the correct page: MySpace.WebHome. Hope this helps, Joshua -- Lewis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Edit bug?
Hi, On Tue, Dec 1, 2009 at 18:51, Lewis Denizen orang...@gmail.com wrote: Hi xwiki-users, When I browse to a new space (http://localhost/xwiki_root/bin/view/MySpace) and edit the page using the edit this page link, it forwards me to a different space: http://localhost/xwiki_root/bin/edit/view/MySpace). It works when I browse to http://localhost/xwiki_root/bin/edit/MySpace/WebHome, but would be nice to have this fixed :-) But great work stuff in XWiki 2.0.x! http://localhost/xwiki_root/bin/view/MySpace is not the same thing than http://localhost/xwiki_root/bin/view/MySpace/ * http://localhost/xwiki_root/bin/view/MySpace/ targets space MySpace and page WebHome * http://localhost/xwiki_root/bin/view/MySpace targets space view and page MySpace Now i agree that is does not seems right. Could you create an issue on http://jira.xwiki.org -- Lewis ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Testing framework within XWiki pages
Hi Joshua, I worked a bit on this a few years ago. I started a Selenium-based test framework but the goal was to test functionally wiki pages. It's available here: http://code.xwiki.org/xwiki/bin/view/Applications/SeleniumApplication Other than that I don't recall hearing anything similar to what you mention. Let us know how you progress! Thanks -Vincent On Dec 1, 2009, at 5:40 PM, Rieken, Joshua wrote: Hello all, I've been desiring a testing framework to aid my development efforts within XWiki pages. Specifically, I want to use test-driven development so that I can write tests for scripts before I write the scripts themselves. These tests would be harnesses (possibly using {{include document=Blah.Blah}} and xwiki.parseGroovyFromPage(Blah.Blah)) and would report passes / failures / errors. There would also be a way to develop a suite of tests to run all at once, xUnit style. Before taking the time to develop this myself, has anyone developed something like this, or are there any recommendations or code you could share? Thanks, Joshua ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Template Property Value Propagation
On Tue, Dec 1, 2009 at 12:56 PM, Guillaume Lerouge guilla...@xwiki.comwrote: Hi Joe, On Tue, Dec 1, 2009 at 6:43 PM, Joe Shuster joseph.shus...@gmail.com wrote: Thanks for the quick response, Guillaume. On Tue, Dec 1, 2009 at 12:34 PM, Guillaume Lerouge guilla...@xwiki.com wrote: Hi Joe, On Tue, Dec 1, 2009 at 6:00 PM, Joe Shuster joseph.shus...@gmail.com wrote: I have created a class that will be used to display SOPs (standard operating procedures). I have assigned the class its required properties (mostly of data types String and TextArea) and generated the class sheet and class template. When I create new documents/instances of the SOPClass, the documents look like the SOPTemplate. I've tried populating the constant properties in the SOPTemplate and creating a new document. The new document looks like the SOPTemplate in structure but does not have any values associated with its properties. Do you mean you edited the SOPTemplate page with the object editor and added your constant properties in the relevant object fields? If you did so, when creating a new SOP those values should be copied from the template. Yes, this is what I did. The values don't seem to be copied when I create a new SOP based on the template. I'm going to try to recreate my class and see if it helps. Weird, what code do you use to create new items? Normally the SOPTemplate page gets copied during the creation process thus any data stored in it and its objects should get copied too. I used that in the past. I've been creating my classes, sheets, templates, properties, etc based on the FAQ Tutorial on the Xwiki website. The objects are copied fine but the text stored in the SOPTemplate objects isn't copied with them. The SOPClass was created in a Space not named Main. I created a new class in the Main Space assuming that I messed up the default parent or default space assignment. However the new class created in Main still does not propagate data saved in the template object when I create a new document. I'm completely befuddled. Maybe it's time to trade in XWiki 2.0.3 for XWiki 2.0.4. Is there a way that the SOPTemplate can propagate it's property values to new instances of the SOPClass? That is, I want some (but not all) of the properties of SOPClass to be the same for every new document/instantiation of the SOPClass. Is this possible? Similarly, if these constant properties are modified in the future, I'd like the changes to be distributed across all instances of SOPClass. Is this value supposed to be user-editable? If it is, it's gonna be hard to propagate if it gets changed. On the other hand if it's not user-editable, there's not much of a point in using an object to store it. Please forgive my naivety but how would I store static text (ie, text that is not user editable) within a class/template. As text on the Class' Sheet page. Simply edit the Sheet page and add some content on it - it will immediately change for all your documents. Thanks, that was easy. I wish the text contained within my SOPTemplate would update like that... Guillaume Thanks again, Joe Guillaume Any and all help is greatly appreciated. Joe ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Components from the wiki
Hi Lewis, On Dec 1, 2009, at 7:12 PM, Lewis Denizen wrote: Hi xwiki-users, I'm trying to bootstrap a component from the wiki itself (via Groovy). I have an interface defined as follows: // This is the text inside the User.UserDAO document {{groovy}} interface UserDAO { def ROLE = UserDAO.class.name /** * Returns the current user name. */ def getUserName() /** * Returns the current user's password */ def getPassword() } {{/groovy}} I also have a dummy implementation defined as follows: // This is the text inside the User.UserXWQLDAO document {{include document=User.UserDAO /}} {{groovy}} import org.xwiki.component.annotation.Component import org.xwiki.component.annotation.Requirement import org.xwiki.component.descriptor.DefaultComponentDescriptor import org.xwiki.query.Query import org.xwiki.query.QueryManager import com.xpn.xwiki.web.Utils @Component(roles = [ UserDAO.class ]) class UserXWQLDAO implements UserDAO { @Requirement def QueryManager queryManager /** * Returns the current user name. */ def getUserName() { return bleh } /** * Returns the current user's password */ def getPassword() { return bleh } } if(!Utils.componentManager.hasComponent(UserDAO.class)) { def componentDescriptor = new DefaultComponentDescriptor() componentDescriptor.setImplementation(UserDAO.class) Utils.componentManager.registerComponent(componentDescriptor, new UserXWQLDAO()) } {{/groovy}} The first problem I ran into was that Groovy 1.6.5 ran into IncompatibleClassChangeErrors (http://jira.codehaus.org/browse/GROOVY-3830 ). Upgrading to 1.6.6 fixed this issue. But, then I ran into a NPE: *exception* javax.servlet.ServletException: Failed to initialize Request/ Response or Session com .xpn .xwiki.web.XWikiAction.initializeContainerComponent(XWikiAction.java: 391) com .xpn.xwiki.web.XWikiAction.initializeXWikiContext(XWikiAction.java: 372) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:112) org .apache .struts .action.RequestProcessor.processActionPerform(RequestProcessor.java: 431) org .apache.struts.action.RequestProcessor.process(RequestProcessor.java: 236) org.apache.struts.action.ActionServlet.process(ActionServlet.java: 1196) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) javax.servlet.http.HttpServlet.service(Unknown Source) javax.servlet.http.HttpServlet.service(Unknown Source) com .xpn .xwiki .wysiwyg .server.filter.ConversionFilter.doFilter(ConversionFilter.java:152) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:119) com .xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java: 68) com .xpn .xwiki .web .SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java: 295) com .xpn .xwiki .web .SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java: 112) *root cause* org.xwiki.container.servlet.ServletContainerException: Failed to initialize request org .xwiki .container .servlet .internal .DefaultServletContainerInitializer .initializeRequest(DefaultServletContainerInitializer.java:98) com .xpn .xwiki.web.XWikiAction.initializeContainerComponent(XWikiAction.java: 387) com .xpn.xwiki.web.XWikiAction.initializeXWikiContext(XWikiAction.java: 372) com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:112) org .apache .struts .action.RequestProcessor.processActionPerform(RequestProcessor.java: 431) org .apache.struts.action.RequestProcessor.process(RequestProcessor.java: 236) org.apache.struts.action.ActionServlet.process(ActionServlet.java: 1196) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) javax.servlet.http.HttpServlet.service(Unknown Source) javax.servlet.http.HttpServlet.service(Unknown Source) com .xpn .xwiki .wysiwyg .server.filter.ConversionFilter.doFilter(ConversionFilter.java:152) com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:119) com .xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java: 68) com .xpn .xwiki .web .SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java: 295) com .xpn .xwiki .web .SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java: 112) *root cause* java.lang.NullPointerException Haven't investigated any further than this, but has anyone successfully created components completely within a wiki document? That would just be so cool! Great work! Yes, I've done that several times. Here's an example:
[xwiki-users] Passing arguments to Groovy object constructor
Hello, Is it possible to pass arguments to a Groovy object instantiated using xwiki.parseGroovyFromPage(Blah.Blah), or is there some other way to do it? Thanks, Joshua ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [xwiki-devs] Can XWiki benefit from Google AJAX Libraries API ?
Google CDN server hosts also different versions of each javascript framework. http://code.google.com/apis/ajaxlibs/documentation/#prototype By using google.load() function and google.setOnLoadCallback(function(){ }) we have the advantage of executing the custom code after all javascript libraries are loaded, instead of using that framework onload function. http://webmuch.com/how-why-you-should-use-google-cdn/ I think even if the option of using the google CDN servers to load the javascript frameworks the should always be an fallback option. Here is an nice article on how google load works. We could hack something to make sure if google servers are down, it loads the libraries from XWiki servers. http://onwebdevelopment.blogspot.com/2008/07/hacking-google-loader-and-ajax.html On caching issues i found this article. I think it needs testing. http://soupgiant.com/blog/browsers/caching-on-the-google-ajax-libraries-api/ On Tue, Dec 1, 2009 at 1:18 PM, Sergiu Dumitriu ser...@xwiki.com wrote: On 12/01/2009 06:10 AM, Asiri Rathnayake wrote: Link: http://code.google.com/apis/ajaxlibs/ Article about how it can make websites fast: http://radar.oreilly.com/2009/11/steve-souders-making-web-sites.html XWiki web gurus, can XWiki benefit from this? Is it worth considering? Maybe. Its main advantages are that: - it increases the chance of having the prototype and scriptaculous scripts in the cache. - it downloads them from Google's fast CDN, reducing the load on our servers I don't know how does it work with the rest of our scripts, which assume that Prototype is already loaded. It probably doesn't which means that we'll need lots of changes in all our js code to integrate it. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Cu stima, Flavius Olaru ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Passing arguments to Groovy object constructor
Hi, On Tue, Dec 1, 2009 at 20:44, Rieken, Joshua joshua_rie...@reyrey.com wrote: Hello, Is it possible to pass arguments to a Groovy object instantiated using xwiki.parseGroovyFromPage(Blah.Blah), or is there some other way to do it? You could have some init() methods in your groovy class to call when you have the objects. Thanks, Joshua ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Passing arguments to Groovy object constructor
On Dec 1, 2009, at 8:44 PM, Rieken, Joshua wrote: Hello, Is it possible to pass arguments to a Groovy object instantiated using xwiki.parseGroovyFromPage(Blah.Blah), or is there some other way to do it? BTW note that in XWiki Syntax 2.0 parseGroovyFromPage isn't needed. You can use the {{groovy}} and {{include}} macros instead. -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Passing arguments to Groovy object constructor
-Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne Sent: Tuesday, December 01, 2009 2:39 PM To: XWiki Users Subject: Re: [xwiki-users] Passing arguments to Groovy object constructor Hi, On Tue, Dec 1, 2009 at 20:44, Rieken, Joshua joshua_rie...@reyrey.com wrote: Hello, Is it possible to pass arguments to a Groovy object instantiated using xwiki.parseGroovyFromPage(Blah.Blah), or is there some other way to do it? You could have some init() methods in your groovy class to call when you have the objects. Ah, yes, that will work for many uses. To be more specific, what I'm looking to do is create a class that extends groovy.io.File. A File does not have a constructor that takes zero arguments, so I was looking for a way to pass arguments when the object is created rather than calling an init(). Otherwise, I can't even instantiate the object without just hardcoding the path into the class, which is not a viable option. Any suggestions? Thanks, Joshua Thanks, Joshua ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Testing framework within XWiki pages
Hi Joshua, On Tue, Dec 1, 2009 at 5:40 PM, Rieken, Joshua joshua_rie...@reyrey.comwrote: Hello all, I've been desiring a testing framework to aid my development efforts within XWiki pages. Specifically, I want to use test-driven development so that I can write tests for scripts before I write the scripts themselves. These tests would be harnesses (possibly using {{include document=Blah.Blah}} and xwiki.parseGroovyFromPage(Blah.Blah)) and would report passes / failures / errors. There would also be a way to develop a suite of tests to run all at once, xUnit style. Before taking the time to develop this myself, has anyone developed something like this, or are there any recommendations or code you could share? I don't think it has been done so far (apart from what Vincent suggested). I'll be very happy to read about your progress! Making developing applications in XWiki using TDD best practices would be a nice step towards making it a better application creation platform and I'm sure many people would like that :-) Let us know how it goes, you could also consider creating a page on: http://dev.xwiki.org/xwiki/bin/view/Ideas/ to document your idea and progression. Good luck! Guillaume Thanks, Joshua ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Lerouge Product Manager - XWiki SAS Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Passing arguments to Groovy object constructor
-Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol Sent: Tuesday, December 01, 2009 2:55 PM To: XWiki Users Subject: Re: [xwiki-users] Passing arguments to Groovy object constructor On Dec 1, 2009, at 8:44 PM, Rieken, Joshua wrote: Hello, Is it possible to pass arguments to a Groovy object instantiated using xwiki.parseGroovyFromPage(Blah.Blah), or is there some other way to do it? BTW note that in XWiki Syntax 2.0 parseGroovyFromPage isn't needed. You can use the {{groovy}} and {{include}} macros instead. -Vincent Thank you! This solved my issue. I was able to wrap the class in its own page with {{groovy}} {{/groovy}}, {{include}} that document, and create a new object with constructor arguments. -Joshua ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] How to add a property to spaces?
Hi How can I add properties to my spaces? I'm looking for something like an editable SpaceClass. And a way to change the Create Space form to include the property. And finally a way to access that property with Groovy. But I've noticed that there aren't classes for Pages or Spaces. I'm using XE 2.0.3. -- Kevin ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users