[xwiki-users] Alphabetical sorting of spaces in the panel

2010-08-26 Thread Dalluege, Pierre (extern)
Hi Xwiki users,

I am pretty sure, there is already a solution out there...

There is a panel availiable for showing the spaces for navigation purposes. Due 
to right management issues I have a few and I need to sort them correctly. Is 
there anyone who sorted this (or other) lists within velocity?

Best regards, thank you very much,

Pierre

Pierre Dalluege
Externer Dienstleister
Product Management
Business Products
Products  Innovation

Deutsche Telekom AG
T-Online-Allee 1
D-64295 Darmstadt 
Tel +49 6151 680 - 4054
E-Mail p.dallu...@external.telekom.de
http://www.telekom.de

Aufsichtsrat: Prof. Dr. Ulrich Lehner (Vorsitzender)
Vorstand: René Obermann (Vorsitzender), Hamid Akhavan, Dr. Manfred Balz, 
Reinhard Clemens, Niek Jan van Damme, Timotheus Höttges, Guido Kerkhoff, Thomas 
Sattelberger
Handelsregister: Amtsgericht Bonn HRB 6794, Sitz der Gesellschaft: Bonn
WEEE-Reg.-Nr.: DE50478376

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und löschen Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail und der 
darin enthaltenen Informationen ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this email in error) please notify 
the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the material in this e-mail is strictly forbidden.
 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] How can I get the name and last name from the current user in a different variables?

2010-08-26 Thread Francis Abrante
How can I get the name and last name from the current user in a different 
variables? 
Until now I obtain the current user with $context.user but I need the name 
separated from the last name.
Thanks



  
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] How can I get the name and last name from the current user in a different variables?

2010-08-26 Thread abrante

How can I get the name and last name from the current user in a different
variables?
Until now I obtain the current user with $context.user but I need the name
separated from the last name.
Thanks

-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/How-can-I-get-the-name-and-last-name-from-the-current-user-in-a-different-variables-tp5464729p5464729.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] Alphabetical sorting of spaces in the panel

2010-08-26 Thread Marius Dumitru Florea
Hi Pierre,

On 08/26/2010 11:23 AM, Dalluege, Pierre (extern) wrote:
 Hi Xwiki users,

 I am pretty sure, there is already a solution out there...

 There is a panel availiable for showing the spaces for navigation purposes. 
 Due to right management issues I have a few and I need to sort them 
 correctly. Is there anyone who sorted this (or other) lists within velocity?

If that panel uses named queries then you're facing this issue 
http://jira.xwiki.org/jira/browse/XWIKI-5394 . Try to update your 
{{queries.hbm.xml}} and see if the problem is fixed.

Alternatively you can edit the panel and use 
http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/com/xpn/xwiki/platform/xwiki-core/2.4/xwiki-core-2.4-javadoc.jar/!/com/xpn/xwiki/api/Util.html#sort%28java.util.List%29
 
to sort the list of spaces.

Hope this helps,
Marius


 Best regards, thank you very much,

 Pierre

 Pierre Dalluege
 Externer Dienstleister
 Product Management
 Business Products
 Products  Innovation

 Deutsche Telekom AG
 T-Online-Allee 1
 D-64295 Darmstadt
 Tel +49 6151 680 - 4054
 E-Mail p.dallu...@external.telekom.de
 http://www.telekom.de

 Aufsichtsrat: Prof. Dr. Ulrich Lehner (Vorsitzender)
 Vorstand: René Obermann (Vorsitzender), Hamid Akhavan, Dr. Manfred Balz, 
 Reinhard Clemens, Niek Jan van Damme, Timotheus Höttges, Guido Kerkhoff, 
 Thomas Sattelberger
 Handelsregister: Amtsgericht Bonn HRB 6794, Sitz der Gesellschaft: Bonn
 WEEE-Reg.-Nr.: DE50478376

 Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
 Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
 irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
 löschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
 Weitergabe dieser Mail und der darin enthaltenen Informationen ist nicht 
 gestattet.

 This e-mail may contain confidential and/or privileged information. If you 
 are not the intended recipient (or have received this email in error) please 
 notify the sender immediately and delete this e-mail. Any unauthorized 
 copying, disclosure or distribution of the material in this e-mail is 
 strictly forbidden.

 ___
 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] How can I get the name and last name from the current user in a different variables?

