Re: [xwiki-users] Including a Google Map
Thanks, it was clean=false indeed Antonio 2010/12/18 Vincent Massol > Hi Antonio, > > On Dec 18, 2010, at 1:28 PM, Antonio Goncalves wrote: > > > Hi all, > > > > I need to include a Google Map in a page. In XWiki 1.0 syntax I add a > iframe > > and that works fine ( > http://www.parisjug.org/xwiki/bin/view/Location/ISEP) > > but with XWiki 2.0 syntax I can't make it work ( > > http://www.parisjug.org/xwiki/bin/view/Location/CIUP). I've added > {{html > > wiki="true"}} but it's the same problem. > > It should be {{html clean="false"}} instead since maybe it introduces non > XHTML elements so we need to tell it not to clean the HTML to produce XHTML. > > Thanks > -Vincent > > > > > How do I add a iFrame in a XWiki 2.0 page ? Is there an easier way to add > a > > Google Map (like a {{google map}} macro) ? > > > > Thanks, > > Antonio > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- -- Antonio Goncalves (antonio.goncal...@gmail.com) Software architect Web site : www.antoniogoncalves.org Blog: agoncal.wordpress.com Feed: feeds2.feedburner.com/AntonioGoncalves Paris JUG leader : www.parisjug.org LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Including a Google Map
Hi all, I need to include a Google Map in a page. In XWiki 1.0 syntax I add a iframe and that works fine (http://www.parisjug.org/xwiki/bin/view/Location/ISEP) but with XWiki 2.0 syntax I can't make it work ( http://www.parisjug.org/xwiki/bin/view/Location/CIUP). I've added {{html wiki="true"}} but it's the same problem. How do I add a iFrame in a XWiki 2.0 page ? Is there an easier way to add a Google Map (like a {{google map}} macro) ? Thanks, Antonio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Links to pages in 1.0 syntax don't look good
I followed your advice and turned the 1.0 page into a 2.0. Automatically the page was translated and it works fine. Great. Well, I think I'll use the 2.0 syntax then. Thanks, Antonio 2010/10/15 Vincent Massol > > On Oct 15, 2010, at 12:05 PM, Thomas Mortagne wrote: > > > Hi Antonio, > > > > On Fri, Oct 15, 2010 at 11:46, Antonio Goncalves > > wrote: > >> Hi all, > >> > >> Our XWiki instance has been upgraded to a 2.0. We are still using 1.0 > syntax > >> and we can see some strange behaviour. > >> > >> If you look at this page > http://www.parisjug.org/xwiki/bin/view/Speaker/ all > >> the titles (the name of the speakers) look ok. But if you click to a > >> specific speaker ( > >> http://www.parisjug.org/xwiki/bin/view/Speaker/MagninLaurent), you can > see > >> that the title is [Laurent Magnin>Speaker.MagninLaurent] instead of just > >> Laurent Magnin. This doesn't happen to all the pages (ex. > >> http://www.parisjug.org/xwiki/bin/view/Speaker/MartignoleNicolas). > >> > >> All these pages are in XWiki syntaxe 1.0 and all have the same syntax : > >> > >> 1 [Laurent Magnin>Speaker.MagninLaurent] > >> > >> Do you know what that could be ? > > > > That looks like a bug, would be great if you could create an issue on > > http://jira.xwiki.org. > > > > Thanks for catching it, i will look at that. > > As a workaround (while waiting for Thomas findings) you could convert to > 2.0 syntax (it's automatic but you need to clean up the automatic > conversion). > > Note that 1.0 syntax has been deprecated for more than a year now and will > disappear at some point in some future release so you should think about > migrating your content to 2.0 syntax. > > Thanks > -Vincent > > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- -- Antonio Goncalves (antonio.goncal...@gmail.com) Software architect Web site : www.antoniogoncalves.org Blog: agoncal.wordpress.com Feed: feeds2.feedburner.com/AntonioGoncalves Paris JUG leader : www.parisjug.org LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Links to pages in 1.0 syntax don't look good
Hi all, Our XWiki instance has been upgraded to a 2.0. We are still using 1.0 syntax and we can see some strange behaviour. If you look at this page http://www.parisjug.org/xwiki/bin/view/Speaker/ all the titles (the name of the speakers) look ok. But if you click to a specific speaker ( http://www.parisjug.org/xwiki/bin/view/Speaker/MagninLaurent), you can see that the title is [Laurent Magnin>Speaker.MagninLaurent] instead of just Laurent Magnin. This doesn't happen to all the pages (ex. http://www.parisjug.org/xwiki/bin/view/Speaker/MartignoleNicolas). All these pages are in XWiki syntaxe 1.0 and all have the same syntax : 1 [Laurent Magnin>Speaker.MagninLaurent] Do you know what that could be ? Thanks, Antonio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Page redirecting automatically to XWikiPreferences
Thanks for the tips Vincent, very much appreciated. It's working now, good. We'll add the $context.setCacheDuration() for the cache. Is there a default value BTW ? What would be an appropriate value ? Thanks, Antonio 2009/4/7 Vincent Massol > > On Apr 7, 2009, at 8:36 AM, Antonio Goncalves wrote: > > > Yes, I suppose it's because XWikiPreferences is under a protected > > space. I'm > > creating you a user and I'll send it to you. > > I'm not sure what happened. I modified the page to exclude > WebPreferences and it worked. Note that it worked even without > excluding it too. Apparently just resaving the page made it work. > Since this page does an include in context from other pages it's > possible one of these other pages was doing something strange. > > BTW might be good to use the rendering cache to ensure this page loads > quickly. > > $context.setCacheDuration() > > One problem I have noticed on our wiki: > on http://www.parisjug.org/xwiki/bin/edit/Speaker/WebHome? > editor=rights some panels on the right do not execute properly. > > This is probably due to the fact that you must have migrated the > panels to a more recent version of XE that is installed in your farm. > > Thanks > -Vincent > > > Antonio > > > > 2009/4/7 Vincent Massol > > > >> Hi Antonio, > >> > >> I've tried to access that page but it's protected and not viewable by > >> guests so it asks me to login. > >> > >> Thanks > >> -Vincent > >> > >> On Apr 7, 2009, at 12:43 AM, Antonio Goncalves wrote: > >> > >>> Hi all, > >>> Something really wired is hapening. We have a page that used to list > >>> all our > >>> speakers (http://www.parisjug.org/xwiki/bin/view/Speaker/). It > >>> contains the > >>> following code : > >>> > >>> #set($query="where doc.web='Speaker' and doc.name!='WebHome' order > >>> by > >>> doc.title desc") > >>> #set($results = $xwiki.searchDocuments($query)) > >>> #foreach ($item in $results) > >>> #includeInContext($item) > >>> > >>> #end > >>> > >>> It always worked well. But now, when we click on the link, we are > >>> automatically redirected to the XWikiPreferences pages. I've tried > >>> to show > >>> the history of the Speaker/WebHome page, but it's impossible, it > >>> redirects > >>> to the XWikiPreferences page. > >>> > >>> I'm not sure there is anything wrong with the code of the page, > >>> maybe rights > >>> issue or something like that. Do you have any idea ? > >>> > >>> Thanks, > >>> Antonio > >> ___ > >> users mailing list > >> users@xwiki.org > >> http://lists.xwiki.org/mailman/listinfo/users > >> > > > > > > > > -- > > -- > > Antonio Goncalves (antonio.goncal...@gmail.com) > > Software architect > > > > Paris JUG leader : www.parisjug.org > > Web site : www.antoniogoncalves.org > > Blog: jroller.com/agoncal > > LinkedIn: www.linkedin.com/in/agoncal > > ___ > > 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 > -- -- Antonio Goncalves (antonio.goncal...@gmail.com) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Page redirecting automatically to XWikiPreferences
Yes, I suppose it's because XWikiPreferences is under a protected space. I'm creating you a user and I'll send it to you. Antonio 2009/4/7 Vincent Massol > Hi Antonio, > > I've tried to access that page but it's protected and not viewable by > guests so it asks me to login. > > Thanks > -Vincent > > On Apr 7, 2009, at 12:43 AM, Antonio Goncalves wrote: > > > Hi all, > > Something really wired is hapening. We have a page that used to list > > all our > > speakers (http://www.parisjug.org/xwiki/bin/view/Speaker/). It > > contains the > > following code : > > > > #set($query="where doc.web='Speaker' and doc.name!='WebHome' order by > > doc.title desc") > > #set($results = $xwiki.searchDocuments($query)) > > #foreach ($item in $results) > > #includeInContext($item) > > > > #end > > > > It always worked well. But now, when we click on the link, we are > > automatically redirected to the XWikiPreferences pages. I've tried > > to show > > the history of the Speaker/WebHome page, but it's impossible, it > > redirects > > to the XWikiPreferences page. > > > > I'm not sure there is anything wrong with the code of the page, > > maybe rights > > issue or something like that. Do you have any idea ? > > > > Thanks, > > Antonio > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- -- Antonio Goncalves (antonio.goncal...@gmail.com) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Page redirecting automatically to XWikiPreferences
Hi all, Something really wired is hapening. We have a page that used to list all our speakers (http://www.parisjug.org/xwiki/bin/view/Speaker/). It contains the following code : #set($query="where doc.web='Speaker' and doc.name!='WebHome' order by doc.title desc") #set($results = $xwiki.searchDocuments($query)) #foreach ($item in $results) #includeInContext($item) #end It always worked well. But now, when we click on the link, we are automatically redirected to the XWikiPreferences pages. I've tried to show the history of the Speaker/WebHome page, but it's impossible, it redirects to the XWikiPreferences page. I'm not sure there is anything wrong with the code of the page, maybe rights issue or something like that. Do you have any idea ? Thanks, Antonio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problem with the new blog application running on XWiki 1.1.1
Ok, thanks Vincent. But the problem is that I've tried to install the new Blog app on my own personal website (www.antoniogoncalves.org) which is hosted in a much older XWiki farm (1.1.1). Antonio 2009/3/27 Vincent Massol > Hi Antonio, > > On Mar 27, 2009, at 8:16 PM, Antonio Goncalves wrote: > > > Hi, > > I'm coming back on this issue. My XWiki instance is hosted, and it > > looks > > that the only way to install a plugin is to drop the jars in the WEB- > > INF\lib > > directory. Does this mean that I'm stuck ? I can't install the new > > blog > > application then ? > > I've just checked and your farm is on XEM 1.4.1 which means it's > running XE 1.6.x which is old. I don't know what the new blog apps > requires but probably at least 1.7.x. > > Raffaello said he would update the JUG farm to a newer version a while > back. I don't know the status. I've cced him. > > Thanks > -Vincent > > > > Thanks, > > Antonio > > > > 2009/2/25 Sergiu Dumitriu > > > >> Antonio Goncalves wrote: > >>> Hi all, > >>> I've installed the new blog application ( > >>> http://code.xwiki.org/xwiki/bin/view/Applications/BlogApplication) > >>> on > >> XWiki > >>> 1.1.1. My old blog entries have been migrated and I can created new > >> entries. > >>> But when I go to the Blog/WebHome page ( > >>> http://www.antoniogoncalves.org/xwiki/bin/view/Blog/WebHome) I get > >>> the > >>> following text showing instead of the list of entries : > >>> > >>> #preparePagedViewParams($totalEntries 10) > >>> $xwiki.jsx.use($blogScriptsDocumentName) 1.1 Create a new post > >>> > >>> Do you know if I need to do something special to make this page > >>> work and > >> get > >>> the 10 last entries of my blog ? > >> > >> The new blog application works with recent (>= 1.7) versions of XE > >> (at > >> least somehow original versions). To fix your problems, you must: > >> > >> - use a recent version of the macros.vm file, which contains the > >> preparePagedViewParams macro (you can just copy it into from a > >> downloaded XE distribution into your installation) > >> - install and enable the ssx and jsx plugins > >> - install and enable the JsxAction and SsxAction Struts actions > >> > >> These tasks can be done in older version of XE, too, if you don't > >> want > >> to upgrade. > >> -- > >> Sergiu Dumitriu > >> http://purl.org/net/sergiu/ > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- -- Antonio Goncalves (antonio.goncal...@gmail.com) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problem with the new blog application running on XWiki 1.1.1
Hi, I'm coming back on this issue. My XWiki instance is hosted, and it looks that the only way to install a plugin is to drop the jars in the WEB-INF\lib directory. Does this mean that I'm stuck ? I can't install the new blog application then ? Thanks, Antonio 2009/2/25 Sergiu Dumitriu > Antonio Goncalves wrote: > > Hi all, > > I've installed the new blog application ( > > http://code.xwiki.org/xwiki/bin/view/Applications/BlogApplication) on > XWiki > > 1.1.1. My old blog entries have been migrated and I can created new > entries. > > But when I go to the Blog/WebHome page ( > > http://www.antoniogoncalves.org/xwiki/bin/view/Blog/WebHome) I get the > > following text showing instead of the list of entries : > > > > #preparePagedViewParams($totalEntries 10) > > $xwiki.jsx.use($blogScriptsDocumentName) 1.1 Create a new post > > > > Do you know if I need to do something special to make this page work and > get > > the 10 last entries of my blog ? > > The new blog application works with recent (>= 1.7) versions of XE (at > least somehow original versions). To fix your problems, you must: > > - use a recent version of the macros.vm file, which contains the > preparePagedViewParams macro (you can just copy it into from a > downloaded XE distribution into your installation) > - install and enable the ssx and jsx plugins > - install and enable the JsxAction and SsxAction Struts actions > > These tasks can be done in older version of XE, too, if you don't want > to upgrade. > -- > Sergiu Dumitriu > http://purl.org/net/sergiu/ > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- -- Antonio Goncalves (antonio.goncal...@gmail.com) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Panel Wizard doesn't show it
2009/3/14 Vincent Massol > Hi Antonio, > > On Mar 14, 2009, at 10:36 AM, Antonio Goncalves wrote: > > > So that means until the next upgrade we can't use the panel wizard ? > > I thought you confirmed sergiu's supposition that you had imported a > XAR not matching the version installed on the farm? If so you'll need > to revert it and it should work fine. > > If you tell us what you've done exactly maybe we can find a workaround. Well, I installed the new Panel application ( http://code.xwiki.org/xwiki/bin/view/Applications/PanelsApplicationDownloads) and it worked fine for few weeks before XWiki got upgraded to 1.4.1.14796 > > Is > > there another way to move panels around without the wizard (previous > > versions of XWiki had textfields for left and right panels) ? > > You can go the administration, then click on "Edit Objects" and look > for left and right panels field. Thanks, I'm going to try that in the meantime. Antonio > > > Thanks > -Vincent > > > > > Thanks, > > Antonio > > > > 2009/3/14 Vincent Massol > > > >> > >> On Mar 13, 2009, at 6:19 PM, Antonio Goncalves wrote: > >> > >>> Hi Sergiu, > >>> Our wiki instance is hosted, so what can I do to upgrade the > >>> platform to a > >>> recent version ? > >> > >> You can't. We do this regularly but we wait for the admin waits a bit > >> after releases are done to upgrade. Raffaello is in charge of this > >> farm so I'll let him answer when is the next upgrade planned. > >> > >> Thanks > >> -Vincent > >> > >>> Thanks, > >>> Antonio > >>> > >>> 2009/3/13 Sergiu Dumitriu > >>> > >>>> Antonio Goncalves wrote: > >>>>> Hi, > >>>>> I'm not sure of what happen (our XWiki is hosted and I don't know > >>>>> all the > >>>>> admin tasks that are made), but the Panel wizard application > >>>>> doesn't work > >>>>> anymore. It looks like the XWiki version has changed > >>>>> (1.4.1.14796), it > >>>> could > >>>>> be a reason. When I go to the panel wizard, I get the following at > >>>>> the > >>>> top > >>>>> and cannot move any panels around. It's like the page doesn't > >>>>> include the > >>>>> needed javascript > >>>>> > >>>>> Any idea ? > >>>>> Thanks, > >>>>> Antonio > >>>>> > >>>>> Glissez et déposez les panels pour les réarranger a l'intérieur > >>>>> des > >>>> colonnes > >>>>> latérales. Pour ajouter ou retirer des panels, glissez les de la > >>>>> liste > >>>> des > >>>>> panels disponibles vers une colonne ou à l'inverse, d'une colonne > >>>>> vers la > >>>>> liste. > >>>>> $xwiki.jsfx.use("js/scriptaculous/scriptaculous.js") > >>>>> $xwiki.jsfx.use("js/xwiki/accordion/accordion.js") > >>>>> $xwiki.jsfx.use("js/xwiki/panelwizard/Drag.js") > >>>>> $xwiki.jsfx.use("js/xwiki/panelwizard/ieemu.js") > >>>>> $xwiki.jsfx.use("js/xwiki/panelwizard/toolTip.js") > >>>>> > >>>> > >>>> This means that you have imported a recent .xar, but didn't upgrade > >>>> the > >>>> rest of the platform accordingly. Looking at the version, I think > >>>> you're > >>>> talking about XWiki Enterprise Manager, which doesn't include the > >>>> required plugins yet. > >>>> > >>>> You can either: > >>>> - downgrade the wiki content to an equivalent version (XEM 1.4 uses > >>>> XE 1.6) > >>>> - upgrade the platform to a recent version > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- -- Antonio Goncalves (antonio.goncal...@gmail.com) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Panel Wizard doesn't show it
So that means until the next upgrade we can't use the panel wizard ? Is there another way to move panels around without the wizard (previous versions of XWiki had textfields for left and right panels) ? Thanks, Antonio 2009/3/14 Vincent Massol > > On Mar 13, 2009, at 6:19 PM, Antonio Goncalves wrote: > > > Hi Sergiu, > > Our wiki instance is hosted, so what can I do to upgrade the > > platform to a > > recent version ? > > You can't. We do this regularly but we wait for the admin waits a bit > after releases are done to upgrade. Raffaello is in charge of this > farm so I'll let him answer when is the next upgrade planned. > > Thanks > -Vincent > > > Thanks, > > Antonio > > > > 2009/3/13 Sergiu Dumitriu > > > >> Antonio Goncalves wrote: > >>> Hi, > >>> I'm not sure of what happen (our XWiki is hosted and I don't know > >>> all the > >>> admin tasks that are made), but the Panel wizard application > >>> doesn't work > >>> anymore. It looks like the XWiki version has changed > >>> (1.4.1.14796), it > >> could > >>> be a reason. When I go to the panel wizard, I get the following at > >>> the > >> top > >>> and cannot move any panels around. It's like the page doesn't > >>> include the > >>> needed javascript > >>> > >>> Any idea ? > >>> Thanks, > >>> Antonio > >>> > >>> Glissez et déposez les panels pour les réarranger a l'intérieur des > >> colonnes > >>> latérales. Pour ajouter ou retirer des panels, glissez les de la > >>> liste > >> des > >>> panels disponibles vers une colonne ou à l'inverse, d'une colonne > >>> vers la > >>> liste. > >>> $xwiki.jsfx.use("js/scriptaculous/scriptaculous.js") > >>> $xwiki.jsfx.use("js/xwiki/accordion/accordion.js") > >>> $xwiki.jsfx.use("js/xwiki/panelwizard/Drag.js") > >>> $xwiki.jsfx.use("js/xwiki/panelwizard/ieemu.js") > >>> $xwiki.jsfx.use("js/xwiki/panelwizard/toolTip.js") > >>> > >> > >> This means that you have imported a recent .xar, but didn't upgrade > >> the > >> rest of the platform accordingly. Looking at the version, I think > >> you're > >> talking about XWiki Enterprise Manager, which doesn't include the > >> required plugins yet. > >> > >> You can either: > >> - downgrade the wiki content to an equivalent version (XEM 1.4 uses > >> XE 1.6) > >> - upgrade the platform to a recent version > >> > >> -- > >> Sergiu Dumitriu > >> http://purl.org/net/sergiu/ > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- -- Antonio Goncalves (antonio.goncal...@gmail.com) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Panel Wizard doesn't show it
Hi Sergiu, Our wiki instance is hosted, so what can I do to upgrade the platform to a recent version ? Thanks, Antonio 2009/3/13 Sergiu Dumitriu > Antonio Goncalves wrote: > > Hi, > > I'm not sure of what happen (our XWiki is hosted and I don't know all the > > admin tasks that are made), but the Panel wizard application doesn't work > > anymore. It looks like the XWiki version has changed (1.4.1.14796), it > could > > be a reason. When I go to the panel wizard, I get the following at the > top > > and cannot move any panels around. It's like the page doesn't include the > > needed javascript > > > > Any idea ? > > Thanks, > > Antonio > > > > Glissez et déposez les panels pour les réarranger a l'intérieur des > colonnes > > latérales. Pour ajouter ou retirer des panels, glissez les de la liste > des > > panels disponibles vers une colonne ou à l'inverse, d'une colonne vers la > > liste. > > $xwiki.jsfx.use("js/scriptaculous/scriptaculous.js") > > $xwiki.jsfx.use("js/xwiki/accordion/accordion.js") > > $xwiki.jsfx.use("js/xwiki/panelwizard/Drag.js") > > $xwiki.jsfx.use("js/xwiki/panelwizard/ieemu.js") > > $xwiki.jsfx.use("js/xwiki/panelwizard/toolTip.js") > > > > This means that you have imported a recent .xar, but didn't upgrade the > rest of the platform accordingly. Looking at the version, I think you're > talking about XWiki Enterprise Manager, which doesn't include the > required plugins yet. > > You can either: > - downgrade the wiki content to an equivalent version (XEM 1.4 uses XE 1.6) > - upgrade the platform to a recent version > > -- > Sergiu Dumitriu > http://purl.org/net/sergiu/ > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- -- Antonio Goncalves (antonio.goncal...@gmail.com) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Panel Wizard doesn't show it
Hi, I'm not sure of what happen (our XWiki is hosted and I don't know all the admin tasks that are made), but the Panel wizard application doesn't work anymore. It looks like the XWiki version has changed (1.4.1.14796), it could be a reason. When I go to the panel wizard, I get the following at the top and cannot move any panels around. It's like the page doesn't include the needed javascript Any idea ? Thanks, Antonio Glissez et déposez les panels pour les réarranger a l'intérieur des colonnes latérales. Pour ajouter ou retirer des panels, glissez les de la liste des panels disponibles vers une colonne ou à l'inverse, d'une colonne vers la liste. $xwiki.jsfx.use("js/scriptaculous/scriptaculous.js") $xwiki.jsfx.use("js/xwiki/accordion/accordion.js") $xwiki.jsfx.use("js/xwiki/panelwizard/Drag.js") $xwiki.jsfx.use("js/xwiki/panelwizard/ieemu.js") $xwiki.jsfx.use("js/xwiki/panelwizard/toolTip.js") 2009/2/17 Antonio Goncalves > Thanks Vincent. I've installed the new Panel application ( > http://code.xwiki.org/xwiki/bin/view/Applications/PanelsApplicationDownloads) > and it works fine. > Antonio > > 2009/2/13 Vincent Massol > > Hi Antonio, >> >> On Feb 8, 2009, at 10:32 AM, Antonio Goncalves wrote: >> >> > Yes Vincent, you can check by yourself on the Paris JUG website. I >> > can't see >> > any logs, I've tried with 3 different browsers but I've found a >> > strange >> > work around. >> > When I am on the >> > http://www.parisjug.org/xwiki/bin/admin/XWiki/XWikiPreferences page >> > and that >> > I click on Panel Wizard, nothing happens. But I can access the >> > wizard from >> > the page http://www.parisjug.org/xwiki/bin/view/XWiki/. >> > >> > Do you have any idea ? >> >> Are you sure you have upgraded the panels pages ? >> I've checked the page Panels.PanelWizard and its content looks old. >> >> Could you explain how you've done the last XAR upgrade? >> >> Can you try reimporting the Panels application that corresponds to you >> wiki version (you're on XEM 1.4.1 which means XE 1.6.2) ? >> I could do it but I don't know if you've changed any panels page so >> I'll let you do it instead. >> >> Thanks >> -Vincent >> >> > >> > Antonio >> > >> > 2009/2/7 Vincent Massol >> > >> >> Hi Antonio, >> >> >> >> On Feb 7, 2009, at 9:07 AM, Antonio Goncalves wrote: >> >> >> >>> Hi, >> >>> >> >>> I'm using XE 1.6.2 / XEM 1.4.1 and when I click on the Panel Wizard >> >>> it just >> >>> doesn't show up. I click on the link, but nothing happens. >> >> >> >> hmmm we need to look into this since I've heard this problem reported >> >> twice over one week. >> >> >> >> If you agree, I'll ask Raffaello to give me the rights to go the >> >> Paris >> >> JUG wiki and try it myself from there. >> >> >> >>> Is there a way to skip the wizard and set up the panels layout >> >>> manually like >> >>> the previous versions of XWiki ? >> >> >> >> Yes. Just go to the wiki administration page and then select edit --> >> >> Objects. Find the XWikiPreferences object and find the property for >> >> panels location and put the values you want in there. >> >> >> >> Thanks >> >> -Vincent >> >> http://xwiki.com >> >> http://xwiki.org >> >> http://massol.net >> ___ >> users mailing list >> users@xwiki.org >> http://lists.xwiki.org/mailman/listinfo/users >> > > > > -- > -- > Antonio Goncalves (antonio.goncal...@gmail.com) > Software architect > > Paris JUG leader : www.parisjug.org > Web site : www.antoniogoncalves.org > Blog: jroller.com/agoncal > LinkedIn: www.linkedin.com/in/agoncal > -- -- Antonio Goncalves (antonio.goncal...@gmail.com) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Problem with the new blog application running on XWiki 1.1.1
Hi all, I've installed the new blog application ( http://code.xwiki.org/xwiki/bin/view/Applications/BlogApplication) on XWiki 1.1.1. My old blog entries have been migrated and I can created new entries. But when I go to the Blog/WebHome page ( http://www.antoniogoncalves.org/xwiki/bin/view/Blog/WebHome) I get the following text showing instead of the list of entries : #preparePagedViewParams($totalEntries 10) $xwiki.jsx.use($blogScriptsDocumentName) 1.1 Create a new post Do you know if I need to do something special to make this page work and get the 10 last entries of my blog ? Thank you, Antonio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Panel Wizard doesn't show it
Thanks Vincent. I've installed the new Panel application ( http://code.xwiki.org/xwiki/bin/view/Applications/PanelsApplicationDownloads) and it works fine. Antonio 2009/2/13 Vincent Massol > Hi Antonio, > > On Feb 8, 2009, at 10:32 AM, Antonio Goncalves wrote: > > > Yes Vincent, you can check by yourself on the Paris JUG website. I > > can't see > > any logs, I've tried with 3 different browsers but I've found a > > strange > > work around. > > When I am on the > > http://www.parisjug.org/xwiki/bin/admin/XWiki/XWikiPreferences page > > and that > > I click on Panel Wizard, nothing happens. But I can access the > > wizard from > > the page http://www.parisjug.org/xwiki/bin/view/XWiki/. > > > > Do you have any idea ? > > Are you sure you have upgraded the panels pages ? > I've checked the page Panels.PanelWizard and its content looks old. > > Could you explain how you've done the last XAR upgrade? > > Can you try reimporting the Panels application that corresponds to you > wiki version (you're on XEM 1.4.1 which means XE 1.6.2) ? > I could do it but I don't know if you've changed any panels page so > I'll let you do it instead. > > Thanks > -Vincent > > > > > Antonio > > > > 2009/2/7 Vincent Massol > > > >> Hi Antonio, > >> > >> On Feb 7, 2009, at 9:07 AM, Antonio Goncalves wrote: > >> > >>> Hi, > >>> > >>> I'm using XE 1.6.2 / XEM 1.4.1 and when I click on the Panel Wizard > >>> it just > >>> doesn't show up. I click on the link, but nothing happens. > >> > >> hmmm we need to look into this since I've heard this problem reported > >> twice over one week. > >> > >> If you agree, I'll ask Raffaello to give me the rights to go the > >> Paris > >> JUG wiki and try it myself from there. > >> > >>> Is there a way to skip the wizard and set up the panels layout > >>> manually like > >>> the previous versions of XWiki ? > >> > >> Yes. Just go to the wiki administration page and then select edit --> > >> Objects. Find the XWikiPreferences object and find the property for > >> panels location and put the values you want in there. > >> > >> Thanks > >> -Vincent > >> http://xwiki.com > >> http://xwiki.org > >> http://massol.net > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- -- Antonio Goncalves (antonio.goncal...@gmail.com) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Panel Wizard doesn't show it
Yes Vincent, you can check by yourself on the Paris JUG website. I can't see any logs, I've tried with 3 different browsers but I've found a strange work around. When I am on the http://www.parisjug.org/xwiki/bin/admin/XWiki/XWikiPreferences page and that I click on Panel Wizard, nothing happens. But I can access the wizard from the page http://www.parisjug.org/xwiki/bin/view/XWiki/. Do you have any idea ? Antonio 2009/2/7 Vincent Massol > Hi Antonio, > > On Feb 7, 2009, at 9:07 AM, Antonio Goncalves wrote: > > > Hi, > > > > I'm using XE 1.6.2 / XEM 1.4.1 and when I click on the Panel Wizard > > it just > > doesn't show up. I click on the link, but nothing happens. > > hmmm we need to look into this since I've heard this problem reported > twice over one week. > > If you agree, I'll ask Raffaello to give me the rights to go the Paris > JUG wiki and try it myself from there. > > > Is there a way to skip the wizard and set up the panels layout > > manually like > > the previous versions of XWiki ? > > Yes. Just go to the wiki administration page and then select edit --> > Objects. Find the XWikiPreferences object and find the property for > panels location and put the values you want in there. > > Thanks > -Vincent > http://xwiki.com > http://xwiki.org > http://massol.net > > > > > > > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- -- Antonio Goncalves (antonio.goncal...@gmail.com) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Panel Wizard doesn't show it
Hi, I'm using XE 1.6.2 / XEM 1.4.1 and when I click on the Panel Wizard it just doesn't show up. I click on the link, but nothing happens. Is there a way to skip the wizard and set up the panels layout manually like the previous versions of XWiki ? Thanks, Antonio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] List Last10 XWiki Comments Snippet doesn't work
Well, I'm hosted by XWiki ;o) I'm gonna ask them. In fact, I'm doing all that, because I think my site has been spammed. I let guests comment my pages (no need to log in), and since this morning there's a page that displays completly blanck ( http://www.antoniogoncalves.org/xwiki/bin/view/Article/TestingJPA). And I think it could be someone who spammed my comments. Thanks, Antonio 2008/10/31 Guillaume Lerouge <[EMAIL PROTECTED]> > Hi Antonio, > > On Fri, Oct 31, 2008 at 10:34 AM, Antonio Goncalves < > [EMAIL PROTECTED]> wrote: > > > Hi Guillaume, > > What do you mean by programming rights ? The page is in a space that has > > admin rights and I'm logged on as admin > > > Where is your wiki located? On a farm? If it is on a farm you might need to > be logged in as an admin on the main wiki (rather than on a subwiki). If > it's on a farm and you do not have access to the main wiki, you need to ask > someone who does to save the page for you. > > Guillaume > > > > > > > > Antonio > > > > 2008/10/31 Jerome Velociter <[EMAIL PROTECTED]> > > > > > Guillaume Lerouge wrote: > > > > Hi, > > > > > > > > On Fri, Oct 31, 2008 at 10:08 AM, Antonio Goncalves < > > > > [EMAIL PROTECTED]> wrote: > > > > > > > >> Hi, > > > >> I want to display the comments of my wiki, so I've copy/paste the > > "List > > > >> Last10 XWiki Comments Snippet" ( > > > >> > > > >> > > > > > > http://code.xwiki.org/xwiki/bin/view/Snippets/ListLast10XWikiCommentsSnippet > > > >> ). > > > >> But this doesn't work. I'm hosted on a XWiki 1.1.1 (but I think > that's > > > >> XEM). > > > >> > > > >> Any idea why it doesn't work ? > > > >> > > > > > > > > It could be because the document has to be saved with programming > > rights. > > > > > > I added a warning stating this on > > > > > > > > > > > > http://code.xwiki.org/xwiki/bin/view/Snippets/ListLast10XWikiCommentsSnippet > > > > > > Jerome. > > > > > > > Guillaume > > > > > > > > > > > >> Thanks, > > > >> Antonio > > > >> ___ > > > >> 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 > > > > > > > > > > > -- > > -- > > Antonio Goncalves ([EMAIL PROTECTED]) > > Software architect > > > > Paris JUG leader : www.parisjug.org > > Web site : www.antoniogoncalves.org > > Blog: jroller.com/agoncal > > LinkedIn: www.linkedin.com/in/agoncal > > ___ > > users mailing list > > users@xwiki.org > > http://lists.xwiki.org/mailman/listinfo/users > > > > > > -- > Guillaume Lerouge > Product Manager - XWiki > Skype ID : wikibc > http://blog.xwiki.com/ > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- -- Antonio Goncalves ([EMAIL PROTECTED]) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] List Last10 XWiki Comments Snippet doesn't work
Hi Guillaume, What do you mean by programming rights ? The page is in a space that has admin rights and I'm logged on as admin. Antonio 2008/10/31 Jerome Velociter <[EMAIL PROTECTED]> > Guillaume Lerouge wrote: > > Hi, > > > > On Fri, Oct 31, 2008 at 10:08 AM, Antonio Goncalves < > > [EMAIL PROTECTED]> wrote: > > > >> Hi, > >> I want to display the comments of my wiki, so I've copy/paste the "List > >> Last10 XWiki Comments Snippet" ( > >> > >> > http://code.xwiki.org/xwiki/bin/view/Snippets/ListLast10XWikiCommentsSnippet > >> ). > >> But this doesn't work. I'm hosted on a XWiki 1.1.1 (but I think that's > >> XEM). > >> > >> Any idea why it doesn't work ? > >> > > > > It could be because the document has to be saved with programming rights. > > I added a warning stating this on > > > http://code.xwiki.org/xwiki/bin/view/Snippets/ListLast10XWikiCommentsSnippet > > Jerome. > > > Guillaume > > > > > >> Thanks, > >> Antonio > >> ___ > >> 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 > -- -- Antonio Goncalves ([EMAIL PROTECTED]) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] List Last10 XWiki Comments Snippet doesn't work
Hi, I want to display the comments of my wiki, so I've copy/paste the "List Last10 XWiki Comments Snippet" ( http://code.xwiki.org/xwiki/bin/view/Snippets/ListLast10XWikiCommentsSnippet). But this doesn't work. I'm hosted on a XWiki 1.1.1 (but I think that's XEM). Any idea why it doesn't work ? Thanks, Antonio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] MyTodos not showing my todos
Ok Vincent. I'm still doing some bits and pieces with the TODO application and I will update it to a 1.1 version. Antonio 2008/10/17 Vincent Massol <[EMAIL PROTECTED]> > Hi Antonio, > > On Oct 16, 2008, at 7:40 AM, Antonio Goncalves wrote: > > > That works great thanks Fabian. IMHO the TODO application should be > > changed > > and use this HQL request instead. It makes more sense to only > > display the > > todos of the connected user and sort them by due date. > > Could you do that? > > The main page could have a "My Todos" section and a "All Todos" > section below for example. > > Thanks > -Vincent > > PS: BTW this is not an application supported by the xwiki dev team. It > was only done by me as a quick example for an article on TSS. > > > 2008/10/16 Fabian Pichler <[EMAIL PROTECTED]> > > > >> Try: > >> #set ($hql = ", BaseObject as obj, StringProperty as prop1, > >> LargeStringProperty as prop2, DateProperty as dueDate where > >> obj.name=doc.fullName > >> and obj.className='XWiki.TodoClass' and obj.name > >> <>'XWiki.TodoClassTemplate' > >> and obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value <> > >> 'Finished' and obj.id=prop2.id.id and prop2.id.name='Assignee' and > >> prop2.value='$context.user' and obj.id = dueDate.id.id and > >> dueDate.id.name='TargetDate' > >> order by dueDate.value desc") > >> > >> Fabian. > >> > >> 2008/10/15 Antonio Goncalves <[EMAIL PROTECTED]> > >> > >>> Thanks Fabian, it works, that's great. > >>> I would have a second question though. The TODOs are ordered by > >>> doc.date > >>> (which is the creation of the document). What I really want is to > >>> order > >> by > >>> the Target Date (it's the property of the TodoClass). This > >>> property is a > >>> date, so do you know how I can order by this property ? > >>> > >>> Thanks in advance > >>> Antonio > >>> > >>> 2008/10/15 Fabian Pichler <[EMAIL PROTECTED]> > >>> > >>>> Sorry, missing a 't' in $context so once again: > >>>> #set ($hql = ", BaseObject as obj, StringProperty as prop1, > >>>> LargeStringProperty as prop2 where obj.name=doc.fullName and > >>>> obj.className='XWiki.TodoClass' and obj.name > >> <>'XWiki.TodoClassTemplate' > >>>> and > >>>> obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value <> > >>>> 'Finished' > >>>> and obj.id=prop2.id.id and prop2.id.name='Assignee' and > >>>> prop2.value='$context.user' order by doc.date desc") > >>>> > >>>> Fabian. > >>>> > >>>> 2008/10/15 Fabian Pichler <[EMAIL PROTECTED]> > >>>> > >>>>> Hi Antonio > >>>>> > >>>>> I had a quick look at your problem and think your right the HQL- > >>>>> Query > >>> is > >>>>> wrong. The Problem comes from the definition of the Assignee- > >>>>> Field in > >>>>> the XWiki.TodoClass. The Assignee-Field is defined as "List of > >>>>> Users" > >>>>> Property which is based on the LargeStringProperty and not the > >>>>> StringProperty. > >>>>> > >>>>> Therefore try the following hql query: > >>>>> #set ($hql = ", BaseObject as obj, StringProperty as prop1, > >>>>> LargeStringProperty as prop2 where obj.name=doc.fullName and > >>>>> obj.className='XWiki.TodoClass' and obj.name > >>> <>'XWiki.TodoClassTemplate' > >>>>> and obj.id=prop1.id.id and prop1.id.name='Status' and > >>>>> prop1.value <> > >>>>> 'Finished' and obj.id=prop2.id.id and prop2.id.name='Assignee' and > >>>>> prop2.value='$contex.user' order by doc.date desc") > >>>>> > >>>>> Kind Regards, > >>>>> Fabian > >>>>> > >>>>> > >>>>> 2008/10/13 Antonio Goncalves <[EMAIL PROTECTED]> > >>>>> > >>>>>
Re: [xwiki-users] MyTodos not showing my todos
Both are java.lang.Long. But the pb doesn't come from the if statement. I use a sortable table. And depending on the way I sort it (by clicking on the header), I have completly random behavior (sometimes I have 3 red lines, sometimes 6... weird) N° Titre Description Assignee Date Status #set ($i=0) #set ($today = $xwiki.currentDate.time) #foreach ($todo in $todos) #set ($todoDoc = $xwiki.getDocument($todo)) #set ($todoObj = $todoDoc.getObject("XWiki.TodoClass")) #set ($i = $i + 1) #if ($todoObj.getProperty("TargetDate").value.time < $today) #else #end $i [$todo] $todoObj.Description $todoObj.Assignee $todoObj.TargetDate $todoObj.Status #end Thanks, Antonio 2008/10/17 Sergiu Dumitriu <[EMAIL PROTECTED]> > Antonio Goncalves wrote: > > Hum, just a thought. Is it String comparaison or Long ? Do I have to cast > it > > into Long ? > > Just write > > $todoObj.getProperty("TargetDate").value.time.class > $xwiki.currentDate.time.class > > to see the type of each term. > > > 2008/10/16 Antonio Goncalves <[EMAIL PROTECTED]> > > > >> Thanks, it's working. I just have a funny behavior now when I compare > these > >> dates with the current date (converted to milliseconds) : > >> #if ($todoObj.getProperty("TargetDate").value.time > >> < $xwiki.currentDate.time) > >> > >> Sometimes the if statement is correct and sometimes is not. When I print > >> the values I see targetDate inferior to currentDate but the if statement > is > >> not executed. Strange. > >> > >> Antonio > >> > >> 2008/10/16 Sergiu Dumitriu <[EMAIL PROTECTED]> > >> > >> Antonio Goncalves wrote: > >>>> It's me again. I'm still confused by the property classes. > >>>> The dueDate is of type DateProperty. How can have the milliseconds > value > >>> of > >>>> that date ? I've tried to format the date, but it doesn't work. If I > >>> display > >>>> $todoObj.TargetDate, it's fine, but I can manipulate it as a date ( > >>>> using formatDate for exemple) > >>>> > >>>> #foreach ($todo in $todos) > >>>> #set ($todoDoc = $xwiki.getDocument($todo)) > >>>> #set ($todoObj = $todoDoc.getObject("XWiki.TodoClass")) > >>>> > >>>> $todoObj.TargetDate > >>>> // This works > >>>> $xwiki.formatDate($todoObj.TargetDate, "yymmdd") // This > >>> does'n > >>>> work > >>>> #end > >>>> > >>>> Do you know what to do to use formatDate on a DateProperty ? > >>>> > >>> $xwiki.formatDate($todoObj.getProperty("TargetDate").value, "yymmdd") > >>> > >>> $todoObj.TargetDate formats the date into a string. > >>> $todoObj.getProperty("TargetDate").value is the actual value of the > >>> property, which is a Date for date properties. > > > -- > Sergiu Dumitriu > http://purl.org/net/sergiu/ > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- -- Antonio Goncalves ([EMAIL PROTECTED]) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] MyTodos not showing my todos
Hum, just a thought. Is it String comparaison or Long ? Do I have to cast it into Long ? 2008/10/16 Antonio Goncalves <[EMAIL PROTECTED]> > Thanks, it's working. I just have a funny behavior now when I compare these > dates with the current date (converted to milliseconds) : > #if ($todoObj.getProperty("TargetDate").value.time > < $xwiki.currentDate.time) > > Sometimes the if statement is correct and sometimes is not. When I print > the values I see targetDate inferior to currentDate but the if statement is > not executed. Strange. > > Antonio > > 2008/10/16 Sergiu Dumitriu <[EMAIL PROTECTED]> > > Antonio Goncalves wrote: >> > It's me again. I'm still confused by the property classes. >> > The dueDate is of type DateProperty. How can have the milliseconds value >> of >> > that date ? I've tried to format the date, but it doesn't work. If I >> display >> > $todoObj.TargetDate, it's fine, but I can manipulate it as a date ( >> > using formatDate for exemple) >> > >> > #foreach ($todo in $todos) >> > #set ($todoDoc = $xwiki.getDocument($todo)) >> > #set ($todoObj = $todoDoc.getObject("XWiki.TodoClass")) >> > >> > $todoObj.TargetDate >> > // This works >> > $xwiki.formatDate($todoObj.TargetDate, "yymmdd") // This >> does'n >> > work >> > #end >> > >> > Do you know what to do to use formatDate on a DateProperty ? >> > >> >> $xwiki.formatDate($todoObj.getProperty("TargetDate").value, "yymmdd") >> >> $todoObj.TargetDate formats the date into a string. >> $todoObj.getProperty("TargetDate").value is the actual value of the >> property, which is a Date for date properties. >> >> -- >> Sergiu Dumitriu >> http://purl.org/net/sergiu/ >> ___ >> users mailing list >> users@xwiki.org >> http://lists.xwiki.org/mailman/listinfo/users >> > > > > -- > -- > Antonio Goncalves ([EMAIL PROTECTED]) > Software architect > > Paris JUG leader : www.parisjug.org > Web site : www.antoniogoncalves.org > Blog: jroller.com/agoncal > LinkedIn: www.linkedin.com/in/agoncal > -- -- Antonio Goncalves ([EMAIL PROTECTED]) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] MyTodos not showing my todos
Thanks, it's working. I just have a funny behavior now when I compare these dates with the current date (converted to milliseconds) : #if ($todoObj.getProperty("TargetDate").value.time < $xwiki.currentDate.time) Sometimes the if statement is correct and sometimes is not. When I print the values I see targetDate inferior to currentDate but the if statement is not executed. Strange. Antonio 2008/10/16 Sergiu Dumitriu <[EMAIL PROTECTED]> > Antonio Goncalves wrote: > > It's me again. I'm still confused by the property classes. > > The dueDate is of type DateProperty. How can have the milliseconds value > of > > that date ? I've tried to format the date, but it doesn't work. If I > display > > $todoObj.TargetDate, it's fine, but I can manipulate it as a date ( > > using formatDate for exemple) > > > > #foreach ($todo in $todos) > > #set ($todoDoc = $xwiki.getDocument($todo)) > > #set ($todoObj = $todoDoc.getObject("XWiki.TodoClass")) > > > > $todoObj.TargetDate > > // This works > > $xwiki.formatDate($todoObj.TargetDate, "yymmdd") // This > does'n > > work > > #end > > > > Do you know what to do to use formatDate on a DateProperty ? > > > > $xwiki.formatDate($todoObj.getProperty("TargetDate").value, "yymmdd") > > $todoObj.TargetDate formats the date into a string. > $todoObj.getProperty("TargetDate").value is the actual value of the > property, which is a Date for date properties. > > -- > Sergiu Dumitriu > http://purl.org/net/sergiu/ > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- -- Antonio Goncalves ([EMAIL PROTECTED]) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] MyTodos not showing my todos
It's me again. I'm still confused by the property classes. The dueDate is of type DateProperty. How can have the milliseconds value of that date ? I've tried to format the date, but it doesn't work. If I display $todoObj.TargetDate, it's fine, but I can manipulate it as a date ( using formatDate for exemple) #foreach ($todo in $todos) #set ($todoDoc = $xwiki.getDocument($todo)) #set ($todoObj = $todoDoc.getObject("XWiki.TodoClass")) $todoObj.TargetDate // This works $xwiki.formatDate($todoObj.TargetDate, "yymmdd") // This does'n work #end Do you know what to do to use formatDate on a DateProperty ? Thanks, Antonio 2008/10/16 Antonio Goncalves <[EMAIL PROTECTED]> > That works great thanks Fabian. IMHO the TODO application should be changed > and use this HQL request instead. It makes more sense to only display the > todos of the connected user and sort them by due date. > Antonio > > 2008/10/16 Fabian Pichler <[EMAIL PROTECTED]> > > Try: >> #set ($hql = ", BaseObject as obj, StringProperty as prop1, >> LargeStringProperty as prop2, DateProperty as dueDate where >> obj.name=doc.fullName >> and obj.className='XWiki.TodoClass' and obj.name >> <>'XWiki.TodoClassTemplate' >> and obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value <> >> 'Finished' and obj.id=prop2.id.id and prop2.id.name='Assignee' and >> prop2.value='$context.user' and obj.id = dueDate.id.id and >> dueDate.id.name='TargetDate' >> order by dueDate.value desc") >> >> Fabian. >> >> 2008/10/15 Antonio Goncalves <[EMAIL PROTECTED]> >> >> > Thanks Fabian, it works, that's great. >> > I would have a second question though. The TODOs are ordered by doc.date >> > (which is the creation of the document). What I really want is to order >> by >> > the Target Date (it's the property of the TodoClass). This property is a >> > date, so do you know how I can order by this property ? >> > >> > Thanks in advance >> > Antonio >> > >> > 2008/10/15 Fabian Pichler <[EMAIL PROTECTED]> >> > >> > > Sorry, missing a 't' in $context so once again: >> > > #set ($hql = ", BaseObject as obj, StringProperty as prop1, >> > > LargeStringProperty as prop2 where obj.name=doc.fullName and >> > > obj.className='XWiki.TodoClass' and obj.name >> <>'XWiki.TodoClassTemplate' >> > > and >> > > obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value <> >> > > 'Finished' >> > > and obj.id=prop2.id.id and prop2.id.name='Assignee' and >> > > prop2.value='$context.user' order by doc.date desc") >> > > >> > > Fabian. >> > > >> > > 2008/10/15 Fabian Pichler <[EMAIL PROTECTED]> >> > > >> > > > Hi Antonio >> > > > >> > > > I had a quick look at your problem and think your right the >> HQL-Query >> > is >> > > > wrong. The Problem comes from the definition of the Assignee-Field >> in >> > > > the XWiki.TodoClass. The Assignee-Field is defined as "List of >> Users" >> > > > Property which is based on the LargeStringProperty and not the >> > > > StringProperty. >> > > > >> > > > Therefore try the following hql query: >> > > > #set ($hql = ", BaseObject as obj, StringProperty as prop1, >> > > > LargeStringProperty as prop2 where obj.name=doc.fullName and >> > > > obj.className='XWiki.TodoClass' and obj.name >> > <>'XWiki.TodoClassTemplate' >> > > > and obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value >> <> >> > > > 'Finished' and obj.id=prop2.id.id and prop2.id.name='Assignee' and >> > > > prop2.value='$contex.user' order by doc.date desc") >> > > > >> > > > Kind Regards, >> > > > Fabian >> > > > >> > > > >> > > > 2008/10/13 Antonio Goncalves <[EMAIL PROTECTED]> >> > > > >> > > > I've tried everything but I can't make it work. I'm now using the >> HQL >> > > Query >> > > >> Tester ( >> > > >> >> http://code.xwiki.org/xwiki/bin
Re: [xwiki-users] MyTodos not showing my todos
That works great thanks Fabian. IMHO the TODO application should be changed and use this HQL request instead. It makes more sense to only display the todos of the connected user and sort them by due date. Antonio 2008/10/16 Fabian Pichler <[EMAIL PROTECTED]> > Try: > #set ($hql = ", BaseObject as obj, StringProperty as prop1, > LargeStringProperty as prop2, DateProperty as dueDate where > obj.name=doc.fullName > and obj.className='XWiki.TodoClass' and obj.name > <>'XWiki.TodoClassTemplate' > and obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value <> > 'Finished' and obj.id=prop2.id.id and prop2.id.name='Assignee' and > prop2.value='$context.user' and obj.id = dueDate.id.id and > dueDate.id.name='TargetDate' > order by dueDate.value desc") > > Fabian. > > 2008/10/15 Antonio Goncalves <[EMAIL PROTECTED]> > > > Thanks Fabian, it works, that's great. > > I would have a second question though. The TODOs are ordered by doc.date > > (which is the creation of the document). What I really want is to order > by > > the Target Date (it's the property of the TodoClass). This property is a > > date, so do you know how I can order by this property ? > > > > Thanks in advance > > Antonio > > > > 2008/10/15 Fabian Pichler <[EMAIL PROTECTED]> > > > > > Sorry, missing a 't' in $context so once again: > > > #set ($hql = ", BaseObject as obj, StringProperty as prop1, > > > LargeStringProperty as prop2 where obj.name=doc.fullName and > > > obj.className='XWiki.TodoClass' and obj.name > <>'XWiki.TodoClassTemplate' > > > and > > > obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value <> > > > 'Finished' > > > and obj.id=prop2.id.id and prop2.id.name='Assignee' and > > > prop2.value='$context.user' order by doc.date desc") > > > > > > Fabian. > > > > > > 2008/10/15 Fabian Pichler <[EMAIL PROTECTED]> > > > > > > > Hi Antonio > > > > > > > > I had a quick look at your problem and think your right the HQL-Query > > is > > > > wrong. The Problem comes from the definition of the Assignee-Field in > > > > the XWiki.TodoClass. The Assignee-Field is defined as "List of Users" > > > > Property which is based on the LargeStringProperty and not the > > > > StringProperty. > > > > > > > > Therefore try the following hql query: > > > > #set ($hql = ", BaseObject as obj, StringProperty as prop1, > > > > LargeStringProperty as prop2 where obj.name=doc.fullName and > > > > obj.className='XWiki.TodoClass' and obj.name > > <>'XWiki.TodoClassTemplate' > > > > and obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value <> > > > > 'Finished' and obj.id=prop2.id.id and prop2.id.name='Assignee' and > > > > prop2.value='$contex.user' order by doc.date desc") > > > > > > > > Kind Regards, > > > > Fabian > > > > > > > > > > > > 2008/10/13 Antonio Goncalves <[EMAIL PROTECTED]> > > > > > > > > I've tried everything but I can't make it work. I'm now using the HQL > > > Query > > > >> Tester ( > > > >> http://code.xwiki.org/xwiki/bin/view/Snippets/HQLQueryTesterSnippet > ) > > > >> to test my HQL queries, but it looks like this snippet of code of > the > > > HQL > > > >> Query Tester doesn't work either :o( > > > >> Any idea to try HQL queries ? I really need to display the TODOs of > > the > > > >> current user and it looks like it's just a query to change but I > can't > > > >> figure it out. > > > >> > > > >> Any idea ? > > > >> > > > >> Thanks, > > > >> Antonio > > > >> > > > >> 2008/10/8 Antonio Goncalves <[EMAIL PROTECTED]> > > > >> > > > >> > Hi everybody, > > > >> > I've installed the Todo application ( > > > >> > > > > >> > > > > > > http://code.xwiki.org/xwiki/bin/view/Applications/TodoApplicationDownloads > > > >> ). > > > >> > I can add new todos, affect them to users and so o
Re: [xwiki-users] MyTodos not showing my todos
Thanks Fabian, it works, that's great. I would have a second question though. The TODOs are ordered by doc.date (which is the creation of the document). What I really want is to order by the Target Date (it's the property of the TodoClass). This property is a date, so do you know how I can order by this property ? Thanks in advance Antonio 2008/10/15 Fabian Pichler <[EMAIL PROTECTED]> > Sorry, missing a 't' in $context so once again: > #set ($hql = ", BaseObject as obj, StringProperty as prop1, > LargeStringProperty as prop2 where obj.name=doc.fullName and > obj.className='XWiki.TodoClass' and obj.name<>'XWiki.TodoClassTemplate' > and > obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value <> > 'Finished' > and obj.id=prop2.id.id and prop2.id.name='Assignee' and > prop2.value='$context.user' order by doc.date desc") > > Fabian. > > 2008/10/15 Fabian Pichler <[EMAIL PROTECTED]> > > > Hi Antonio > > > > I had a quick look at your problem and think your right the HQL-Query is > > wrong. The Problem comes from the definition of the Assignee-Field in > > the XWiki.TodoClass. The Assignee-Field is defined as "List of Users" > > Property which is based on the LargeStringProperty and not the > > StringProperty. > > > > Therefore try the following hql query: > > #set ($hql = ", BaseObject as obj, StringProperty as prop1, > > LargeStringProperty as prop2 where obj.name=doc.fullName and > > obj.className='XWiki.TodoClass' and obj.name<>'XWiki.TodoClassTemplate' > > and obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value <> > > 'Finished' and obj.id=prop2.id.id and prop2.id.name='Assignee' and > > prop2.value='$contex.user' order by doc.date desc") > > > > Kind Regards, > > Fabian > > > > > > 2008/10/13 Antonio Goncalves <[EMAIL PROTECTED]> > > > > I've tried everything but I can't make it work. I'm now using the HQL > Query > >> Tester ( > >> http://code.xwiki.org/xwiki/bin/view/Snippets/HQLQueryTesterSnippet) > >> to test my HQL queries, but it looks like this snippet of code of the > HQL > >> Query Tester doesn't work either :o( > >> Any idea to try HQL queries ? I really need to display the TODOs of the > >> current user and it looks like it's just a query to change but I can't > >> figure it out. > >> > >> Any idea ? > >> > >> Thanks, > >> Antonio > >> > >> 2008/10/8 Antonio Goncalves <[EMAIL PROTECTED]> > >> > >> > Hi everybody, > >> > I've installed the Todo application ( > >> > > >> > http://code.xwiki.org/xwiki/bin/view/Applications/TodoApplicationDownloads > >> ). > >> > I can add new todos, affect them to users and so on. But when I check > >> the > >> > MyTodos Panel (http://localhost:8080/xwiki/bin/view/Panels/MyTodos) > >> it's > >> > always empty. The problem is the HQL statement. It's like that : > >> > > >> > #set ($hql = ", BaseObject as obj, StringProperty as prop1, > >> StringProperty > >> > as prop2 where obj.name=doc.fullName and > >> obj.className='XWiki.TodoClass' > >> > and obj.name<>'XWiki.TodoClassTemplate' and obj.id=prop1.id.id and > >> > prop1.id.name='Status' and prop1.value <> 'Finished' and obj.id= > >> > prop2.id.id and prop2.id.name='Assignee' and > >> prop2.value='$context.user' > >> > order by doc.date desc") > >> > > >> > And if I get rid of the last assignee close (and obj.id=prop2.id.idand > >> > prop2.id.name='Assignee' and prop2.value='$context.user' ), it works > >> but > >> > shows all the todos of everybody. > >> > > >> > Do you know how to fix this HQL query so it shows the todos of the > >> current > >> > user ? > >> > > >> > Thanks, > >> > Antonio > >> > > >> > > >> > >> > >> -- > >> -- > >> Antonio Goncalves ([EMAIL PROTECTED]) > >> Software architect > >> > >> Paris JUG leader : www.parisjug.org > >> Web site : www.antoniogoncalves.org > >> Blog: jroller.com/agoncal > >> LinkedIn: www.linkedin.com/
Re: [xwiki-users] MyTodos not showing my todos
I've tried everything but I can't make it work. I'm now using the HQL Query Tester (http://code.xwiki.org/xwiki/bin/view/Snippets/HQLQueryTesterSnippet) to test my HQL queries, but it looks like this snippet of code of the HQL Query Tester doesn't work either :o( Any idea to try HQL queries ? I really need to display the TODOs of the current user and it looks like it's just a query to change but I can't figure it out. Any idea ? Thanks, Antonio 2008/10/8 Antonio Goncalves <[EMAIL PROTECTED]> > Hi everybody, > I've installed the Todo application ( > http://code.xwiki.org/xwiki/bin/view/Applications/TodoApplicationDownloads). > I can add new todos, affect them to users and so on. But when I check the > MyTodos Panel (http://localhost:8080/xwiki/bin/view/Panels/MyTodos) it's > always empty. The problem is the HQL statement. It's like that : > > #set ($hql = ", BaseObject as obj, StringProperty as prop1, StringProperty > as prop2 where obj.name=doc.fullName and obj.className='XWiki.TodoClass' > and obj.name<>'XWiki.TodoClassTemplate' and obj.id=prop1.id.id and > prop1.id.name='Status' and prop1.value <> 'Finished' and obj.id= > prop2.id.id and prop2.id.name='Assignee' and prop2.value='$context.user' > order by doc.date desc") > > And if I get rid of the last assignee close (and obj.id=prop2.id.id and > prop2.id.name='Assignee' and prop2.value='$context.user' ), it works but > shows all the todos of everybody. > > Do you know how to fix this HQL query so it shows the todos of the current > user ? > > Thanks, > Antonio > > -- -- Antonio Goncalves ([EMAIL PROTECTED]) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] MyTodos not showing my todos
Hi everybody, I've installed the Todo application ( http://code.xwiki.org/xwiki/bin/view/Applications/TodoApplicationDownloads). I can add new todos, affect them to users and so on. But when I check the MyTodos Panel (http://localhost:8080/xwiki/bin/view/Panels/MyTodos) it's always empty. The problem is the HQL statement. It's like that : #set ($hql = ", BaseObject as obj, StringProperty as prop1, StringProperty as prop2 where obj.name=doc.fullName and obj.className='XWiki.TodoClass' and obj.name<>'XWiki.TodoClassTemplate' and obj.id=prop1.id.id and prop1.id.name='Status' and prop1.value <> 'Finished' and obj.id=prop2.id.id and prop2.id.name='Assignee' and prop2.value='$context.user' order by doc.date desc") And if I get rid of the last assignee close (and obj.id=prop2.id.id and prop2.id.name='Assignee' and prop2.value='$context.user' ), it works but shows all the todos of everybody. Do you know how to fix this HQL query so it shows the todos of the current user ? Thanks, Antonio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Displaying the pages of a space
See below Antonio 2008/5/15 Vincent Massol <[EMAIL PROTECTED]>: > Hi Antonio, > > On May 15, 2008, at 9:42 PM, Antonio Goncalves wrote: > > > Thanks Jean-Vincent it works. Two more questions. > > > > 1) On the API ( > > > http://platform.xwiki.org/xwiki/bin/download/DevGuide/API/xwiki%2Dcore%2D1.3.2%2Djavadoc.zip/index.html<http://platform.xwiki.org/xwiki/bin/download/DevGuide/API/xwiki-core-1.3.2-javadoc.zip/index.html> > ) > > it says that the method getWeb is deprecated and that we should use > > getSpace. But when I do the following it doesn't work (doc.space > > instead of > > doc.web) : > > > > #set($query="where doc.*space*='Main'") > > #set($results = $xwiki.searchDocuments($query, 5, 0)) > > #foreach ($item in $results) > > * $item > > #end > > > > Looking at the API this should work no ? > > no :) > > This javadoc is about the XWiki Java API. The string you're using for > the query is not calling Java code. It's just a HQL string for doing & > query. Ok. I really thought both things were related. I though doc was just an instance of the Document class. > 2) the code ** $item * just gives me the title of the page, > and what > if I want to include the entire content of each page. How can I do > that ? Check the javadoc for the Document object. > > You'll get the Document object like this: $xwiki.getDocument($item) > > Note that there are lots of code snippets that should provide examples > on this in code.xwiki.org, in the snippets area. Let us know where > you'd have expected help on this in xwiki.org so that we can fix it. One thing that really would help is to be able to search for code. If you go to code.xwiki.org and search for the string "getDocument" no result is found. > > > Thanks > -Vincent > > > 2008/5/15, Jean-Vincent Drean <[EMAIL PROTECTED]>: > >> > >> On Thu, May 15, 2008 at 6:33 PM, Antonio Goncalves > >> <[EMAIL PROTECTED]> wrote: > >>> > >>> so I've tried several queries but in vain. I would like to do > >>> something > >> like > >>> that : > >>> > >>> #set($query="where spaces='MySpace'") > >>> #set($results = $xwiki.searchDocuments($query, 5, 0)) > >>> #foreach ($item in $results) > >>> * $item > >>> #end > >>> > >>> Any idea ? > >>> > >> > >> Hi, > >> > >> You can try this : > >> > >> #set($query="where doc.web='Main'") > >> #set($results = $xwiki.searchDocuments($query, 5, 0)) > >> #foreach ($item in $results) > >> * $item > >> #end > >> > >> Other examples are available here : > >> http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples > >> > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- -- Antonio Goncalves ([EMAIL PROTECTED]) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Displaying the pages of a space
Thanks Jean-Vincent it works. Two more questions. 1) On the API ( http://platform.xwiki.org/xwiki/bin/download/DevGuide/API/xwiki%2Dcore%2D1.3.2%2Djavadoc.zip/index.html) it says that the method getWeb is deprecated and that we should use getSpace. But when I do the following it doesn't work (doc.space instead of doc.web) : #set($query="where doc.*space*='Main'") #set($results = $xwiki.searchDocuments($query, 5, 0)) #foreach ($item in $results) * $item #end Looking at the API this should work no ? 2) the code ** $item * just gives me the title of the page, and what if I want to include the entire content of each page. How can I do that ? Thanks, Antonio 2008/5/15, Jean-Vincent Drean <[EMAIL PROTECTED]>: > > On Thu, May 15, 2008 at 6:33 PM, Antonio Goncalves > <[EMAIL PROTECTED]> wrote: > > > > so I've tried several queries but in vain. I would like to do something > like > > that : > > > > #set($query="where spaces='MySpace'") > > #set($results = $xwiki.searchDocuments($query, 5, 0)) > > #foreach ($item in $results) > > * $item > > #end > > > > Any idea ? > > > > Hi, > > You can try this : > > #set($query="where doc.web='Main'") > #set($results = $xwiki.searchDocuments($query, 5, 0)) > #foreach ($item in $results) > * $item > #end > > Other examples are available here : > http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples > > -- > Jean-Vincent Drean > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- -- Antonio Goncalves ([EMAIL PROTECTED]) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Displaying the pages of a space
Hi, I want to display all the pages of a specific space. For that I found the following code : #set($docs = $xwiki.getSpaceDocsName('MySpace')) #foreach ($doc in $docs) [${doc}] #end It works fine but I need more than that (ordering, exclusion...). So I'm trying to find the same fonctionnality but with a query. I couldn't find anything at http://dev.xwiki.org/xwiki/bin/view/Design/XWiki+Query+Language+Specification so I've tried several queries but in vain. I would like to do something like that : #set($query="where spaces='MySpace'") #set($results = $xwiki.searchDocuments($query, 5, 0)) #foreach ($item in $results) * $item #end Any idea ? Thanks, Antonio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Displaying just the titles of the blog
Hi, I use the Blog features of XWiki as well as the blog macro to display the entries. On a panel I just want to display the title of the the first five entries (without the content, comments, permalink...). I've been playing aroung with the Blog.Macros but it doesn't work. Is there an easy way to do that ? Thanks, Antonio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Modify a Skin with attached images
Makes sense. It's working now. Thanks !!! Antonio 2008/2/29, Vincent Massol <[EMAIL PROTECTED]>: > > > On Feb 29, 2008, at 4:43 PM, Antonio Goncalves wrote: > > That's weird, when I do that I get the following url : > > > > And of course there's no image at such address. I was expecting the URL of > my skin page like /xwiki/bin/view/Main/MySkin. Do you know why I get this > URL ? > > > > ah that's because the skin is called in the context of the current page. > > > You need this: > > > $xwiki.getDocument("skinpagename").getAttachmentURL("myfile.jpg") > > > -Vincent > > > > 2008/2/27, Vincent Massol <[EMAIL PROTECTED]>: > > > > > > > -Vincent > > > > On Feb 27, 2008, at 6:12 PM, Antonio Goncalves wrote: > > > > Hi, > > > > I'm following the "Modifying a skin" chapter from the Admin Guide to > > create a new skin ( > > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Skins). I've created > > a new page, attached an image to it ("myfile.jpg"), added the > > XWiki.XWikiSkins class to it and overrode some .vm files. I just don't > > know how to refer to the attached image ? I've tried several things : > > > > #set($logo = $!attachmentpage.getAttachment("myfile.jpg")) > > #set($logo = $!doc.getAttachment("myfile.jpg")) > > #set($logo = $!prefdoc.getAttachment("myfile.jpg")) > > > > Even some > > #set($logourl = $prefdoc.getAttachmentURL($logo.filename,"download")) > > > > But when I use the tag I have an empty src attribute > > > > > > > > Do you know what I am doing wrong ? > > > > Thanks, > > Antonio > > > > > > ___ > > users mailing list > > users@xwiki.org > > http://lists.xwiki.org/mailman/listinfo/users > > > > > > > -- > -- > Antonio Goncalves ([EMAIL PROTECTED]) > Software architect > > Paris JUG leader : www.parisjug.org > Web site : www.antoniogoncalves.org > Blog: jroller.com/agoncal > LinkedIn: > www.linkedin.com/in/agoncal___ > 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 > > -- -- Antonio Goncalves ([EMAIL PROTECTED]) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Modify a Skin with attached images
That's weird, when I do that I get the following url : And of course there's no image at such address. I was expecting the URL of my skin page like /xwiki/bin/view/Main/MySkin. Do you know why I get this URL ? Thanks, Antonio 2008/2/27, Vincent Massol <[EMAIL PROTECTED]>: > > > > -Vincent > > On Feb 27, 2008, at 6:12 PM, Antonio Goncalves wrote: > > Hi, > > I'm following the "Modifying a skin" chapter from the Admin Guide to > create a new skin ( > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Skins). I've created a > new page, attached an image to it ("myfile.jpg"), added the > XWiki.XWikiSkins class to it and overrode some .vm files. I just don't > know how to refer to the attached image ? I've tried several things : > > #set($logo = $!attachmentpage.getAttachment("myfile.jpg")) > #set($logo = $!doc.getAttachment("myfile.jpg")) > #set($logo = $!prefdoc.getAttachment("myfile.jpg")) > > Even some > #set($logourl = $prefdoc.getAttachmentURL($logo.filename,"download")) > > But when I use the tag I have an empty src attribute > > > > Do you know what I am doing wrong ? > > Thanks, > Antonio > > > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > > -- -- Antonio Goncalves ([EMAIL PROTECTED]) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Modify a Skin with attached images
Hi, I'm following the "Modifying a skin" chapter from the Admin Guide to create a new skin (http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Skins). I've created a new page, attached an image to it ("myfile.jpg"), added the XWiki.XWikiSkins class to it and overrode some .vm files. I just don't know how to refer to the attached image ? I've tried several things : #set($logo = $!attachmentpage.getAttachment("myfile.jpg")) #set($logo = $!doc.getAttachment("myfile.jpg")) #set($logo = $!prefdoc.getAttachment("myfile.jpg")) Even some #set($logourl = $prefdoc.getAttachmentURL($logo.filename,"download")) But when I use the tag I have an empty src attribute Do you know what I am doing wrong ? Thanks, Antonio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Severe problem, can't login as admin, neither as superadmin
Hi Sergiu, I have exactly the same problem with Tomcat 5.5.26 (I'm using XWiki 1.2.2). Should I wait for a bug fix from XWiki or should I use a previous version of Tomcat (if yes, which one) ? Thanks, Antonio 2008/2/15, Sergiu Dumitriu <[EMAIL PROTECTED]>: > > I'm looking into the problem now. > > Probably in > com.xpn.xwiki.user.impl.xwiki.MyPersistentLoginManager#setupCookie > (you have to recompile the code and update that class into the XWiki > installation) > > Too bad tomcat doesn't have an option to configure this. > > Rustedt, Florian wrote: > > Hi, > > > > Perhaps a stupid question but... WHERE do i insert "cookie.setVersion > (1);"? > > > > Florian > > > >> -Ursprüngliche Nachricht- > >> Von: Sergiu Dumitriu [mailto:[EMAIL PROTECTED] > >> Gesendet: Freitag, 15. Februar 2008 16:51 > >> An: XWiki Users > >> Betreff: Re: [xwiki-users] Severe problem, can't login as > >> admin, neither as superadmin > >> > >> See http://jira.xwiki.org/jira/browse/XWIKI-2119 > >> > > -- > Sergiu Dumitriu > http://purl.org/net/sergiu/ > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- -- Antonio Goncalves ([EMAIL PROTECTED]) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Import of XAR: Java Heap Space Out Of Memory Exception in 1.2
edDocument.java:182) at com.xpn.xwiki.doc.XWikiDeletedDocument.(XWikiDeletedDocument.java:85) at com.xpn.xwiki.store.XWikiHibernateRecycleBinStore.saveToRecycleBin(XWikiHibernateRecycleBinStore.java:54) at com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3262) at com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3254) at com.xpn.xwiki.plugin.packaging.Package.installDocument(Package.java:560) at com.xpn.xwiki.plugin.packaging.Package.install(Package.java:525) at com.xpn.xwiki.plugin.packaging.PackageAPI.install(PackageAPI.java:197) at com.xpn.xwiki.web.ImportAction.render(ImportAction.java:89) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:148) 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:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) 2008/1/21, Vincent Massol <[EMAIL PROTECTED]>: > > Hi Antonio, > On Jan 21, 2008, at 11:56 AM, Antonio Goncalves wrote: > > Hi all, > > I'm trying to upgrade XWiki from 1.0 to 1.2. The problem comes when I want > to import my .xar file (6Mb) and get a Java Heap Space Out Of Memory > Exception. > > I've checked your admin page > http://www.xwiki.org/xwiki/bin/view/FAQ/Howtoincreasethemaximumattachmentsize > and it looks like for my problem (file < 10Mb), only MySQL should be > changed. So I've changed the max_allowed_packet parameter but the problem > still occurs. I don't have anything in Tomcat or MySQL logs, which is a bit > strange. The only trace I get is the one bellow. It looks like Lucene breaks > because of the file upload not working. Any idea ? How could I get more > details in the log ? > > > > There are 2 places where to make changes when you want to import a large > XAR: > 1) the mysql config as you said, > 2) the XWikiPreferences object. Before 1.2 it had a max of 1MB if I recall > correctly. In 1.2 we've upgraded it to 30MB I believe. However if you're > using your old XWikiPreferences object then you'll have th max_upload_size > set to the old value. > > > See http://jira.xwiki.org/jira/browse/XE-145 > > > Now regarding lucene I don't understand why this the import has anything > to do with lucene but there's probably something I don't know here... > > > Try changing the max file upload parameter in your xwikipreferences and > try the upload again. > > > -Vincent > > > Thanks, > > Antonio > > [http://localhost:8080/xwiki/bin/upload/XWiki/Import] > [http-8080-Processor25] ERROR lucene.IndexUpdater - invalid > parameters given to add: XWiki.Import, null, > {grouplist={xwiki:XWiki.XWikiGuest=[], xwiki:xwiki:XWiki.XWikiGuest=[]}, > fileuploadlist=[name=null, StoreLocation=D:\Servers\Tomcat\apache- > tomcat-5.5.23\temp\upload_662feb76_117990b87e0__8000_.tmp, > size=77bytes, isFormField=true > , FieldName=xredirect, name=null, StoreLocation=D:\Servers\Tomcat\apache- > tomcat-5.5.23\temp\upload_662feb76_117990b87e0__8000_0001.tmp, > size=20bytes, isFormField=true, FieldName=filename, name= > Backup2008-01-20.xar , StoreLocation=D:\Servers\Tomcat\apache- > tomcat-5.5.23\temp\upl > oad_662feb76_117990b87e0__8000_0002.tmp, size=6639095bytes, > isFormField=false, FieldName=filepath], msg= > com.xpn.xwiki.web.XWikiMessageTo > [EMAIL PROTECTED], [EMAIL PROTECTED], baseskin=albatross, tdoc= > XWiki.Import, ajax=false, locale=fr, doc= XWiki.Import, mainxwiki=x > wiki, skin=albatross, message=javaheapspace, > [EMAIL PROTECTED], > vcontext=org.apache.v > [EMAIL PROTECTED] > > > > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > > -- -- Antonio Goncalves ([EMAIL PROTECTED]) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Import of XAR: Java Heap Space Out Of Memory Exception in 1.2
Ok, I've found the problem. Nothing to do with XWiki or MySQL, the heap of Tomcat was too low. I've increased the -Xmx and it works fine. Antonio 2008/2/16, Antonio Goncalves <[EMAIL PROTECTED]>: > > Hi everybody, > > I'm bringing this issue back but it still doesn't work. This is what I'm > doing : > > I'm starting everything from scratch : new database completly empty and a > fresh XWiki 1.2.2.7518 on a fresh Tomcat 5.5.26 and a 5.0.41 MySQL (with a > 5.1.5 driver). Just after installing XWiki, I try to import my 6Mb xar > file that I've exported from a XWiki 1.0. I select my file, click on > Upload and I end up with a "Java Heap Space Out Of Memory Exception" without > any stack trace. Notice that it breaks even before showing the page allowing > me to select the file. > > Here is how I've checked that MySQL could handle 6Mb : SHOW SESSION > VARIABLES like max_allowed_packet'; and SHOW GLOBAL VARIABLES like > 'max_allowed_packet'; Both results are 16Mb (max_allowed_packet = > 16776192). I don't know how to get the value max_upload_size from > XWiki.Preferences but following what Vincent said and > http://jira.xwiki.org/jira/browse/XE-145 it should be set to 32Mb. In > terms of size (MySQL and XWiki) it looks like it can handle 6Mb. > > I have several archives. So I've tried with a 2.2Mb xar file. It also > breaks but the behaviour is different. After clicking on upload, XWiki shows > me the page allowing me to choose from a file (this page doesn't even appear > with the 6Mb file). But then it breaks with a more explicit stack trace (as > follow). > > Any idea ? > Antonio > > Error number 0 in 11: Uncaught exception > Wrapped Exception: Java heap spacecom.xpn.xwiki.XWikiException: Error number > 0 in 11: Uncaught exception > Wrapped Exception: Java heap space > at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:164) > 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:269) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) > at > com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) > at > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) > at > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) > at > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) > at java.lang.Thread.run(Thread.java:595) > > > Wrapped Exception: > java.lang.OutOfMemoryError: Java heap space > at > java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99) > at > java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:393) > at java.lang.StringBuffer.append(StringBuffer.java:225) > at org.suigeneris.jrcs.rcs.impl.Node.toText(Node.java:720) > at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:914) > at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:686) > at org.suigeneris.jrcs.rcs.Archive.toByteArray(Archive.ja
Re: [xwiki-users] Import of XAR: Java Heap Space Out Of Memory Exception in 1.2
Hi all, I'm trying to upgrade XWiki from 1.0 to 1.2. The problem comes when I want to import my .xar file (6Mb) and get a Java Heap Space Out Of Memory Exception. I've checked your admin page http://www.xwiki.org/xwiki/bin/view/FAQ/Howtoincreasethemaximumattachmentsize and it looks like for my problem (file < 10Mb), only MySQL should be changed. So I've changed the max_allowed_packet parameter but the problem still occurs. I don't have anything in Tomcat or MySQL logs, which is a bit strange. The only trace I get is the one bellow. It looks like Lucene breaks because of the file upload not working. Any idea ? How could I get more details in the log ? Thanks, Antonio [http://localhost:8080/xwiki/bin/upload/XWiki/Import] [http-8080-Processor25] ERROR lucene.IndexUpdater - invalid parameters given to add: XWiki.Import, null, {grouplist={xwiki:XWiki.XWikiGuest=[], xwiki:xwiki:XWiki.XWikiGuest=[]}, fileuploadlist=[name=null, StoreLocation=D:\Servers\Tomcat\apache- tomcat-5.5.23\temp\upload_662feb76_117990b87e0__8000_.tmp, size=77bytes, isFormField=true , FieldName=xredirect, name=null, StoreLocation=D:\Servers\Tomcat\apache- tomcat-5.5.23\temp\upload_662feb76_117990b87e0__8000_0001.tmp, size=20bytes, isFormField=true, FieldName=filename, name= Backup2008-01-20.xar , StoreLocation=D:\Servers\Tomcat\apache- tomcat-5.5.23\temp\upl oad_662feb76_117990b87e0__8000_0002.tmp, size=6639095bytes, isFormField=false, FieldName=filepath], msg=com.xpn.xwiki.web.XWikiMessageTo [EMAIL PROTECTED], [EMAIL PROTECTED], baseskin=albatross, tdoc= XWiki.Import, ajax=false, locale=fr, doc=XWiki.Import, mainxwiki=x wiki, skin=albatross, message=javaheapspace, [EMAIL PROTECTED], vcontext=org.apache.v [EMAIL PROTECTED] ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XEM.war, XEM.war and Plugin Wiki Manager... getting confused
Here it is : http://jira.xwiki.org/jira/browse/XEM-76 2008/1/3, Thomas Mortagne <[EMAIL PROTECTED]>: > > Hi, > > This looks like an Application Manager plugin bug but I think it's > fixed for the coming 1.0M3 (next week) version. Could you add this bug > in http://jira.xwiki.org/jira/browse/XEM ? I will look at this > tomorrow. > > Thanks > > 2007/12/29, Antonio Goncalves <[EMAIL PROTECTED]>: > > Still doesn't work but the exception is different. I've granted *.* so > now > > the create database is made automatically, that's good. But when I point > to > > my newly create virtual wiki, I get the following exception. Any idea it > > looks like this is an encoding error. From the database maybe ? What set > of > > characters should be set in MySQL ? : > > > > javax.servlet.ServletException > > org.apache.struts.action.RequestProcessor.processException( > RequestProcessor.java:535) > > org.apache.struts.action.RequestProcessor.processActionPerform( > RequestProcessor.java:433) > > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java > :236) > > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) > > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:690) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter( > SetCharacterEncodingFilter.java:117) > > > > > > > > > > > > cause mère java.lang.NullPointerException > > > com.xpn.xwiki.plugin.applicationmanager.ApplicationManager.updateApplicationsTranslation > (ApplicationManager.java:326) > > com.xpn.xwiki.plugin.applicationmanager.ApplicationManager.notify( > ApplicationManager.java:126) > > com.xpn.xwiki.notify.DocChangeRule.verify(DocChangeRule.java:46) > > com.xpn.xwiki.notify.XWikiNotificationManager.verify( > XWikiNotificationManager.java:112) > > com.xpn.xwiki.XWiki.saveDocument(XWiki.java:960) > > com.xpn.xwiki.XWiki.saveDocument(XWiki.java:935) > > > com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractSuperClass.checkClassTemplateDocument > (AbstractSuperClass.java:530) > > > com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractSuperClass.check > (AbstractSuperClass.java:370) > > > com.xpn.xwiki.plugin.applicationmanager.doc.XWikiApplicationClass.getInstance > (XWikiApplicationClass.java:223) > > com.xpn.xwiki.plugin.applicationmanager.ApplicationManager.notify( > ApplicationManager.java:119) > > com.xpn.xwiki.notify.DocChangeRule.verify(DocChangeRule.java:46) > > com.xpn.xwiki.notify.XWikiNotificationManager.verify( > XWikiNotificationManager.java:112) > > com.xpn.xwiki.XWiki.saveDocument(XWiki.java:960) > > com.xpn.xwiki.XWiki.saveDocument(XWiki.java:935) > > > com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractSuperClass.checkClassSheetDocument > (AbstractSuperClass.java:477) > > > com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractSuperClass.check > (AbstractSuperClass.java:369) > > > com.xpn.xwiki.plugin.applicationmanager.doc.XWikiApplicationClass.getInstance > (XWikiApplicationClass.java:223) > > com.xpn.xwiki.plugin.applicationmanager.ApplicationManager.notify( > ApplicationManager.java:119) > > com.xpn.xwiki.notify.DocChangeRule.verify(DocChangeRule.java:46) > > com.xpn.xwiki.notify.XWikiNotificationManager.verify( > XWikiNotificationManager.java:112) > > com.xpn.xwiki.XWiki.saveDocument(XWiki.java:960) > > com.xpn.xwiki.XWiki.saveDocument(XWiki.java:935) > > > com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractSuperClass.checkClassDocument > (AbstractSuperClass.java:404) > > > com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractSuperClass.check > (AbstractSuperClass.java:368) > > > com.xpn.xwiki.plugin.applicationmanager.doc.XWikiApplicationClass.getInstance > (XWikiApplicationClass.java:223) > > com.xpn.xwiki.plugin.applicationmanager.ApplicationManager.notify( > ApplicationManager.java:119) > > com.xpn.xwiki.notify.DocChangeRule.verify(DocChangeRule.java:46) > > com.xpn.xwiki.notify.XWikiNotificationManager.verify( > XWikiNotificationManager.java:112) > > com.xpn.xwiki.XWiki.saveDocument(XWiki.java:960) > > com.xpn.xwiki.XWiki.saveDocument(XWiki.java:935) > > com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:2391) > > com.xpn.xwiki.XWiki.updateDatabase(XWiki.java:365) > > com.xpn.xwiki.XWiki.updateDatabase(XWiki.java:344) > > co
[xwiki-users] XEM RoadMap
Hi, I would like to know if there is a date for XEM 1.0 release. On JIRA ( http://jira.xwiki.org/jira/browse/XEM) it shows the 1.0-RC2 for 10/01/2007. Any idea about the final release ? Another question. Is XEM 1.0 based on XE 1.2 ? Because XE 1.2 is planned for 05/01/2007 so I was wondering if XEM would be released at the same time of XE. Thanks, Antonio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] XEM.war, XEM.war and Plugin Wiki Manager... getting confused
Humm, that might be a bug because meanwhile I was having a look at MySQL documentation, I clicked a second time of my virtual wiki link, and it works. So now, each time I create a new virtual wiki, I go to its home page a first time and get the encoding exception, I click a second time and it works. I'm using : XEM 1.0_M2 JDK 1.5.0_14 MySQL Server 5.0.45 Driver JDBC Connector/J 5.1.5 Tomcat 5.5.25 Antonio 2007/12/29, Antonio Goncalves <[EMAIL PROTECTED]>: > > Still doesn't work but the exception is different. I've granted *.* so now > the create database is made automatically, that's good. But when I point to > my newly create virtual wiki, I get the following exception. Any idea it > looks like this is an encoding error. From the database maybe ? What set > of characters should be set in MySQL ? : > > > javax.servlet.ServletException > > org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535) > > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433) > > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) > javax.servlet.http.HttpServlet.service(HttpServlet.java:690) > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) > > *cause mère* > > java.lang.NullPointerException > > com.xpn.xwiki.plugin.applicationmanager.ApplicationManager.updateApplicationsTranslation(ApplicationManager.java:326) > > com.xpn.xwiki.plugin.applicationmanager.ApplicationManager.notify(ApplicationManager.java:126) > com.xpn.xwiki.notify.DocChangeRule.verify(DocChangeRule.java:46) > > com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:112) > com.xpn.xwiki.XWiki.saveDocument(XWiki.java:960) > com.xpn.xwiki.XWiki.saveDocument(XWiki.java:935) > > com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractSuperClass.checkClassTemplateDocument(AbstractSuperClass.java:530) > > com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractSuperClass.check(AbstractSuperClass.java:370) > > com.xpn.xwiki.plugin.applicationmanager.doc.XWikiApplicationClass.getInstance(XWikiApplicationClass.java:223) > > com.xpn.xwiki.plugin.applicationmanager.ApplicationManager.notify(ApplicationManager.java:119) > com.xpn.xwiki.notify.DocChangeRule.verify(DocChangeRule.java:46) > > com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:112) > com.xpn.xwiki.XWiki.saveDocument(XWiki.java:960) > com.xpn.xwiki.XWiki.saveDocument(XWiki.java:935) > > com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractSuperClass.checkClassSheetDocument(AbstractSuperClass.java:477) > > com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractSuperClass.check(AbstractSuperClass.java:369) > > com.xpn.xwiki.plugin.applicationmanager.doc.XWikiApplicationClass.getInstance(XWikiApplicationClass.java:223) > > com.xpn.xwiki.plugin.applicationmanager.ApplicationManager.notify(ApplicationManager.java:119) > com.xpn.xwiki.notify.DocChangeRule.verify(DocChangeRule.java:46) > > com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:112) > com.xpn.xwiki.XWiki.saveDocument(XWiki.java:960) > com.xpn.xwiki.XWiki.saveDocument(XWiki.java:935) > > com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractSuperClass.checkClassDocument(AbstractSuperClass.java:404) > > com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractSuperClass.check(AbstractSuperClass.java:368) > > com.xpn.xwiki.plugin.applicationmanager.doc.XWikiApplicationClass.getInstance(XWikiApplicationClass.java:223) > > com.xpn.xwiki.plugin.applicationmanager.ApplicationManager.notify(ApplicationManager.java:119) > com.xpn.xwiki.notify.DocChangeRule.verify(DocChangeRule.java:46) > > com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:112) > com.xpn.xwiki.XWiki.saveDocument(XWiki.java:960) > com.xpn.xwiki.XWiki.saveDocument(XWiki.java:935) > com.xpn.xwiki.XWiki.getPrefsClass(XWiki.java:2391) > com.xpn.xwiki.XWiki.updateDatabase(XWiki.java:365) > com.xpn.xwiki.XWiki.updateDatabase(XWiki.java:344) > com.xpn.xwiki.XWiki.getXWiki(XWiki.java:46
Re: [xwiki-users] XEM.war, XEM.war and Plugin Wiki Manager... getting confused
ges ; > > true, now xem does the 'create database ' + some other things for the wiki > farm > and I does the grants myself. > > thanks Vincent for the *.* ! > > Benoit > > > > > vmassol wrote: > > > > > > On Dec 28, 2007, at 5:26 PM, Antonio Goncalves wrote: > > > >> Humm, doesn't work for me. Benoit, when you create a virtual wiki > >> (let's say sales), do you create a new sales database ? I wonder if > >> all the virtual wikis store their data into the xwiki database > >> (sales stores its data into xwiki DB) or if each one has its own > >> database (sales stores its data into sales DB) ? > >> > >> When you grant the sales user (grant all privileges on sales.* to > >> [EMAIL PROTECTED] identified by 'sales') you are assuming that the > >> database name is sales and the password is sales too. How does XWiki > >> handles that ? > >> > >> But I really thought that XWiki Manager would handles all that > >> automatically. Am I wrong ? > > > > The Wiki Manager plugin does automatically create a new database for > > the new wiki. However we don't automatically set the privileges (I > > guess that's because there might not be any standard way of doing this > > in Hibernate). So what you have to do (once) is: > > > > grant all privileges on *.* to [EMAIL PROTECTED] identified by 'xwiki' > > > > Then you're good to go. > > > > Thanks > > -Vincent > > > >> 2007/12/28, Benoit Hug <[EMAIL PROTECTED]>: > >> > >> Hi Antonio, > >> > >> I have the same symptoms. (i have xem 1.0 m1 installed) > >> and on the log there is a permission problem rc > >> > >> So for each new vitual wiki i create, i do the following, (it works) : > >> grant all privileges on sales.* to [EMAIL PROTECTED] identified by > >> 'sales' > >> grant all privileges on xwiki.* to [EMAIL PROTECTED] identified by > >> 'xwiki' > >> > >> (my own problem is that mysql is not my well known database and i > >> had never > >> get time to loock in) > >> > >> > >> Benoit > >> > >> > >> > >> > >> Antonio Goncalves wrote: > >> > > >> > Thank you Vincent, I've tried both solutions and it works fine. > >> > > >> > I'm just confused now about how to create new wikis. When I use > >> XEM ( > >> > http://localhost:8080/xwiki/bin/view/WikiManager/) and I click on > >> "create > >> > a > >> > new wiki", no problem. For example, if I create a wiki called > >> "*sales*", I > >> > have a new link showing *sales.localdomain.com*. To cheat, I > >> change my > >> > hosts > >> > file (on Windows Vista) and map the * sales.localdomain.com* to > >> 127.0.0.1. > >> > But after, when I click on *sales.localdomain.c*om I get an > >> exception > >> > that my user xwiki cannot access the database *sales* : > >> > > >> > > >> > javax.servlet.ServletException: Error number 3202 in 3: Exception > >> > while reading document XWiki.XWikiPreferences > >> > Wrapped Exception: Error number 3301 in 3: Exception while switching > >> > to database sales > >> > Wrapped Exception: Access denied for user 'xwiki'@'localhost' to > >> > database '*sales*' > >> > > >> > > >> org > >> .apache > >> .struts > >> .action.RequestProcessor.processException(RequestProcessor.java :535) > >> > > >> > > >> org > >> .apache > >> .struts > >> .action.RequestProcessor.processActionPerform(RequestProcessor.java: > >> 433) > >> > > >> > > >> org > >> .apache.struts.action.RequestProcessor.process(RequestProcessor.java: > >> 236) > >> > org.apache.struts.action.ActionServlet.process > >> (ActionServlet.java:1196) > >> > > >> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) > >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:690) > >> > javax.servlet.http.HttpServlet.service (HttpServlet.java:803) > >> > > >> > > >> com > >> .xpn > >> .xwiki > >> .web > >>
Re: [xwiki-users] XEM.war, XEM.war and Plugin Wiki Manager... getting confused
Humm, doesn't work for me. Benoit, when you create a virtual wiki (let's say sales), do you create a new sales database ? I wonder if all the virtual wikis store their data into the xwiki database (sales stores its data into xwiki DB) or if each one has its own database (sales stores its data into sales DB) ? When you grant the sales user (grant all privileges on sales.* to [EMAIL PROTECTED] identified by 'sales') you are assuming that the database name is sales and the password is sales too. How does XWiki handles that ? But I really thought that XWiki Manager would handles all that automatically. Am I wrong ? Antonio 2007/12/28, Benoit Hug <[EMAIL PROTECTED]>: > > > Hi Antonio, > > I have the same symptoms. (i have xem 1.0 m1 installed) > and on the log there is a permission problem rc > > So for each new vitual wiki i create, i do the following, (it works) : > grant all privileges on sales.* to [EMAIL PROTECTED] identified by 'sales' > grant all privileges on xwiki.* to [EMAIL PROTECTED] identified by 'xwiki' > > (my own problem is that mysql is not my well known database and i had > never > get time to loock in) > > > Benoit > > > > > Antonio Goncalves wrote: > > > > Thank you Vincent, I've tried both solutions and it works fine. > > > > I'm just confused now about how to create new wikis. When I use XEM ( > > http://localhost:8080/xwiki/bin/view/WikiManager/) and I click on > "create > > a > > new wiki", no problem. For example, if I create a wiki called "*sales*", > I > > have a new link showing *sales.localdomain.com*. To cheat, I change my > > hosts > > file (on Windows Vista) and map the *sales.localdomain.com* to 127.0.0.1 > . > > But after, when I click on *sales.localdomain.c*om I get an exception > > that my user xwiki cannot access the database *sales* : > > > > > > javax.servlet.ServletException: Error number 3202 in 3: Exception > > while reading document XWiki.XWikiPreferences > > Wrapped Exception: Error number 3301 in 3: Exception while switching > > to database sales > > Wrapped Exception: Access denied for user 'xwiki'@'localhost' to > > database '*sales*' > > > > org.apache.struts.action.RequestProcessor.processException( > RequestProcessor.java:535) > > > > org.apache.struts.action.RequestProcessor.processActionPerform( > RequestProcessor.java:433) > > > > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java > :236) > > org.apache.struts.action.ActionServlet.process(ActionServlet.java > :1196) > > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java > :414) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:690) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > > > com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter( > SetCharacterEncodingFilter.java:117) > > > > > > So what I did after is create a new database *sales* and give the user > > xwiki > > all the priviledges : > > > > mysql --user=root --execute="create database *sales*" > > mysql --user=root --execute="grant all privileges on xwiki.* to > > [EMAIL PROTECTED] identified by '*sales*'" > > > > But that doesn't work either. When I go to *sales.localdomain.com*here > > comes a new exception : > > > > > > javax.servlet.ServletException: Error number 3 in 0: Could not > > initialize main XWiki context > > Wrapped Exception: Error number 3202 in 3: Exception while reading > > document XWiki.XWikiPreferences > > Wrapped Exception: Could not create a DBCP pool > > > > org.apache.struts.action.RequestProcessor.processException( > RequestProcessor.java:535) > > > > org.apache.struts.action.RequestProcessor.processActionPerform( > RequestProcessor.java:433) > > > > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java > :236) > > org.apache.struts.action.ActionServlet.process(ActionServlet.java > :1196) > > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java > :414) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:690) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > > > com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter( > SetCharacterEncodingFilter.java:117) > > > > I think I'm doing something wrong because in my understanding XWiki > > Manager > > should do these things automatically and I think I'
Re: [xwiki-users] XEM.war, XEM.war and Plugin Wiki Manager... getting confused
Thank you Vincent, I've tried both solutions and it works fine. I'm just confused now about how to create new wikis. When I use XEM ( http://localhost:8080/xwiki/bin/view/WikiManager/) and I click on "create a new wiki", no problem. For example, if I create a wiki called "*sales*", I have a new link showing *sales.localdomain.com*. To cheat, I change my hosts file (on Windows Vista) and map the *sales.localdomain.com* to 127.0.0.1. But after, when I click on *sales.localdomain.c*om I get an exception that my user xwiki cannot access the database *sales* : javax.servlet.ServletException: Error number 3202 in 3: Exception while reading document XWiki.XWikiPreferences Wrapped Exception: Error number 3301 in 3: Exception while switching to database sales Wrapped Exception: Access denied for user 'xwiki'@'localhost' to database '*sales*' org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) So what I did after is create a new database *sales* and give the user xwiki all the priviledges : mysql --user=root --execute="create database *sales*" mysql --user=root --execute="grant all privileges on xwiki.* to [EMAIL PROTECTED] identified by '*sales*'" But that doesn't work either. When I go to *sales.localdomain.com*here comes a new exception : javax.servlet.ServletException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3202 in 3: Exception while reading document XWiki.XWikiPreferences Wrapped Exception: Could not create a DBCP pool org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) I think I'm doing something wrong because in my understanding XWiki Manager should do these things automatically and I think I'm doing to much hand work. I'm using MySQL 5.0.45. Any idea ? Thanks, Antonio 2007/12/26, Vincent Massol <[EMAIL PROTECTED]>: > Hi Antonio, > > On Dec 26, 2007, at 6:51 PM, Antonio Goncalves wrote: > > > Hi, > > > > I'm having a look at virtual wikis and I'm a bit confused with all > > the installation possibilities. In my understanding, XEM is an easy > > way to manage several XWiki instances on one server. Starting from a > > fresh install you would download the XEM.war file into your tomcat, > > import the XEM.xar file, and it should work. But what do you do when > > you already have an instance of xwiki running and you want to add > > the management capabilities ? Is it when the Wiki Manager plugin > > comes along ? Am I right in saying : > > > > * fresh install : XEM.war and XEM.xar > > * xwiki already installed (xwiki.war) : use the Wiki Manager plugin > > and forget about XEM (war and xar) > > Yes, that's almost correct. We need these instructions on the > xwiki.org web site. To transform XE into a XEM install do the following: > > * install the Application Manager plugin (JAR) + the Application > Manager application (XAR) > * install the Wiki Manager plugin (JAR) + the Wiki Manager application > (XAR) > * modify xwiki.cfg to set xwiki.virtual to 1 > > Thanks > -Vincent > > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- -- Antonio Goncalves ([EMAIL PROTECTED]) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Admin password for XEM 1.0-M2
Ooops, sorry, I was pointing to a different database where I had change the password. So, in XEM, the Admin password is still admin. Antonio 2007/12/27, Antonio Goncalves <[EMAIL PROTECTED]>: > > Hi, > > I've installed XEM 1.0-M2 from a fresh install (new database...) > and imported the xwiki-enterprise-manager-wiki-administrator-1.0-M2.xarfile. > In the import list, I can see that there is an 'Admin' user, but I > cannot log on with the password 'admin' (lower case 'a'). Is the Admin > password different with XEM ? What am I doing wrong ? > > Antonio > -- -- Antonio Goncalves ([EMAIL PROTECTED]) Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Admin password for XEM 1.0-M2
Hi, I've installed XEM 1.0-M2 from a fresh install (new database...) and imported the xwiki-enterprise-manager-wiki-administrator-1.0-M2.xarfile. In the import list, I can see that there is an 'Admin' user, but I cannot log on with the password 'admin' (lower case 'a'). Is the Admin password different with XEM ? What am I doing wrong ? Antonio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] XEM.war, XEM.war and Plugin Wiki Manager... getting confused
Hi, I'm having a look at virtual wikis and I'm a bit confused with all the installation possibilities. In my understanding, XEM is an easy way to manage several XWiki instances on one server. Starting from a fresh install you would download the XEM.war file into your tomcat, import the XEM.xarfile, and it should work. But what do you do when you already have an instance of xwiki running and you want to add the management capabilities ? Is it when the Wiki Manager plugin comes along ? Am I right in saying : * fresh install : XEM.war and XEM.xar * xwiki already installed (xwiki.war) : use the Wiki Manager plugin and forget about XEM (war and xar) Thnaks, Antonio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Full screen viewing
?xpage=plain Simple as that. Thanks Vincent 2007/12/10, Vincent Massol <[EMAIL PROTECTED]>: > > You can remove all layout by adding ?xpage=plain to URLs. > > -Vincent > > On Dec 10, 2007, at 4:03 PM, Antonio Goncalves wrote: > > > Hi, > > > > I would like to see a flash animation on a full screen page. Meaning > > that when I click on a particular link, menus, header and footer > > disapear so I can see the animation in a bigger scale. Do you know > > how to do that ? > > > > Antonio > > ___ > > 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 > -- -- Antonio Goncalves Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Full screen viewing
Hi, I would like to see a flash animation on a full screen page. Meaning that when I click on a particular link, menus, header and footer disapear so I can see the animation in a bigger scale. Do you know how to do that ? Antonio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Adding flash animation
Yes, cool, it works. Thanks Sergiu. This is what I wrote on my page after attaching the myanimation.swf file #set($width = "500") #set($height= "500") #set($flashurl = $doc.getAttachmentURL("myanimation.swf")) http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0";> http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash "> 2007/12/10, Sergiu Dumitriu <[EMAIL PROTECTED]>: > > Antonio Goncalves wrote: > > Hi, > > > > I've made an animation with Wink, transformed it into flash (swf file) > > and now I want to add it to my page. I've followed the instructions on > > > http://www.xwiki.org/xwiki/bin/view/FAQ/HowDoIAddAnimatedGifSshockwaveAndFlashItemsToMyWiki > > but it does not work. > > > > What I do is that I attach my swf file (myanimation.swf) to my page and > > then add : > > > > #set($width = "500") > > #set($height= "500") > > #set($flashurl = $doc.getAttachmentURL("myanimation.swf ", "download")) > > #includeForm("xwiki:XWiki.Flash") > > > > I'm using XWiki 1.0 and nothing appears on my page. When I look at the > > HTML code produced, nothing in there. Does any body have any idea ? > > > > Thanks, > > Antonio > > > > Hi, > > That FAQ was only for hosted wikis (on the xwiki.com farm), and is > really deprecated, meaning that right now it does not work. > > I found the template that used to be at xwiki:XWiki.flash, so you can > paste this code instead of the #includeForm line: > > WIDTH="${width}" HEIGHT="${height}" > CODEBASE=" > http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0";> > > > > > quality="high" loop="false" TYPE="application/x-shockwave-flash" > PLUGINSPAGE=" > http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash > "> > > > > > Sergiu > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > -- -- Antonio Goncalves Software architect Paris JUG leader : www.parisjug.org Web site : www.antoniogoncalves.org Blog: jroller.com/agoncal LinkedIn: www.linkedin.com/in/agoncal ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Adding flash animation
Hi, I've made an animation with Wink, transformed it into flash (swf file) and now I want to add it to my page. I've followed the instructions on http://www.xwiki.org/xwiki/bin/view/FAQ/HowDoIAddAnimatedGifSshockwaveAndFlashItemsToMyWiki but it does not work. What I do is that I attach my swf file (myanimation.swf) to my page and then add : #set($width = "500") #set($height= "500") #set($flashurl = $doc.getAttachmentURL("myanimation.swf", "download")) #includeForm("xwiki:XWiki.Flash") I'm using XWiki 1.0 and nothing appears on my page. When I look at the HTML code produced, nothing in there. Does any body have any idea ? Thanks, Antonio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] CAPTCHA for comments and registration
Hi, I'm also trying to add captcha validation to the comments. I've looked at Dodo skin and I'm trying to do the same for Albatross but it doesn't work. I've set xwiki.plugin.captcha=1 in the xwiki.cfg. Dodo uses comments.vm but it looks like the most appropriate place in Albatros is commentsinline.vm, am I right ? Then, when I copy the following code into commentsinline.vm but nothing happens #if ($captchaPlugin) $captchaPlugin.displayCaptcha("comment","wiki_captcha") #end Any idea 2007/11/29, marlon hendred <[EMAIL PROTECTED]>: > > Hello All, > Im trying to captcha validate my register page on my xwiki because i've > had a problem with spam bots. I am using the albatross skin on xwiki > v1.1.1.5166. I've asked this question before, and was told by someone to > look at captcha.vm, edit.vm etc... in the dodo skins. The only thing I > found related to captcha was this: > > #if ($captchaPlugin) > $captchaPlugin.displayCaptcha("edit","wiki_captcha") > #end > > I added that to the registerinline.vm file and got nothing! In > WEB-INF/xwiki.cfg, the captcha plugin is set to 1. > > I would really appreciated it if a developer would surface and tell me how > this works, what im doing wrong, or point me to some WORKING examples. > Thanks. > > -Marlon > > On Nov 7, 2007 10:12 AM, marlon hendred <[EMAIL PROTECTED]> wrote: > > > Hi, > > So what documentation or resources did you read to get this working for > > you? > > > > On Nov 7, 2007 1:18 AM, Guillaume Lerouge <[EMAIL PROTECTED] > wrote: > > > Hi, > > > > > > I'm sorry but my competencies do not go so far as to explain why this > > does > > > not work... It worked for me :( > > > > > > Guillaume > > > > > > > > > > > > On 07/11/2007, marlon hendred < [EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > Yes I have scowerd xwiki.org in search of some documentation on a > > lot > > > > of things but have come up empty handed every time. Although the > > code > > > > you gave does display the captcha with an input box, it seems that > > it > > > > accepts anything. How do i verify the user has input the correct > > > > value? > > > > > > > > On Nov 6, 2007 11:39 PM, Guillaume Lerouge <[EMAIL PROTECTED]> > > wrote: > > > > > CaptchaName is indeed simply an arbitrary identifier you assign to > > your > > > > > captcha, like an ID tag. That's useful when you are using the > > captcha > > > twice > > > > > on the same page or on your wiki. I think you can get jcaptcha to > > > display a > > > > > "please tell me how much do 3+8" instead of an image, not sure how > > to > > > > > achieve this though. > > > > > > > > > > As for a documentation, I guess you already checked XWiki.org + > > the > > > mailing > > > > > list archives? > > > > > > > > > > Guillaume > > > > > > > > > > > > > > > > > > > > On 07/11/2007, marlon hendred < [EMAIL PROTECTED]> wrote: > > > > > > Thanks for the response. So I got the captcha to show up but I > > still > > > have > > > > > some questions. > > > > > > > > > > > > what is "CaptchaName"? Just an arbitrary string? and what args > > does > > > > > displayCaptcha() take? What other methods does jcaptcha have? Is > > there > > > some > > > > > sort of documentation somewhere that I could look at on this? > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 11/6/07, Guillaume Lerouge < [EMAIL PROTECTED]> wrote: > > > > > > > You can use this (with the plugin enabled): > > > > > > > > > > > > > > > > > > > > > #if ($xwiki.jcaptcha.verifyCaptcha("CaptchaName")) > > > > > > > > > > > > > > > > > > > > > The code for the action that needs to be captcha protected > > goes here > > > > > (like for sending a form for instance) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ##$xwiki.jcaptcha.displayCaptcha("CaptchaName", "") > > > > > > > #if ($context.user==" XWiki.XWikiGuest") Please type the > > captcha > > > > > below:* > name="jcaptcha_response" /> > > > > > > > /> #end > > > > > > > > > type="submit" > > > > > value="Send"> #end > > > > > > > > > > > > > > > > > > > > > Hope this helps > > > > > > > > > > > > > > > > > > > > > Guillaume > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 06/11/2007, Paul Armstrong < [EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > On Mon, Nov 05, 2007 at 03:52:16PM -0800, marlon hendred > > wrote: > > > > > > > > > Hi, can someone help me with setting up CAPTCHA with the > > > albatross > > > > > skin for > > > > > > > > > registration and comments? Is there some example code I > > could > > > look > > > > > at? Or if > > > > > > > > > someone has this working could they give some guidence? I > > have > > > the > > > > > captcha > > > > > > > > > plugin enabled but I'm kinda stuck on what to do next. > > Thanks in > > > > > advance. > > > > > > > > > > > > > > > > Look in the dodo skin files. > > > > > > > > Particularly: > > > > > > > > captcha.vm > > > > > > > > comments.vm > > > > > > > > edit.vm > >
Re: [xwiki-users] Tutorial in French
Hi everybody, Just to let you know that the tutorial about XWiki has been published on developpez.com<http://agoncalves.developpez.com/tutoriels/xwiki/creer-un-site-associatif/>website. It's in french, sorry, maybe one day we could translate it into english. I would like to thank Sergiu Dumitriu, François Le Droff and Pascal B for reading the early draft and giving me their inputs. Antonio 2007/7/9, Antonio Goncalves <[EMAIL PROTECTED]>: > > > Hi, > > > > I've finished writing a tutorial for XWiki. In this tutorial you learn : > > > > * how to install XWiki (Tomcat, MySQL) > > * how to create pages and change their content > > * create user and deal with access rights > > * and other little things (change title, change skin...) > > > > I'm in the process of uploding it to developpez.com web site but before > > I was wondering if one of you (speaking french) would like to have a quick > > read through (in case there are some mistakes). > > > > Let me know. > > > > Antonio > > > > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Comments spam
There's nothing for Albatross but. 2007/9/3, Paul Armstrong <[EMAIL PROTECTED]>: > > On Mon, Sep 03, 2007 at 05:17:30PM +0200, Antonio Goncalves wrote: > > BTW, is there a functionality to add "simple" captcha to add comments > (like > > "1+3=") ? > > find dodo -exec grep -i captcha /dev/null {} \; > dodo/captcha.vm:#if ($captchaPlugin) > dodo/captcha.vm: $captchaPlugin.displayCaptcha("edit","wiki_captcha") > dodo/wysiwyg.vm:#if ($captchaPlugin) > dodo/wysiwyg.vm: $captchaPlugin.displayCaptcha("edit","wiki_captcha") > dodo/edit.vm:#if ($captchaPlugin) > dodo/edit.vm: $captchaPlugin.displayCaptcha("edit","wiki_captcha") > dodo/comments.vm:#if ($captchaPlugin) > dodo/comments.vm: $captchaPlugin.displayCaptcha("comment","wiki_captcha") > > Paul > > -- > End dual-measurement, let's finish going metric! > http://gometric.us/ > http://www.metric.org/ > > ___ > 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] Comments spam
Yes, this example is just what I need. If anybody knows how it works, I'm in it. Antonio 2007/9/3, Guillaume Lerouge <[EMAIL PROTECTED]>: > > Such a feature was developed some time ago and I've seen it used on a > XWiki instance (see > http://wikipeople.elle.fr/xwiki/bin/view/People/JenniferAniston?viewer=comments > ). Do anyone around knows whether it can be re-used easily? > > Guillaume > > On 03/09/07, Antonio Goncalves < [EMAIL PROTECTED]> wrote: > > > > BTW, is there a functionality to add "simple" captcha to add comments > > (like "1+3=") ? > > > > 2007/9/3, Sergiu Dumitriu <[EMAIL PROTECTED]>: > > > > > > The best way would be to rollback the document to a previous version, > > > before the spam. This is not a good idea when actual document changes > > > and spam comments are mixed, as you will also lose the changes. > > > > > > On 9/3/07, Antonio Goncalves < [EMAIL PROTECTED]> wrote: > > > > Hi, > > > > > > > > My XWiki website has been spammed with more than 200 (porn) comments > > > on the > > > > main page. I didn't want to put any access restriction on comments > > > thinking > > > > that the world was a better place and that anybody could comment > > > :o) Well, > > > > I was wrong and I'm gonna change the user rights. > > > > > > > > How can I safely delete all these comments (by hand it will take me > > > ages) ? > > > > > > > > Thanks, > > > > > > > > Antonio > > > > ___ > > > > users mailing list > > > > users@xwiki.org > > > > http://lists.xwiki.org/mailman/listinfo/users > > > > > > > > > > > > > > > > > -- > > > http://purl.org/net/sergiu > > > ___ > > > 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 > > > > > > > -- > http://wikibc.blogspot.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] Comments spam
BTW, is there a functionality to add "simple" captcha to add comments (like "1+3=") ? 2007/9/3, Sergiu Dumitriu <[EMAIL PROTECTED]>: > > The best way would be to rollback the document to a previous version, > before the spam. This is not a good idea when actual document changes > and spam comments are mixed, as you will also lose the changes. > > On 9/3/07, Antonio Goncalves <[EMAIL PROTECTED]> wrote: > > Hi, > > > > My XWiki website has been spammed with more than 200 (porn) comments on > the > > main page. I didn't want to put any access restriction on comments > thinking > > that the world was a better place and that anybody could comment > :o) Well, > > I was wrong and I'm gonna change the user rights. > > > > How can I safely delete all these comments (by hand it will take me > ages) ? > > > > Thanks, > > > > Antonio > > ___ > > users mailing list > > users@xwiki.org > > http://lists.xwiki.org/mailman/listinfo/users > > > > > > > -- > http://purl.org/net/sergiu > ___ > 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] Comments spam
Raffaello I've done the updates but comments still show up. Do I have to clear a cache or something like that ? 2007/9/3, Raffaello Pelagalli <[EMAIL PROTECTED]>: > > "Antonio Goncalves" <[EMAIL PROTECTED]> writes: > > > Hi, > > > > My XWiki website has been spammed with more than 200 (porn) comments on > the > > main page. I didn't want to put any access restriction on comments > thinking > > that the world was a better place and that anybody could comment > :o) Well, I > > was wrong and I'm gonna change the user rights. > > > > How can I safely delete all these comments (by hand it will take me > ages) ? > > > > Thanks, > > Hi, > > An easy way to do that, without loosing anything is to change the object > type of > each spam comments. > > For exemple, you can execute something like that on your database server : > > update xwikiobjects, xwikilargestrings set > XWO_CLASSNAME='XWiki.XWikiComments_spam' where > XWO_CLASSNAME='XWiki.XWikiComments' and XWL_ID=XWO_ID and > XWL_VALUE like '%viagra%'; > > Best regards, > -- > Raffaello Pelagalli > XPertNet - XWiki.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] Comments spam
BTW, why can't I just delete the comments instead of changing the object type ? I don't mind loosing these comments, can I damage any database key constraint ? 2007/9/3, Raffaello Pelagalli <[EMAIL PROTECTED]>: > > "Antonio Goncalves" <[EMAIL PROTECTED]> writes: > > > Hi, > > > > My XWiki website has been spammed with more than 200 (porn) comments on > the > > main page. I didn't want to put any access restriction on comments > thinking > > that the world was a better place and that anybody could comment > :o) Well, I > > was wrong and I'm gonna change the user rights. > > > > How can I safely delete all these comments (by hand it will take me > ages) ? > > > > Thanks, > > Hi, > > An easy way to do that, without loosing anything is to change the object > type of > each spam comments. > > For exemple, you can execute something like that on your database server : > > update xwikiobjects, xwikilargestrings set > XWO_CLASSNAME='XWiki.XWikiComments_spam' where > XWO_CLASSNAME='XWiki.XWikiComments' and XWL_ID=XWO_ID and > XWL_VALUE like '%viagra%'; > > Best regards, > -- > Raffaello Pelagalli > XPertNet - XWiki.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] Comments spam
(Unknown Source) at org.suigeneris.jrcs.rcs.KeywordsFormat.substitute(KeywordsFormat.java:194) at org.suigeneris.jrcs.rcs.KeywordsFormat.reset(KeywordsFormat.java:166) at org.suigeneris.jrcs.rcs.Archive.removeKeywords(Archive.java:1243) at org.suigeneris.jrcs.rcs.Archive.addRevision(Archive.java:1153) at org.suigeneris.jrcs.rcs.Archive.addRevision(Archive.java:1073) at com.xpn.xwiki.doc.XWikiDocumentArchive.updateArchive(XWikiDocumentArchive.java:91) at com.xpn.xwiki.store.XWikiHibernateVersioningStore.updateXWikiDocArchive(XWikiHibernateVersioningStore.java:242) 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.ObjectRemoveAction.action(ObjectRemoveAction.java:49) 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.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:118) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:595) 2007/9/3, Raffaello Pelagalli <[EMAIL PROTECTED]>: > > "Antonio Goncalves" <[EMAIL PROTECTED]> writes: > > > Hi, > > > > My XWiki website has been spammed with more than 200 (porn) comments on > the > > main page. I didn't want to put any access restriction on comments > thinking > > that the world was a better place and that anybody could comment > :o) Well, I > > was wrong and I'm gonna change the user rights. > > > > How can I safely delete all these comments (by hand it will take me > ages) ? > > > > Thanks, > > Hi, > > An easy way to do that, without loosing anything is to change the object > type of > each spam comments. > > For exemple, you can execute something like that on your database server : > > update xwikiobjects, xwikilargestrings set > XWO_CLASSNAME='XWiki.XWikiComments_spam' where > XWO_CLASSNAME='XWiki.XWikiComments' and XWL_ID=XWO_ID and > XWL_VALUE like '%viagra%'; > > Best regards, > -- > Raffaello Pelagalli > XPertNet - XWiki.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
[xwiki-users] Comments spam
Hi, My XWiki website has been spammed with more than 200 (porn) comments on the main page. I didn't want to put any access restriction on comments thinking that the world was a better place and that anybody could comment :o) Well, I was wrong and I'm gonna change the user rights. How can I safely delete all these comments (by hand it will take me ages) ? Thanks, Antonio ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users