Re: [xwiki-users] Components in XWiki
Hi! On Sat, Apr 11, 2009 at 10:26 PM, Jerome Velociter jer...@xwiki.com wrote: Hi, Bálint Kriván wrote: Hi! As the beginning I would like to say Hi! everyone, I'm new to XWiki. I've read this guide: http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents I've got the main picture about this but how can I compile this component mvn install in the root directory of your component (where the pom.xml is). check http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven for more info on building (which maven version to use, how to configure maven, etc.) Thanks for your help! It works, just a little question: I had to do this: $ mvn install:install-file -DgroupId=org.xwiki.platform -DartifactId=xwiki-core-component -Dversion=1.8-SNAPSHOT -Dpackaging=jar -Dfile=./xwiki-core-component-1.8.jar Because for mvn install it said that he need that dependency. So I've installed it as it suggested (from WEB-INF/lib). Is it okay? Or is it a recommended way how to install dependencies? (Should I?) and how can I include it in my XWiki installation? just drop the built jar in the WEB-INF/lib/ folder of your XWiki application Thanks. Is XWiki realize the components in run-time? Or I have to restart it? (I've copied it and started, so I don't know if it works if I just copy it while XWiki still running.) that should be all. Thank for your fast help! Jerome So for example: I've make a HelloWorld component and I would like to use it in a wiki page like this (using groovy): % def greeter = com.xpn.xwiki.web.Utils.getComponent(org.xwiki.component.HelloWorld.ROLE); println greeter.sayHello(); % How can I do that? What are the missing steps I need to do (currently i'm having a directory with tree like this: pom.xml src/main/java/org/xwiki/component/HelloWorld.java src/main/java/org/xwiki/component/internal/DefaultHelloWorld.java src/main/resources/META-INF/plexus/components.xml src/test/java/org/xwiki/component/HelloWorldTest.java )? Thanks for reading and your guidance! -- Regards, Bálint Kriván ___ 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 -- Üdv, Kriván Bálint ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Components in XWiki
Bálint Kriván wrote: Hi! On Sat, Apr 11, 2009 at 10:26 PM, Jerome Velociter jer...@xwiki.com wrote: Hi, Bálint Kriván wrote: Hi! As the beginning I would like to say Hi! everyone, I'm new to XWiki. I've read this guide: http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents I've got the main picture about this but how can I compile this component mvn install in the root directory of your component (where the pom.xml is). check http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven for more info on building (which maven version to use, how to configure maven, etc.) Thanks for your help! It works, just a little question: I had to do this: $ mvn install:install-file -DgroupId=org.xwiki.platform -DartifactId=xwiki-core-component -Dversion=1.8-SNAPSHOT -Dpackaging=jar -Dfile=./xwiki-core-component-1.8.jar Because for mvn install it said that he need that dependency. So I've installed it as it suggested (from WEB-INF/lib). Is it okay? Or is it a recommended way how to install dependencies? This should not be necessary. Have you setup your settings.xml config file as detailed on the building guide ? Maven should download automatically that dependency from here http://maven.xwiki.org/snapshots/org/xwiki/platform/xwiki-core-component/1.8-SNAPSHOT/ (Should I?) and how can I include it in my XWiki installation? just drop the built jar in the WEB-INF/lib/ folder of your XWiki application Thanks. Is XWiki realize the components in run-time? Or I have to restart it? (I've copied it and started, so I don't know if it works if I just copy it while XWiki still running.) You have to restart. Jerome. that should be all. Thank for your fast help! Jerome So for example: I've make a HelloWorld component and I would like to use it in a wiki page like this (using groovy): % def greeter = com.xpn.xwiki.web.Utils.getComponent(org.xwiki.component.HelloWorld.ROLE); println greeter.sayHello(); % How can I do that? What are the missing steps I need to do (currently i'm having a directory with tree like this: pom.xml src/main/java/org/xwiki/component/HelloWorld.java src/main/java/org/xwiki/component/internal/DefaultHelloWorld.java src/main/resources/META-INF/plexus/components.xml src/test/java/org/xwiki/component/HelloWorldTest.java )? Thanks for reading and your guidance! -- Regards, Bálint Kriván ___ 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Code Box Content Changes in WYSIWYG Editor
Hi, I can see you're using the XWiki 1.0 syntax and thus the old WYSIWYG editor which is no longer maintained. What you describe could be a bug in the old editor. I tried your example in the new editor using the {{code}} macro and it works fine. Maybe you can switch to XWiki 2.0 syntax and try the new WYSIWYG editor. Thanks, Marius Andreas Schaefer wrote: Hi I normally edit my pages in the Wiki editor but to add links or images I use the WYSIWYG editor. Now having a code box like this: {code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; } {code} will turn into this: {code} - (BOOL) textFieldShouldReturn: (UITextField #42;) textField { #91;self greetMe:nil#93;; return YES; } {code} Any ideas why and how to workaround this problem. Cheers Andreas Schaefer CEO of Madplanet.com Inc. andreas.schae...@madplanet.com schaef...@me.com ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] XWiki Enterprise 1.8.1 and XWiki Enterprise Manager 1.6.1 Released
The XWiki development team is pleased to announce the release of XWiki Enterprise 1.8.1 and XWiki Enterprise Manager 1.6.1. Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download This release contains 118 big bugfixes and enhancements. Most of the modifications are targeting the general replacement of old 1.0 code and content by 2.0 syntax and architecture and the stabilization of XWiki. Summary of changes since XWiki Enterprise 1.8 : * Many WYSIWYG bugs fixed and improvements * Many 2.0 syntax bugs fixed * Many 1.0 to 2.0 conversion bugs fixed * Several XMLRPC and REST, LDAP, Office importer and Wiki Explorer bugs fixed and improvements * Many bug fixes in many other places For more information see the Release notes at: http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise181 and http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXEM161 Thanks -The XWiki dev team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Code Box Content Changes in WYSIWYG Editor
Well, the XWiki 1.0 syntax came up by default so I ran with that so far. Unfortunately I was not able to find the Wiki Syntax Help site for 2.0 and I did not want to go without. Any ideas where I can find that? Thanks Andreas Schaefer CEO of Madplanet.com Inc. andreas.schae...@madplanet.com schaef...@me.com On Apr 12, 2009, at 6:09 AM, Marius Dumitru Florea (via Nabble) wrote: Hi, I can see you're using the XWiki 1.0 syntax and thus the old WYSIWYG editor which is no longer maintained. What you describe could be a bug in the old editor. I tried your example in the new editor using the {{code}} macro and it works fine. Maybe you can switch to XWiki 2.0 syntax and try the new WYSIWYG editor. Thanks, Marius Andreas Schaefer wrote: Hi I normally edit my pages in the Wiki editor but to add links or images I use the WYSIWYG editor. Now having a code box like this: {code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; } {code} will turn into this: {code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; } {code} Any ideas why and how to workaround this problem. Cheers Andreas Schaefer CEO of Madplanet.com Inc. andreas.schae...@... schaef...@... ___ users mailing list us...@... http://lists.xwiki.org/mailman/listinfo/users This email is a reply to your post @ http://n2.nabble.com/Code-Box-Content-Changes-in-WYSIWYG-Editor-tp2622964p2624091.html You can reply by email or by visting the link above. -- View this message in context: http://n2.nabble.com/Code-Box-Content-Changes-in-WYSIWYG-Editor-tp2622964p2626538.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Code Box Content Changes in WYSIWYG Editor
I found these: http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax http://code.xwiki.org/xwiki/bin/view/Macros/ Hope this helps, Marius Andreas Schaefer wrote: Well, the XWiki 1.0 syntax came up by default so I ran with that so far. Unfortunately I was not able to find the Wiki Syntax Help site for 2.0 and I did not want to go without. Any ideas where I can find that? Thanks Andreas Schaefer CEO of Madplanet.com Inc. andreas.schae...@madplanet.com schaef...@me.com On Apr 12, 2009, at 6:09 AM, Marius Dumitru Florea (via Nabble) wrote: Hi, I can see you're using the XWiki 1.0 syntax and thus the old WYSIWYG editor which is no longer maintained. What you describe could be a bug in the old editor. I tried your example in the new editor using the {{code}} macro and it works fine. Maybe you can switch to XWiki 2.0 syntax and try the new WYSIWYG editor. Thanks, Marius Andreas Schaefer wrote: Hi I normally edit my pages in the Wiki editor but to add links or images I use the WYSIWYG editor. Now having a code box like this: {code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; } {code} will turn into this: {code} - (BOOL) textFieldShouldReturn: (UITextField *) textField { [self greetMe:nil]; return YES; } {code} Any ideas why and how to workaround this problem. Cheers Andreas Schaefer CEO of Madplanet.com Inc. andreas.schae...@... schaef...@... ___ users mailing list us...@... http://lists.xwiki.org/mailman/listinfo/users This email is a reply to your post @ http://n2.nabble.com/Code-Box-Content-Changes-in-WYSIWYG-Editor-tp2622964p2624091.html You can reply by email or by visting the link above. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users