2010-08-26 Thread Marius Dumitru Florea
If you edit your profile with the object editor you'll see there is an 
object of class XWiki.XWikiUsers attach to it. Use 
http://platform.xwiki.org/xwiki/bin/view/DevGuide/APIGuide#HAccessobjectsinapage
 
to access that object and to query its properties.

Hope this helps,
Marius

On 08/26/2010 11:30 AM, abrante wrote:

 How can I get the name and last name from the current user in a different
 variables?
 Until now I obtain the current user with $context.user but I need the name
 separated from the last name.
 Thanks

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Alphabetical sorting of spaces in the panel

2010-08-26 Thread Guillaume Lerouge
Hi Pierre,

On Thu, Aug 26, 2010 at 10:23, Dalluege, Pierre (extern) 
p.dallu...@external.telekom.de wrote:

 Hi Xwiki users,

 I am pretty sure, there is already a solution out there...

 There is a panel availiable for showing the spaces for navigation purposes.
 Due to right management issues I have a few and I need to sort them
 correctly. Is there anyone who sorted this (or other) lists within velocity?


Which DB are you using? Normally spaces should be ordered by alphabetical
order if your DB indexes have been created properly in MySQL.

Guillaume


 Best regards, thank you very much,

 Pierre

 Pierre Dalluege
 Externer Dienstleister
 Product Management
 Business Products
 Products  Innovation

 Deutsche Telekom AG
 T-Online-Allee 1
 D-64295 Darmstadt
 Tel +49 6151 680 - 4054
 E-Mail p.dallu...@external.telekom.de
 http://www.telekom.de

 Aufsichtsrat: Prof. Dr. Ulrich Lehner (Vorsitzender)
 Vorstand: René Obermann (Vorsitzender), Hamid Akhavan, Dr. Manfred Balz,
 Reinhard Clemens, Niek Jan van Damme, Timotheus Höttges, Guido Kerkhoff,
 Thomas Sattelberger
 Handelsregister: Amtsgericht Bonn HRB 6794, Sitz der Gesellschaft: Bonn
 WEEE-Reg.-Nr.: DE50478376

 Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
 Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
 irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
 löschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
 Weitergabe dieser Mail und der darin enthaltenen Informationen ist nicht
 gestattet.

 This e-mail may contain confidential and/or privileged information. If you
 are not the intended recipient (or have received this email in error) please
 notify the sender immediately and delete this e-mail. Any unauthorized
 copying, disclosure or distribution of the material in this e-mail is
 strictly forbidden.

 ___
 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] Showing edit comments in Recent Changes (Xwiki 2.3.1)

2010-08-26 Thread West, Graeme
Hello all,

I was wondering if there's a way to change the Velocity macro which generates 
the Recent Changes list on my Xwiki's dashboard to show the comment associated 
with a change, underneath each change? I found this thread [1] but it doesn't 
seem to be relevant to more recent versions of Xwiki.

Ideally I'd like to display the summary of each edit inside the 'div 
class=xitemcontainer tag, or somewhere similar.

Thanks in advance,

Graeme


[1] http://xwiki.475771.n2.nabble.com/Comments-are-minor-edits-td2683633.html

Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education's Widening Participation Initiative of the Year 
2009 and Herald Society's Education Initiative of the Year 2009
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How can I get the name and last name from the current user in a different variables?

2010-08-26 Thread Elena-Oana Tabaranu
Hi,

