Re: [xwiki-users] No users and groups
Hi, and sorry to bother you, but i really would need help on this. I cannot manage rights without groups and users and i cannot figure out why i cannot see them. upgraded to 1.8.4 imported the default xar, cleaned the browser cache - users and groups in the main wiki are ok no users and groups are displayed in the virtual wiki firebug shows 2 errors (e.g. calling rights management): missing ; before statement [Break on this error] var denymessage = Sie sind ge...zen?.replace('__right__', self.right);\n Javascript.jtp (Linie 12) displayUsersAndGroups is not defined [Break on this error] var ta = new ASSTable(?xpage=ge...upstable, displayUsersAndGroups, true); It would be great if somebody could give me a hint. Thanks hel. - h...@hel.at -- View this message in context: http://n2.nabble.com/No-users-and-groups-tp2938876p2968617.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] No users and groups
Hi, The displayUsersAndGroups is a function defined in webapps\xwiki\resources\js\xwiki\usersandgroups\usersandgroups.js Does your file exists ? Also in the source of the users management page, do you have this somewhere : script type='text/javascript' src='/xwiki/bin/skin/resources/js/xwiki/usersandgroups/usersandgroups.js' The first error can't be a translation error with the content of your string where you have to replace part of text ? Do you have the same error in english ? -Message d'origine- De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de hel-o Envoyé : lundi 25 mai 2009 10:54 À : users@xwiki.org Objet : Re: [xwiki-users] No users and groups Hi, and sorry to bother you, but i really would need help on this. I cannot manage rights without groups and users and i cannot figure out why i cannot see them. upgraded to 1.8.4 imported the default xar, cleaned the browser cache - users and groups in the main wiki are ok no users and groups are displayed in the virtual wiki firebug shows 2 errors (e.g. calling rights management): missing ; before statement [Break on this error] var denymessage = Sie sind ge...zen?.replace('__right__', self.right);\n Javascript.jtp (Linie 12) displayUsersAndGroups is not defined [Break on this error] var ta = new ASSTable(?xpage=ge...upstable, displayUsersAndGroups, true); It would be great if somebody could give me a hint. Thanks hel. - h...@hel.at -- View this message in context: http://n2.nabble.com/No-users-and-groups-tp2938876p2968617.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 This e-mail is intended only for the addressee named above. It does not bind the sender, except in the case of an existing written convention with the addressee. This e-mail may contain material that is confidential and privileged for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender and delete all copies. While reasonable precautions have been taken to ensure that this e-mail and any attachments are free from any computer virus or similar defect, no liability will be accepted in that respect. Anyone accessing this e-mail must take their own precautions as to security and virus protection. KBL European Private Bankers S.A., 43 boulevard Royal L-2955 Luxembourg, R.C.S. Luxembourg B 6395, T (352) 47 97 1 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] mktree application
Hello, Dilipkumar Jadhav wrote: Hello everyone, I just finished updating an application 'mktree' and have created the application page in the codes section. This is just a simple script borrowed from the work of Matt Kruse and converts basic ul-li list to collapsible tree. I had to devise this since we are using this tree to drill-down to possible resolutions based on error symptoms. The helpdesk support has to chose between various nodes of the tree to reach a possible resolution. Of all the trees I saw, this was by far the simplest of all easiest to implement. With a size of 4kb it was definitely not going to affect performance of the pages. This is my first ever contribution to the XWiki project. It is a very small contribution but I hope someone somewhere will find it useful. A big thanks to Jerome for his hint which helped me finish this application. Also, I have some questions about developing applications. 1. What is the recommended size of the application .xar file? Is there a upper limit / benchmark beyond which the performance of the page in a wiki will be affected? No there's not really an upper limit. Just the import of the XAR can be limiting, since XWiki right now has to load the whole XAR in memory. Even this should not be a problem if you stay reasonable (for example, the skin editor application http://code.xwiki.org/xwiki/bin/view/Applications/SkinEditorApplication embeds the dojo library + bespin code). Couples of mega bytes is definitely not an issue. 2. What is the general opinion about plugins/applications developed in JQuery or some other javascript library? I've been through a page on XWiki.org which rationalizes the use of javascript libraries. However, is JQuery completely off the list? Will this javascript library cause conflict with prototype script.aculo.us? I've implemented a tooltip plugin based on the updated jTip library. I was really interested in contributing the tooltip application to XWiki. Applications (or front-end extensions/plugins), are free to use any library they need. The good practice is to use the bundled libraries (prototype, scriptaculous, etc) versus non-bundled libraries (jquery, dojo or other) as much as possible, since it makes the pages smaller and it does not force the client to load a new file. Of course, this is not always possible, for example when you want to use a tiers library which itself is based on a non-bundled library like jquery (like in your case). If you have to do this, right now there are too approaches : either you include the library as a JSX (so paste the code in a JSX object in a wiki document), or you attach the .js file to the document and inject the needed script tag from a JSX extension that makes use of this library (something like : document.write('script src=$doc.getAttachmentURL(mylib.js) ...') ; which is the preferred way for big libraries, since JSX objects have a limit in terms of content size. In the future we will probably makes it easier for extensions to require external libraries from attachments, with a new SX plugin for example. The conclusion is that it's better to use prototype if your need is a framework for DOM manipulations, AJAX, OOP-style javascript, etc; because it's bundled already in every page XWiki renders ; and use other libraries only when you really need it, of course taking care they are compatible with the ones bundled by default (there should be no problem with jQuery as far as I know, and there is non for sure using dojo). Hope this helps. Jerome Thank you all. ___ 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] No users and groups
hel-o wrote: Hi, updated now to 1.8.4 restarted all, imported the 1.8.4 default.xar and cleand the browser cache. Still no users and no groups. Also tried another browser - no users no groups I noticed that you're using German, so I just tried that. It seems that there's an error in the translation, which breaks the javascript. Please put the attached file in resources/js/xwiki/usersandgroups/ and refresh the browser cache. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] No users and groups
Hi Sergiu, On Mon, May 25, 2009 at 7:50 AM, Sergiu Dumitriu ser...@xwiki.com wrote: hel-o wrote: Hi, updated now to 1.8.4 restarted all, imported the 1.8.4 default.xar and cleand the browser cache. Still no users and no groups. Also tried another browser - no users no groups I noticed that you're using German, so I just tried that. It seems that there's an error in the translation, which breaks the javascript. Please put the attached file in resources/js/xwiki/usersandgroups/ and refresh the browser cache. Attached files are stripped off XWiki mailing-list emails. Maybe you should send the file directly to h...@hel.at . Guillaume -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] No users and groups
Guillaume Lerouge wrote: Hi Sergiu, On Mon, May 25, 2009 at 7:50 AM, Sergiu Dumitriu ser...@xwiki.com wrote: hel-o wrote: Hi, updated now to 1.8.4 restarted all, imported the 1.8.4 default.xar and cleand the browser cache. Still no users and no groups. Also tried another browser - no users no groups I noticed that you're using German, so I just tried that. It seems that there's an error in the translation, which breaks the javascript. Please put the attached file in resources/js/xwiki/usersandgroups/ and refresh the browser cache. Attached files are stripped off XWiki mailing-list emails. Maybe you should send the file directly to h...@hel.at . Hm, I thought that only large files are stripped. Anyway, in the meantime I committed it on trunk, so please download it from http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/standard/src/main/webapp/resources/js/xwiki/usersandgroups/usersandgroups.js -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] No users and groups
Great it works! Thank you very much. hel. - h...@hel.at -- View this message in context: http://n2.nabble.com/No-users-and-groups-tp2938876p2969047.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
[xwiki-users] hasAccessRights() doesn't work properly
Hey everyone, We upgraded from XWiki 1.2 to XWiki 1.7.2, and exported all created pages and spaces from the old to the new version. We created new users and groups in the new version, using the user names and group names that had been used for the old version. Customizing the 'Quick Links' panel using code like #if ($xwiki.hasAccessLevel(view,space name.WebHome)) * link #end works for the old settings (i.e. space rights for users and groups). However, it doesn't work for newly created spaces. It doesn't work for newly created groups either. Nonetheless, it works when setting admin space rights for the newly created groups and/or spaces. Since this seems to be a bug, I created the Jira issue XE-440. I still would like to hear, if some of you have a similar problem. Best regards, Sascha ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Create document from many template
Hello. I finally have time and little resource to experiment with XWiki. Meanwhile, I have installed a new version of XWiki Enterprise: 1.8.17790 I try with the suggest of Sergiu. I made two page, one for a To do template and one for Project template. Then I made the redirect page, starting from an empty page and pasting the code that Sergiu wrote: $response.sendRedirect($xwiki.getURL($request.documentName, 'edit', template=${request.templateName})) The problem is that when I select Save View the wiki tell me This document already exist I don't undertand where is the problem. Thank you Roberto Sergiu Dumitriu-2 wrote: roberto colferai wrote: Sergiu Dumitriu-2 wrote: roberto colferai wrote: cut We're planning to do something like this in the future by default, but not very soon. A way to implement this now is to: - create the templates as wiki documents - create a redirector page that accepts two URL parameters, document name and template name, and does a redirect with: $response.sendRedirect($xwiki.getURL($request.documentName, 'edit', template=${request.templateName})) - create a panel with a text input field for the document name and a select (drop down) list for choosing from the templates, which submits these fields to the redirector page from above The above redirect works like this: - 'edit' will display the document in edit mode (works well for unstructured wiki documents); you can use 'inline' for structured (form-based) documents. - the template= parameter instructs the wiki to use another document as a template for the edited document. Sergiu, thank you for your answer and for your speed! I have IT experienc from twenty years ago but only in mainframe host system (ibm-cobol-db2) and I have some difficult to understand completely how you tell. I try to show you if I understand. 1) create the templates making one wiki-page for every templates (es. pag template1, template2 etc) 2) create a redirect page that, I think, every users never see but works hide. How can I make it? How can I make a page that accepts two URL parameters? 3) create a panel (Is like create a page? I think no but I don't know exatly what is panel in this world). Is possibile make it with normal edit-mode or is an activity for developer? In this case what kind of skill I must find? Java programmer is enough? -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users - ICT Area-responsable Assimoco spa Segrate, MI Italy -- View this message in context: http://n2.nabble.com/Create-document-from-many-template-tp2424398p2970057.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
[xwiki-users] [ANN] XWiki Enterprise 1.9 Release Candidate 1 Released
The XWiki development team is pleased to announce the release of XWiki Enterprise 1.9 Release Candidate 1. Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download First release candidate of the XWiki Enterprise 1.9 version. Main changes: * The default syntax is now 'xwiki/2.0' which means that new documents will be created with this syntax. Note that XWiki Enterprise documents (user profile, recent changes, etc) are still using the xwiki/1.0 syntax, they will be migrated during the 2.0 release cycle. * WYSIWYG Improvements ** Ability to insert level 6 headings ** Allow adding and editing lists in table cells ** Allow adding complex content inside list items * Important Bugs fixed ** Many WYSIWYG bugs fixed ** Many 2.0 syntax bugs fixed ** Many 1.0 to 2.0 conversion bugs fixed For more information see the Release notes at: http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise19RC1 Note that general goals for XWiki Enterprise 1.9 are: * Finish/stabilize/document new rendering * Finish/stabilize/document new wysiwyg editor * Finish/stabilize/document office importer + doc splitter/management * Finish/stabilize/document webdav * Finish/stabilize/document REST support * Usability improvements Thanks, The XWiki dev team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [ANN] XWiki Enterprise 1.9 Release Candidate 1 Released
On May 25, 2009, at 7:13 PM, Jean-Vincent Drean wrote: The XWiki development team is pleased to announce the release of XWiki Enterprise 1.9 Release Candidate 1. Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download First release candidate of the XWiki Enterprise 1.9 version. Main changes: Note that these are changes over 1.9M2 and not over 1.8.x. Thanks -Vincent * The default syntax is now 'xwiki/2.0' which means that new documents will be created with this syntax. Note that XWiki Enterprise documents (user profile, recent changes, etc) are still using the xwiki/1.0 syntax, they will be migrated during the 2.0 release cycle. * WYSIWYG Improvements ** Ability to insert level 6 headings ** Allow adding and editing lists in table cells ** Allow adding complex content inside list items * Important Bugs fixed ** Many WYSIWYG bugs fixed ** Many 2.0 syntax bugs fixed ** Many 1.0 to 2.0 conversion bugs fixed For more information see the Release notes at: http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise19RC1 Note that general goals for XWiki Enterprise 1.9 are: * Finish/stabilize/document new rendering * Finish/stabilize/document new wysiwyg editor * Finish/stabilize/document office importer + doc splitter/management * Finish/stabilize/document webdav * Finish/stabilize/document REST support * Usability improvements Thanks, The XWiki dev team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Velocity templates for skin
Hi, First: could you validate my understanding. When a document url is requested XWIKI will get the document from the database and start applying velocity-templates. It will look, according to skin-setting, down a template path and if a programmer did not put a modified template on the path it will end in the templates directory (xwiki/templates) A programmer can put a template on the path by putting a rightly-named *.vm file in a directory in skins directory (xwiki/skins/toucan or xwiki/skins/#) (where # is the name of the skin) A programmer can also put a template as a object in a xwiki-page of class XWiki.XWikiSkins You create a TextArea with the same name as the original template, without the vm extension The mother(s) of all templates are view.vm, edit.vm, preview.vm and save.vm? xwiki will always only apply the first found template of a certain name, meaning if you put some script in header object in the xwiki page of your skin it will ignore the header.vm files on the file system? This would imply that you best first copy the orginal script into the text-area field and then make your changes? Would this practise not lead to missing out on features of newer xwiki versions, assuming that the template-scripts are also improved? Or is the programmer forced to, with each upgrade, examine his/her scripts against the scripts in the templates directory? What is best practise here? Second; If you put also graphical elements, CSS scripts in the XWiki.XWikiSkins page of your skin how does xwiki know if it is a velocity-script, a css or a graphical element? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Need help with input text
Hi! I'm new to xwiki and I want to create a page that has a text box and a button that when I press it i want to display under the button the text introduced in the text box. How can I do this using groovy? Thanks!! -- View this message in context: http://n2.nabble.com/Need-help-with-input-text-tp2971708p2971708.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] Need help with input text
Hi Roxana, RoxanaM wrote: Hi! I'm new to xwiki and I want to create a page that has a text box and a button that when I press it i want to display under the button the text introduced in the text box. How can I do this using groovy? Why do you want groovy for that? you want it to happen 1) asynchronous or 2) you want the page to reload and show your text? in XWiki documents in syntax 1.0 (which is active by default in latest stable 1.8.4), you can write html and scripting languages (groovy, velocity) directly in your wiki documents (edit - wiki). So for 1) just edit a document, type your html (and javascript), save and view. For more advanced things in javascript, you should use a JSX extension. For 2) edit a document, type your html (a form submitting an input value to the current page) and then type a little groovy below: % println request.inputName; % should do it! Note that you could do the same in velocity too. Happy hacking, Anca Luca Thanks!! ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] ERROR [BaseCollection] Failed to get class [internal] from wiki [...]
joyfan wrote: When upgraded my Xwiki to version1.8.1,I got the problem too. The error message like this: [Statistics storing daemon] ERROR objects.BaseCollection - Failed to get class [internal] from wiki [xwiki] I am using the 1.8.2 version, i am also getting this error in the log, any solutions is this a problem? -- View this message in context: http://n2.nabble.com/ERROR--BaseCollection--Failed-to-get-class--internal--from-wiki--...--tp2632698p2971942.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