Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
A J
How can I increase the size of the username ?
September 5, 2012 2:50 AM
Answer

A J

Rank: Junior Member

Posts: 91

Join Date: September 19, 2011

Recent Posts

Liferay allows a max of 75 characters size for firstname+lastname. How can I increase this size manually?
David H Nebinger
RE: How can I increase the size of the username ?
September 5, 2012 5:08 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 8438

Join Date: September 1, 2006

Recent Posts

Liferay will create the table during first launch and possible updates. You can alter the column size after that w/o too much worry from the database side, but there may be validation logic within Liferay that you may need to override via a hook or EXT plugin.
Christianto Sahat
RE: How can I increase the size of the username ?
September 5, 2012 9:11 AM
Answer

Christianto Sahat

Rank: Regular Member

Posts: 175

Join Date: September 24, 2007

Recent Posts

David H Nebinger:
Liferay will create the table during first launch and possible updates. You can alter the column size after that w/o too much worry from the database side, but there may be validation logic within Liferay that you may need to override via a hook or EXT plugin.


As an addition to David's answer above, check UserLocalServiceImpl class. It has method called validateFullName, which in turn delegate the validation to DefaultFullNameValidator class. Inside that class, there's no validation, only return true. Apply to Liferay 6.0.6
A J
RE: How can I increase the size of the username ?
September 7, 2012 2:22 AM
Answer

A J

Rank: Junior Member

Posts: 91

Join Date: September 19, 2011

Recent Posts

Thank you
Hitoshi Ozawa
RE: How can I increase the size of the username ?
September 9, 2012 3:55 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7952

Join Date: March 23, 2010

Recent Posts

Be sure to backup when doing a upgrade because your patched database may cause problem during the upgrade. I don't think liferay.com will support this if you do too much direct changes to the database tables.
Mazhar Alam
RE: How can I increase the size of the username ?
September 10, 2012 4:36 AM
Answer

Mazhar Alam

Rank: Regular Member

Posts: 188

Join Date: November 25, 2011

Recent Posts

Is it possible to increase the size of the username??
emoticon
Hitoshi Ozawa
RE: How can I increase the size of the username ?
September 10, 2012 4:11 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7952

Join Date: March 23, 2010

Recent Posts

Method suggested by David should work, but the proper way is to modify liferay and rebuild. I think the setting was in the hint file.