You can use the following code snippet:
$!xwiki.getUserName($context.user, $first_name, false)
$!xwiki.getUserName($context.user, $last_name, false)
I hope this helps,
Oana

abrante wrote:
 How can I get the name and last name from the current user in a different
 variables?
 Until now I obtain the current user with $context.user but I need the name
 separated from the last name.
 Thanks

   

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How can I get the name and last name from the current user in a different variables?

2010-08-26 Thread Guillaume Lerouge
Hi,

On Thu, Aug 26, 2010 at 10:28, Francis Abrante fabra...@yahoo.com wrote:

 How can I get the name and last name from the current user in a different
 variables?
 Until now I obtain the current user with $context.user but I need the name
 separated from the last name.
 Thanks


You could try:

{{velocity}}
#set($firstName =
$xwiki.getDocument($context.user).getObject('XWiki.XWikiUsers').getProperty('first_name').getValue())
#set($lastName
= 
$xwiki.getDocument($context.user).getObject('XWiki.XWikiUsers').getProperty('last_name').getValue())

$firstName $lastName
{{/velocity}}

Please document this in a FAQ on XWiki.org if it works for you ;-)

Guillaume

___
 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] How can I get the name and last name from the current user in a different variables?

2010-08-26 Thread abrante

Thanks a lot, works perfect :)
-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/How-can-I-get-the-name-and-last-name-from-the-current-user-in-a-different-variables-tp5464729p5464941.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] Permissions for the bottom Xwiki panel??

2010-08-26 Thread Kaya Saman
Thanks very much Caleb and Raluca,

I used the:

#if($displayDocExtra  !$isGuest)
   #template(docextra.vm)
   div class=clearfloats/div
#end

method in 'docextra.vm' template and now things are working fine :-)

Also the link that was given states how to change the background image 
as well which am going to attempt soon

Thanks so much for this :-)

Best regards,

Kaya



On 25/08/2010 11:07, Raluca Stavro wrote:
 Hi,

 You can also modify 'view.vm' template and test if the current user is
 guest or not before displaying 'docextra.vm'.

 For the toucan skin, this is what you should do in 'view.vm' template:

 ...
 #if($displayDocExtra  !$isGuest)
#template(docextra.vm)
div class=clearfloats/div
 #end
 ...

 For more information about how to modify a template see
 http://platform.xwiki.org/xwiki/bin/view/DevGuide/Skins#HD.OverridingtheSkincomponents
 .

 Raluca.

 On Wed, Aug 25, 2010 at 10:17 AM, Caleb James DeLisle
 calebdeli...@lavabit.com  wrote:

 Making the panel not show up for guests means editing a template file which
 shows that panel. If I recall, the template you need to edit is called 
 docextra.vm
 and you'll want to make an if statement something like this.

 #if($xcontext.getUser() != 'XWiki.XWikiGuest')

 ## the part which makes the panels show

 #end


 Caleb


 Kaya Saman wrote:
  
 Hi,

 is there a way to give user permissions on the bottom panel that has:

 Annotations
 Comments
 Attachments
 History
 Information

 in it??

 What I'd like to do is give read/write permissions to all signed up
 users and then deny all other guest users access so that if a guest
 goes into the site the panel doesn't even show?

 I'm using the toucan skin and have found this which is too dramatic as
 it disables the the comments panel altogether:

 http://www.mail-archive.com/users@xwiki.org/msg00864.html

 I tried searching under the Panels home but couldn't find any names
 correlating to the above panel. also.

 Thanks,

 Kaya
 ___
 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


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How do I for receive a very long string as a parameter in a funtion?

2010-08-26 Thread Raluca Stavro
Hello,

