[xwiki-users] Add a form in a ClassSheet page
Hello all I've a problem with IE (tried with IE7 and IE8, same result) in adding in a ClassSheet page a really simple form like: 1 2 3 No problem in view mode, but when I go in inline mode then: - if I try to Save and Continue I got a error message like Error : 'this.form' is Null or not an object and debug target line in actionButton.js and I stay blocked on the page with Saving... animation. - if I click on Save and View, nothing happens (no error or anything else) but I stay also blocked on the page. I got none problem with FireFox... Has someone could help me? -- View this message in context: http://xwiki.475771.n2.nabble.com/Add-a-form-in-a-ClassSheet-page-tp6191537p6191537.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] Add a form in a ClassSheet page
For info, I tested with XWiki version 2.7 and 2.7.1 -- View this message in context: http://xwiki.475771.n2.nabble.com/Add-a-form-in-a-ClassSheet-page-tp6191537p6191572.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] Problem with tags and accented characters (XWiki 2.7)
Ooohh thanks a lot Sergiu :) Now it works perfectly. -- View this message in context: http://xwiki.475771.n2.nabble.com/Problem-with-tags-and-accented-characters-XWiki-2-7-tp6157230p6190552.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] Problem with tags and accented characters (XWiki 2.7)
Yes, all wikis here use UTF-8 encoding and I don't have any other problem with accented character in other section (like page creation or other), just when using the Tags[+] at page bottom. If I use the Tags gadget string, below the page syntax choice, in Edit mode for example, it works perfectly to create a Tag with correct accented character. -- View this message in context: http://xwiki.475771.n2.nabble.com/Problem-with-tags-and-accented-characters-XWiki-2-7-tp6157230p6160743.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] Problem with tags and accented characters (XWiki 2.7)
Hello, I've a problem with Tags and accented characters. When I use the Tags [+] at page bottom and I type a word with accented characters in the little window then add, I get this kind of result : vélocipède (for vélocipède and I can't delete or rename it after that and get error message. Does anyone have a solution? -- View this message in context: http://xwiki.475771.n2.nabble.com/Problem-with-tags-and-accented-characters-XWiki-2-7-tp6157230p6157230.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] How to connect XEclipse to a subwiki?
Hello, I just installed XEclipse to use it instead of XWiki editor to edit some page and velocity scripts. My problem is that I can't connect to a subwiki (or virtual wikis), I can only connect to my main XWiki. I don't know what is the url that I should use in server url and I didn't find any info about it, does anyone have a solution? At this time, I use: - http://localhost:8080/xwiki/xmlrpc/confluence; to connect to my main Wiki with XEclipse and I would like to connect to a virtual wiki (normal url to use with browser is normally: - http://localhost:8080/xwiki/wiki/etudes/; but doesn't work with XEclipse :( Regards, Pierre -- View this message in context: http://xwiki.475771.n2.nabble.com/How-to-connect-XEclipse-to-a-subwiki-tp6088017p6088017.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] Test in a virtual wiki if an user is in a group from main wiki
Hi, I would like to know if is it possible to know if an user is in a group with use of isUserInGroup but when I do the test in a virtual wiki and the group is in the main wiki? For example, in the main Wiki, I have the TestGroup01 with user Toto inside, then I would like to test in the virual wiki WikiTest So, I tried when the group is the virtual wiki (then it works) with: #if($xwiki.getUser().isUserInGroup('XWiki.testvirtualgroup')) ok #end but I can't do when the group is in the main wiki and dunno if it's possible or not. -- View this message in context: http://xwiki.475771.n2.nabble.com/Test-in-a-virtual-wiki-if-an-user-is-in-a-group-from-main-wiki-tp6003586p6003586.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] Test in a virtual wiki if an user is in a group from main wiki
Hi, Yes, I've tried it but doesn't working, result is false. -- View this message in context: http://xwiki.475771.n2.nabble.com/Test-in-a-virtual-wiki-if-an-user-is-in-a-group-from-main-wiki-tp6003586p6003835.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] To Change the default design for a specific wiki in a wiki farm?
Hello, I need to build a wiki with a different design, like some sites we can see at: - http://www.xwiki.org/xwiki/bin/view/References/ http://www.xwiki.org/xwiki/bin/view/References/ So I would like to know if it's possible to do it when we are running in a xwiki farm without to change the design from others existing wikis. If yes, do I need just create and use a new skin for this wiki or need to modify some templates (*.vm) or another thing ? -- View this message in context: http://xwiki.475771.n2.nabble.com/To-Change-the-default-design-for-a-specific-wiki-in-a-wiki-farm-tp5988935p5988935.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] XWiki Class and Javascript
Hi Sergiu I looked http://www.prototypejs.org/api/ajax/updater but really I don't really understand how it works and how to use in my case. Can you give me some real example from my own request to get how it works please? Thanks by advance, Pierre -- View this message in context: http://xwiki.475771.n2.nabble.com/XWiki-Class-and-Javascript-tp5770427p5776377.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] XWiki Class and Javascript
Hmmm ok I'll go to look for Ajax.request but is it possible to use this inside a class? To explains exactly that I need, when I'm on my previous class, now I can use my 2 lists with javascript to intercept change from first list, but I need now to save if I made changes (with clicking save and view at bottom of the page) else I keep the old values from the page. So, if I use this ajax method, I can do this? -- View this message in context: http://xwiki.475771.n2.nabble.com/XWiki-Class-and-Javascript-tp5770427p5774150.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] XWiki Class and Javascript
Hello, I've a problem to integrate and use Javascript in XWiki when I use Class and Sheet, in 'inline' mode. I've a second class, called IGCountriesClass, with 2 properties: a static list called countryzone (contains EU|AP|LA|NA|WW for Europe, Asian Pacific, North America, Latina America and WorldWide) and a string property called countryname for the country name. This Class is used to create some documents with format EU/France, EU/Espagne, EU/Italie, LA/Brasil, etc... to add more countries if needed. I've also another Class with 2 lists properties (called intergeozone and intergeocountry), first is static with EU|AP|LA|NA|WW like countryzone from first Class. The second list is a database list property which is filled with hibernate query select doc.name, doc.title from com.xpn.xwiki.doc.XWikiDocument as doc where doc.web = 'EtudeIGCountries' and doc.name != 'WebHome' order by doc.name Well, my problem, I need to control the filling of the second list with countries belonging to the selected zone in the first list. It's really so easy to do this with using javascript in normal web use, easy to with xwiki in 'view' mode but I've a problem to do it with javascript when I go to 'inline' mode. I use this code in the second Class Sheet, all is ok in 'view' mode but problem come when I go in 'inline' mode. I get problem with result from $obj.get(objectname) apparently. Could someone help me, please? :) [code] {{html}} !--script type=text/javascript//-- function initZone() { var selObj = document.getElementById('countriesSelect'); selObj.options[0] = new Option('---',''); selObj.selectedIndex = 0; } function changeListe() { choix = document.getElementById(zonesList).value populateCountries(choix) } function populateCountries(newzone) { var countObj = 0; var selObj = document.getElementById('countriesSelect'); for (var i = 0; i selObj.options.length; i++) { selObj.options[i] = null; } selObj.options.length=null; selObj.options[countObj++] = new Option('---',''); selObj.selectedIndex = 0; #set ($filespace = EtudeIGCountries) #set ($recherche = $xwiki.searchDocuments(where doc.name != 'WebHome' and doc.space = ? order by doc.name asc,[${filespace}])) #foreach($entry in $sorttool.sort($recherche)) #set ($tempdoc = ${entry}) #set ($doctemp = $xwiki.getDocument($tempdoc)) #set ($obj = $doctemp.getObject('EtudeCode.EtudeIGCountriesClass')) #set ($entryDoc = $xwiki.getDocument($entry)) #if($entryDoc.getObject('EtudeCode.EtudeIGCountriesClass')) if ((newzone == ${obj.get('countryzone')}) || (newzone == WW)) { selObj.options[countObj++] = new Option(${obj.get('countryname')}, ${obj.get('countryname')}); } #end #end } /script !--SELECT id=zonesList onchange=changeListe() name=zonesList//-- #foreach($listitem in $list) ## * value: $listitem displayed value: $map.get($listitem).getValue() #if ($map.get($listitem).getValue() == NA) OPTION value=$map.get($listitem).getValue() SELECTED$map.get($listitem).getValue()/OPTION #else OPTION value=$map.get($listitem).getValue()$map.get($listitem).getValue()/OPTION #end #end /SELECT SELECT id=countriesSelect name=countriesList/SELECT !--script type=text/javascriptinitZone();/script//-- {{/html}} [/code] -- View this message in context: http://xwiki.475771.n2.nabble.com/XWiki-Class-and-Javascript-tp5770427p5770427.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] Problem to give a name to a page with Class
Hello, Infos: I've a class to create some services (Prestations) with (at this time) 3 fields: name, town and country. They are created with a name for the doc, like MyService01, MyService02, etc (for the tests) Second part, there is another class used to evaluate each service. The system needed is to have a form of evaluation created each time that any person want make an evaluation for a service. So, I would like to create a system of pages called like MyService01_Eval_001, MyService01_Eval_002, MyService01_Eval_003, etc. for an evaluation of MyService01, and MyService02_Eval_001, MyService02_Eval_002, etc. for an evaluation of MyService02 for example. My problem, when I want create an evalutation, I get back the name of the service (spent in hidden parameter in the form) then I would like to use it in the code to create page and call the class template of the second class with the code: code #if($!request.xaction == 'createevaluationtype01') #if($docname != '' !$xwiki.exists($docname)) #if($!request.xaction == 'createevaluationtype01') $xwiki.copyDocument('EtudeCode.EtudeRatingType01Template', $docname) #set($etudeDoc= $xwiki.getDocument($docname)) $etudeDoc.setTitle(${title}) $etudeDoc.setParent($doc.getFullName()) $etudeDoc.save() $response.sendRedirect($etudeDoc.getURL('inline')) #end #end #end /code The $docname value has the good name when I display it, like for example MyService001_Eval_002, but when I click on button the page created is called WebHome_Eval_002, I can't keep the name of the service evaluated. Really, I don't understand why and I don't find any soluce to my problem since now almost 3 days and after tried several methods :( Someone could help me for this please ;) -- View this message in context: http://xwiki.475771.n2.nabble.com/Problem-to-give-a-name-to-a-page-with-Class-tp5667152p5667152.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] Problem to give a name to a page with Class
Marf ;) Forgot my last post, I just forgot to put a hidden field in my second form... -- View this message in context: http://xwiki.475771.n2.nabble.com/Problem-to-give-a-name-to-a-page-with-Class-tp5667152p5667191.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] Adding a global user in a local group?
Hi all Well, I'm working in a company and use a wikis farm and several sub-wikis. Currently we are using a 2.2.5 version of XWiki. We're using LDAP and Active Directory as well to recognize our users. The archi : Main Wiki (Wiki Administrator) with the normal starting groups like XWikiAllGroup, XWikiAdminGroup and one more called ldap_group. All users are in the ldap_group (new created or registered users as well). The problem that I've is to add a global user from Wiki farm in a created group in a local wiki. My Example, I created a wiki as WebServiceSupport (WSS) and a local group as SupportTeamGroup. I would like add some users from the global wiki in this local group, but: First, I can't have suggest when I try to type firsts letters from a global login. Second, I tried to add with type directly xwiki:XWiki.desired_loginname, so, apparently local wiki recognize real global user because it displays his real username but twice xwiki:xwiki: before the XWiki.User (like in my case Pierre DELISLE-EXTERIEUR (xwiki:xwiki:XWiki.pdelisle) and it doesn't work when I'm log with this account (I don't have the rights given to the local group) So, my question is: Is there a way to add a global user in a local group? Pierre -- View this message in context: http://xwiki.475771.n2.nabble.com/Adding-a-global-user-in-a-local-group-tp5653964p5653964.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] Adding a global user in a local group?
Thanks to you 2. So, the next plan for uswill be to upgrade to a more recent version :) Regards, Pierre -- View this message in context: http://xwiki.475771.n2.nabble.com/Adding-a-global-user-in-a-local-group-tp5653964p5654663.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] Office importer splitter problem
I have the same problem at home (2.3.2) and at work (2.2.5). When I try to import with splitter, seems to be work correctly, get the message: Conversion succeeded. You can view the result, or you can Go back to convert another document And if I click on result's link, I get the Notice: The requested document could not be found. You can edit this page to create it. But, the worst of that, there are some page created but not at all where they sould be created. Like 4System Requirements (the fourth title in heading 1 from my imported document!! ) which has replaced the Main.WebHome from My_WikiXWikiWebHome ! (but apparently, changed only the title of the page) But the worst again, the page from my main Wiki (in my farm) has changed has well with the same title but also the contents of the page from my imported document! -- View this message in context: http://xwiki.475771.n2.nabble.com/Office-importer-splitter-problem-tp5495614p5499944.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