Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Chintan Akhani
Unicode Characters in Screen Name?
20 de abril de 2012 0:33
Respuesta

Chintan Akhani

Ranking: Regular Member

Mensajes: 111

Fecha de incorporación: 13 de marzo de 2008

Mensajes recientes

Hi All,

We require to support unicode characters in screen Name, but it doesn't support OOTB. Please provide your views on how can we achieve this?

Thanks,
Chitnan
Sandeep Nair
RE: Unicode Characters in Screen Name?
20 de abril de 2012 2:02
Respuesta

Sandeep Nair

Ranking: Liferay Legend

Mensajes: 1692

Fecha de incorporación: 5 de noviembre de 2008

Mensajes recientes

One way can be create a new custom field for user which and use that as screen name instead of Liferay's screename.

Regards,
Sandeep
Vitaliy Koshelenko
RE: Unicode Characters in Screen Name?
25 de abril de 2012 8:23
Respuesta

Vitaliy Koshelenko

Ranking: Regular Member

Mensajes: 211

Fecha de incorporación: 25 de marzo de 2011

Mensajes recientes

You can create hook on UserLocalServiceImpl class - in validateScreenName method define your own logic of screen name validation.
Hitoshi Ozawa
RE: Unicode Characters in Screen Name?
26 de abril de 2012 6:48
Respuesta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensajes: 7990

Fecha de incorporación: 23 de marzo de 2010

Mensajes recientes

Screen name can be used instead of email address to login. Wonder if all will work properly with unicode screen name.
Sandeep Nair
RE: Unicode Characters in Screen Name?
27 de abril de 2012 5:26
Respuesta

Sandeep Nair

Ranking: Liferay Legend

Mensajes: 1692

Fecha de incorporación: 5 de noviembre de 2008

Mensajes recientes

Yes Hitoshi that was my concern. Especially the friendly url for user AFIK is created using screen name so it will definitely break that
Chintan Akhani
RE: Unicode Characters in Screen Name?
4 de mayo de 2012 21:54
Respuesta

Chintan Akhani

Ranking: Regular Member

Mensajes: 111

Fecha de incorporación: 13 de marzo de 2008

Mensajes recientes

Yes Sandip,

We tried to achieve this by modifying UserLocalServiceImpl class. After that it is allowing us to use unicode characters in screen name but in this case user's public and private page urls are not working, as it contains screen name in it. And not sure whether this change can make any impact on any other functionality or not.

Thanks,
Chintan
Hitoshi Ozawa
RE: Unicode Characters in Screen Name?
4 de mayo de 2012 23:45
Respuesta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensajes: 7990

Fecha de incorporación: 23 de marzo de 2010

Mensajes recientes

It will. Not recommended. Liferay was designed to work mainly with latin1 character set. It 18N supported is mainly just because it's written in Java.

I've developed a more I18N version but non-latin1 characters in screen name is not one of the modification I've implemented.
Chintan Akhani
RE: Unicode Characters in Screen Name?
5 de mayo de 2012 0:59
Respuesta

Chintan Akhani

Ranking: Regular Member

Mensajes: 111

Fecha de incorporación: 13 de marzo de 2008

Mensajes recientes

Thanks for your reply Hitoshi. So does it mean that we should not do this modification and do continue with Liferay's screenName validation process?
Hitoshi Ozawa
RE: Unicode Characters in Screen Name?
5 de mayo de 2012 6:16
Respuesta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensajes: 7990

Fecha de incorporación: 23 de marzo de 2010

Mensajes recientes

Yes. Unless you're willing to commit some time to it, I recommend not doing it. This is especially true when you think about versioning up. This is one of the core functionalities and if you modify it, you have to risk not being able to version up in the future. I limit myself to (1) wrapping features around liferay's core functionalities without changing them and to (2) replacing independent classes.

If you've seen liferay version up process at this site (www.liferay.com) , you'll know that it's not a very easy matter. If you've tried versioning up a site like this yourself, you'll know to keep modifications to a manageable level.

The other option is to request liferay.com to support it in the forum. If you can one of the liferay.com developer interested, they may support it.
http://www.liferay.com/community/forums/-/message_boards/category/1108052