What you should do is to escape the URL using the Velocity escaping
tool (http://velocity.apache.org/tools/devel/generic/EscapeTool.html)
:

#set($url = 
$escapetool.url('http://testforge.int-evry.fr/d2r-server/snorql/?query=%09%09SELECT+DISTINCT++%3Fname+%3Fpackage+WHERE+%7B%0D%0A%09%09%7B%0D%0A%09%09%3Freported+bom%3AhasReporter+%3Freporter.%0D%0A%09%09%3Freporter+sioc%3Aname+%3Fname.+FILTER+%28%3Fname+%3D+%22Berger%22%29%0D%0A%09%09%3Freported+dc%3Atitle+%3Ftitle.%0D%0A%09%09%3Freported+bom%3AisIssueOf+%3Fspackage.%0D%0A%09%09%3Fspackage+helios_bt%3Aname+%3Fpackage.+%0D%0A%09%09%7D+UNION+%7B%0D%0A%09%09%3Fmonitored+bom%3AhasCCPerson+%3Fperson.%0D%0A%09%09%3Fperson+foaf%3Aname+%3Fname.+FILTER+%28%3Fname+%3D+%22Berger%22%29%0D%0A%09%09%3Freporter+sioc%3Aaccount_of+%3Fperson.%0D%0A%09%09%3Fmonitored+dc%3Atitle+%3Ftitle.%0D%0A%09%09%3Fmonitored+bom%3AisIssueOf+%3Fspackage.%0D%0A%09%09%3Fmonitored+vocabProperty%3Apackage+%3Fpackage.+%0D%0A%09%09%7D%0D%0A%09%09%7D+ORDER+BY+%3Fpackage%0D%0A'))

a href=javascript:newPopup('$url');Bugs reported/a

Raluca.


On Thu, Aug 26, 2010 at 1:27 PM, Francis Abrante fabra...@yahoo.com wrote:

 I am trying to receive a very long url (1000 characters) as a parameter for 
 use it in a pop up window, but fail  if I try with a shortest one work fine. 
 Thanks in advance


 script type=text/javascript
 function newPopup(url) {
 popupWindow = 
 window.open(url,'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,tool
  bar=yes,menubar=no,location=no,directories=no,status=yes')
 }
 /script

 a href= JavaScript:newPopup 
 ('http://testforge.int-evry.fr/d2r-server/snorql/?query=%09%09SELECT+DISTINCT++%3Fname+%3Fpackage+WHERE+%7B%0D%0A%09%09%7B%0D%0A%09%09%3Freported+bom%3AhasReporter+%3Freporter.%0D%0A%09%09%3Freporter+sioc%3Aname+%3Fname.+FILTER+%28%3Fname+%3D+%22Berger%22%29%0D%0A%09%09%3Freported+dc%3Atitle+%3Ftitle.%0D%0A%09%09%3Freported+bom%3AisIssueOf+%3Fspackage.%0D%0A%09%09%3Fspackage+helios_bt%3Aname+%3Fpackage.+%0D%0A%09%09%7D+UNION+%7B%0D%0A%09%09%3Fmonitored+bom%3AhasCCPerson+%3Fperson.%0D%0A%09%09%3Fperson+foaf%3Aname+%3Fname.+FILTER+%28%3Fname+%3D+%22Berger%22%29%0D%0A%09%09%3Freporter+sioc%3Aaccount_of+%3Fperson.%0D%0A%09%09%3Fmonitored+dc%3Atitle+%3Ftitle.%0D%0A%09%09%3Fmonitored+bom%3AisIssueOf+%3Fspackage.%0D%0A%09%09%3Fmonitored+vocabProperty%3Apackage+%3Fpackage.+%0D%0A%09%09%7D%0D%0A%09%09%7D+ORDER+BY+%3Fpackage%0D%0A');Bugs
  reported/a






 ___
 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] Enable wysiwyg editor for dynamically createdobjects

2010-08-26 Thread Matthew Hildebrand
Marius,

Thanks for the info. That got me pointed in the correct direction, and
I've got the wysiwyg editor appearing. However there are a few weirdness
issues...

1) Some of the CSS stylings are not being attached to the wysiwyg editor
(the specific one that I have noticed is that tables no longer have
shaded backgrounds on the headers or borders (using Colibri skin).

2) If I switch to source view and add some text, I am then unable to
switch back to wysiwyg view. I get a cross-domain error: 
(NS_ERROR_DOM_BAD_URI): Access to restricted URI denied
 code: 1012
 INDEX_SIZE_ERR: 1
 DOMSTRING_SIZE_ERR: 2
 HIERARCHY_REQUEST_ERR: 3
 WRONG_DOCUMENT_ERR: 4
 INVALID_CHARACTER_ERR: 5
 NO_DATA_ALLOWED_ERR: 6
 NO_MODIFICATION_ALLOWED_ERR: 7
 NOT_FOUND_ERR: 8
 NOT_SUPPORTED_ERR: 9
 INUSE_ATTRIBUTE_ERR: 10
 INVALID_STATE_ERR: 11
 SYNTAX_ERR: 12
 INVALID_MODIFICATION_ERR: 13
 NAMESPACE_ERR: 14
 INVALID_ACCESS_ERR: 15
 VALIDATION_ERR: 16
 TYPE_MISMATCH_ERR: 17
 result: 2152924148
 filename:
http://10.10.2.233/xwiki/resources/js/xwiki/wysiwyg/xwe/5CB5F3FEC4B215F8
61E3FFD8E65C48BA.cache.html
 lineNumber: 4689
 columnNumber: 0
 inner: null
 data: null
http://10.10.2.233/xwiki/resources/js/xwiki/wysiwyg/xwe/5CB5F3FEC4B215F8
61E3FFD8E65C48BA.cache.html
Line 2791


Here is my code:
 function makeWysiwyg(targetArea, randomKey) {
cacheId = 'wysiwygCache' + randomKey;
$('cacheArea').insert({ bottom: 'input type=hidden id=' +
cacheId + '' });
(function() { 
  var field = document.getElementById(targetArea);
  if (field) { 
// Hide the element that will be wrapped by the WYSIWYG
editor.
field.style.visibility = 'hidden'; 
// Show the loading animation. 
var loading = document.createElement('span'); 
loading.className = 'loading'; 
loading.style.display = 'block'; 
loading.style.position = 'absolute'; 
loading.style.width = field.offsetWidth + 'px'; 
loading.style.height = field.offsetHeight + 'px'; 
field.parentNode.insertBefore(loading, field); 
// Remove the loading animation after the WYSIWYG module has
been loaded. 
Wysiwyg.onModuleLoad(function() { 
  loading.parentNode.removeChild(loading); 
});
  }
}).call();

var wysiwygConfigNew = {
  hookId: targetArea,
  cacheId: cacheId,
  syntax: 'xwiki/2.0',
  displayTabs: true,
  defaultEditor: wysiwyg,
  inputURL: 'javascript:parent.document.getElementById(' +
targetArea + ').value',
  plugins: 'submit line separator embed text valign list indent
history format symbol link image table macro import',
  menu: 'link image table macro import',
  toolbar: 'bold italic underline strikethrough | subscript
superscript | unorderedlist orderedlist | outdent indent | undo redo |
format | hr symbol',
  wiki: 'xwiki',
  space: 'ProjectManagement',
  page: 'UseCase-ForgotPassword',
  openofficeServerConnected:'false',
  debug: 'false'
  };

Wysiwyg.onModuleLoad(function() {
  new WysiwygEditor(wysiwygConfigNew);
  wysiwygConfigjRSc = undefined;
});
  }



I am calling the makeWysiwyg function at the end of my
Ajax.Request:onSuccess function, and passing a string representing the
textarea that was just inserted and a random key generated via
$util.generateRandomString(4) by the Ajax requested page (returned as a
JSON object).

Thanks!

--Matthew



-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf
Of Marius Dumitru Florea
Sent: Tuesday, August 24, 2010 3:34 AM
To: users@xwiki.org
Subject: Re: [xwiki-users] Enable wysiwyg editor for dynamically
createdobjects

Hi Matthew,

On 08/13/2010 02:24 AM, Matthew Hildebrand wrote:
 So I'm dynamically adding objects to the page via an ajax request (get

 the document, create a new object of the specified type, return the 
 object in edit mode as a JSON object). What I am not able to figure 
 out, is how to get my textareas to become wysiwyg enabled (when
appropriate).
 I don't quite understand how the javascript that replaces the text 
 areas is being generated, let alone if there is a way to get it 
 generated (and returned as part of my JSON object).

You can load the WYSIWYG editor on demand for a specific property by
following
http://code.xwiki.org/xwiki/bin/view/Modules/WysiwygEditorModule#HLoadon
demandandshowsourcetext
. Let me know if you have more questions.

Hope this helps,
Marius




 Any help would be greatly appreciated!



 Thanks,



 --Matthew

 ___
 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] Calendar Application on XE 2.4 - i18n characters and others

2010-08-26 Thread Ramon Gomes Brandão - SERINT
Hi Raluca/Lockie/XWiki Users, 

I have 3 questions:

1) How can I convert the XWiki.CalendarSheet from XWiki 1.0 to XWiki 2.0 
syntax, so I can use Annotations on it?

2) Why international characters (like ç, õ, ã) are not displayed correctly only 
on the event title, both on the events list as well as on the calendar itself? 
They display correctly on all the other fields (description, category etc).

3) I would like to have independent Calendars for different Spaces. Only 
creating a page and including XWiki.CalendarSheet on it (like 
Main.EventCalendar) is the solution? Can I use Rights Access on this page as 
well?

Thanks for all the help so far. 
Regards,  


Ramon Gomes Brandão

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] TAG Application with international characters

2010-08-26 Thread Ramon Gomes Brandão - SERINT
Hi,

 

In the Tags Application at the bottom of Main.WebHome, all the assigned tags 
are displayed correctly with international characters (like í, ç, ô á etc). 
When Ii click on one of them to present the tagged documents, the tag appears 
all messed up due to the intl chars (such as Atilde; in place of í etc). 
Clicking on it, a Failed to execute velocity macro message appears (maybe due 
to the invalid URL, example for the word índio  
.../Main/Tags?do=viewTagtag=%C3%83%C2%ADndio).

 

How can I fix that?

 

Regards, 

 

Ramon Gomes Brandão

 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Could not initialize main XWiki context - Xwiki 2.4

2010-08-26 Thread Travis Riggs
I recently switched to a new server and upgraded to the Xwiki Enterprise
2.4.  I was able to get the installation working, but after an update to
Tomcat6 from the Ubuntu repository, Xwiki stopped working.  (I'm not
completely sure that the tomcat update was the problem)

I tried re-installing Xwiki using the same procedure as before
(http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HInstallingtheXWikiWARmanually)
 but it still doesn't work.  Tomcat works; at least the default test page.

So, I then tried reinstalling tomcat6.  Then I copied the previously
expanded xwiki WAR contents back into webapps.  Same thing.  Tomcat
appears to work just fine, but xwiki crashes.

Details about my setup:
Running Ubuntu 64-bit Lucid Lynx 10.04
Tomcat6.0.24
MySQL 5.1.41-3ubuntu12.6 (Ubuntu)

The error seems to be complaining about my hibernate file.  I have tried
following the instructions from the link above by just editing the xml
to match to lines in the instructions.  I have also tried uncommenting
the setup for MySQL in the hibernate file.  Both ways produce the same
results.

Can anyone help, please?  I'm pretty desperate.

Thanks,

travis

Here is my hibernate file:

?xml version='1.0' encoding='utf-8'?
!DOCTYPE hibernate-configuration PUBLIC -//Hibernate/Hibernate
Configuration DTD//EN
  http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd;
hibernate-configuration
  session-factory

!-- Please refer to the installation guide on

http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation for
configuring your
 database. You'll need to do 2 things:
 1) Copy your database driver JAR in WEB-INF/lib or in some
shared lib directory
 2) Uncomment the properties below for your specific DB (and
comment the default 
database configuration if it doesn't match your DB)
--

!-- Generic parameters common to all Databases --

property name=show_sqlfalse/property
property name=use_outer_jointrue/property

property name=dbcp.defaultAutoCommitfalse/property
property name=dbcp.maxActive50/property
property name=dbcp.maxIdle5/property
property name=dbcp.maxWait3/property
property name=dbcp.whenExhaustedAction1/property
property name=dbcp.ps.whenExhaustedAction1/property
property name=dbcp.ps.maxActive20/property
property name=dbcp.ps.maxWait12/property
property name=dbcp.ps.maxIdle20/property
!-- Without it, some queries fail in MS SQL. XWiki doesn't need
scrollable result sets, anyway. --
property name=jdbc.use_scrollable_resultsetfalse/property

!-- Configuration for the default database.
 Comment out this section and uncomment other sections below if
you want to use another database.
 Note that the database tables will be created automatically if
they don't already exist.
--
property
name=connection.urljdbc:myql://localhost/xwiki/property
property name=connection.usernamexwiki/property
property name=connection.passwordxwiki/property
property
name=connection.driver_classcom.mysql.jdbc.Driver/property
property
name=dialectorg.hibernate.dialect.MySQLDialect/property
property
name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property
property name=connection.pool_size2/property
property name=statement_cache.size2/property
mapping resource=xwiki.hbm.xml/
mapping resource=feeds.hbm.xml/
mapping resource=activitystream.hbm.xml/

!-- MySQL configuration.
 Uncomment if you want to use MySQL and comment out other
database configurations.
 We need to set the sql_mode to a less strict value, see
XWIKI-1945
property
name=connection.urljdbc:mysql://localhost/xwiki?useServerPrepStmts=falseamp;useUnicode=trueamp;characterEncoding=UTF-8amp;sessionVariables=sql_mode=''/property
property name=connection.usernamexwiki/property
property name=connection.passwordxwiki/property
property
name=connection.driver_classcom.mysql.jdbc.Driver/property
property
name=dialectorg.hibernate.dialect.MySQLDialect/property
property
name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property
property name=connection.pool_size2/property
property name=statement_cache.size2/property
mapping resource=xwiki.hbm.xml/
mapping resource=feeds.hbm.xml/
mapping resource=activitystream.hbm.xml/ --

!-- HSQLDB configuration.
 Uncomment if you want to use HSQLDB and comment out other
database configurations.
property
name=connection.urljdbc:hsqldb:file:/some/path/xwikidb;shutdown=true/property
property name=connection.usernamesa/property
property name=connection.password/property
property
name=connection.driver_classorg.hsqldb.jdbcDriver/property
property
name=dialectorg.hibernate.dialect.HSQLDialect/property
property
name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property
property 

[xwiki-users] RES: Could not initialize main XWiki context - Xwiki 2.4

2010-08-26 Thread Ramon Gomes Brandão - SERINT
Travis, 

It seems that your line in the default database config 

property
name=connection.urljdbc:myql://localhost/xwiki/property

is misspelled in the jdbc:myql part. Isn't it jdbc:mysql? That would 
justify the error in your Hibernate config file exception message.

Regards, 

Ramon Gomes Brandão

-Mensagem original-
De: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Em nome de Travis 
Riggs
Enviada em: quinta-feira, 26 de agosto de 2010 17:27
Para: users@xwiki.org
Assunto: [xwiki-users] Could not initialize main XWiki context - Xwiki 2.4

I recently switched to a new server and upgraded to the Xwiki Enterprise
2.4.  I was able to get the installation working, but after an update to
Tomcat6 from the Ubuntu repository, Xwiki stopped working.  (I'm not
completely sure that the tomcat update was the problem)

I tried re-installing Xwiki using the same procedure as before
(http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HInstallingtheXWikiWARmanually)
 but it still doesn't work.  Tomcat works; at least the default test page.

So, I then tried reinstalling tomcat6.  Then I copied the previously
expanded xwiki WAR contents back into webapps.  Same thing.  Tomcat
appears to work just fine, but xwiki crashes.

Details about my setup:
Running Ubuntu 64-bit Lucid Lynx 10.04
Tomcat6.0.24
MySQL 5.1.41-3ubuntu12.6 (Ubuntu)

The error seems to be complaining about my hibernate file.  I have tried
following the instructions from the link above by just editing the xml
to match to lines in the instructions.  I have also tried uncommenting
the setup for MySQL in the hibernate file.  Both ways produce the same
results.

Can anyone help, please?  I'm pretty desperate.

Thanks,

travis

Here is my hibernate file:

?xml version='1.0' encoding='utf-8'?
!DOCTYPE hibernate-configuration PUBLIC -//Hibernate/Hibernate
Configuration DTD//EN
  http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd;
hibernate-configuration
  session-factory

!-- Please refer to the installation guide on

http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation for
configuring your
 database. You'll need to do 2 things:
 1) Copy your database driver JAR in WEB-INF/lib or in some
shared lib directory
 2) Uncomment the properties below for your specific DB (and
comment the default 
database configuration if it doesn't match your DB)
--

!-- Generic parameters common to all Databases --

property name=show_sqlfalse/property
property name=use_outer_jointrue/property

property name=dbcp.defaultAutoCommitfalse/property
property name=dbcp.maxActive50/property
property name=dbcp.maxIdle5/property
property name=dbcp.maxWait3/property
property name=dbcp.whenExhaustedAction1/property
property name=dbcp.ps.whenExhaustedAction1/property
property name=dbcp.ps.maxActive20/property
property name=dbcp.ps.maxWait12/property
property name=dbcp.ps.maxIdle20/property
!-- Without it, some queries fail in MS SQL. XWiki doesn't need
scrollable result sets, anyway. --
property name=jdbc.use_scrollable_resultsetfalse/property

!-- Configuration for the default database.
 Comment out this section and uncomment other sections below if
you want to use another database.
 Note that the database tables will be created automatically if
they don't already exist.
--
property
name=connection.urljdbc:myql://localhost/xwiki/property
property name=connection.usernamexwiki/property
property name=connection.passwordxwiki/property
property
name=connection.driver_classcom.mysql.jdbc.Driver/property
property
name=dialectorg.hibernate.dialect.MySQLDialect/property
property
name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property
property name=connection.pool_size2/property
property name=statement_cache.size2/property
mapping resource=xwiki.hbm.xml/
mapping resource=feeds.hbm.xml/
mapping resource=activitystream.hbm.xml/

!-- MySQL configuration.
 Uncomment if you want to use MySQL and comment out other
database configurations.
 We need to set the sql_mode to a less strict value, see
XWIKI-1945
property
name=connection.urljdbc:mysql://localhost/xwiki?useServerPrepStmts=falseamp;useUnicode=trueamp;characterEncoding=UTF-8amp;sessionVariables=sql_mode=''/property
property name=connection.usernamexwiki/property
property name=connection.passwordxwiki/property
property
name=connection.driver_classcom.mysql.jdbc.Driver/property
property
name=dialectorg.hibernate.dialect.MySQLDialect/property
property
name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property
property name=connection.pool_size2/property
property name=statement_cache.size2/property
mapping resource=xwiki.hbm.xml/
mapping resource=feeds.hbm.xml/
mapping resource=activitystream.hbm.xml/ --

!--