Foros de discusión

import com.liferay.portal.security.auth.FullNameGeneratorFactory cannot be

thumbnail
Ravi Darji, modificado hace 8 años.

import com.liferay.portal.security.auth.FullNameGeneratorFactory cannot be

Junior Member Mensajes: 56 Fecha de incorporación: 14/05/14 Mensajes recientes
Hi All,

Can any one know how to resolve this error in custom portlet ?

[javac] Compiling 2 source files to D:\Ravi\Liferay\liferay-plugins-sdk-6.2-ce-ga4\portlets\project-porduct-portlet\docroot\WEB-INF\classes
[javac] ----------
[javac] 1. ERROR in D:\Ravi\Liferay\liferay-plugins-sdk-6.2-ce-ga4\portlets\project-porduct-portlet\docroot\WEB-INF\src\com\project\portlet\OrderPortlet.java (at line 80)
[javac] import com.liferay.portal.security.auth.FullNameGeneratorFactory;
[javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[javac] The import com.liferay.portal.security.auth.FullNameGeneratorFactory cannot be resolved
[javac] ----------
[javac] 2. ERROR in D:\Ravi\Liferay\liferay-plugins-sdk-6.2-ce-ga4\portlets\project-porduct-portlet\docroot\WEB-INF\src\com\project\portlet\OrderPortlet.java (at line 918)
[javac] FullNameGeneratorFactory.getInstance();


I tried to include below lines of code.
String fullName = fullNameGenerator.getFullName(
firstName, middleName, lastName);
String greeting = LanguageUtil.format(
user.getLocale(), "welcome-x", " " + fullName, false);


Thanks & Regards,
Ravi Darji
thumbnail
David H Nebinger, modificado hace 8 años.

RE: import com.liferay.portal.security.auth.FullNameGeneratorFactory cannot

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
It's an internal class that you don't have direct access to.

You can try hitting it via reflection, but that's not a lot of fun I can assure you.
thumbnail
Ravi Darji, modificado hace 8 años.

RE: import com.liferay.portal.security.auth.FullNameGeneratorFactory cannot

Junior Member Mensajes: 56 Fecha de incorporación: 14/05/14 Mensajes recientes
Thanks Davidemoticon
Stephen Serafin, modificado hace 4 años.

RE: import com.liferay.portal.security.auth.FullNameGeneratorFactory cannot

New Member Mensaje: 1 Fecha de incorporación: 28/03/20 Mensajes recientes
Ravi Darji:

Hi All,

Can any one know how to resolve this error in custom portlet ?

[javac] Compiling 2 source files to D:\Ravi\Liferay\liferay-plugins-sdk-6.2-ce-ga4\portlets\project-porduct-portlet\docroot\WEB-INF\classes
[javac] ----------
[javac] 1. ERROR in D:\Ravi\Liferay\liferay-plugins-sdk-6.2-ce-ga4\portlets\project-porduct-portlet\docroot\WEB-INF\src\com\project\portlet\OrderPortlet.java (at line 80)
[javac] import com.liferay.portal.security.auth.FullNameGeneratorFactory;
[javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[javac] The import com.liferay.portal.security.auth.FullNameGeneratorFactory cannot be resolved
[javac] ----------
[javac] 2. ERROR in D:\Ravi\Liferay\liferay-plugins-sdk-6.2-ce-ga4\portlets\project-porduct-portlet\docroot\WEB-INF\src\com\project\portlet\OrderPortlet.java (at line 918)
[javac] FullNameGeneratorFactory.getInstance();

TellPopeyes
I tried to include below lines of code.
String fullName = fullNameGenerator.getFullName(
firstName, middleName, lastName);
String greeting = LanguageUtil.format(
user.getLocale(), "welcome-x", " " + fullName, false);


Thanks & Regards,
Ravi Darji
yes sir your link has many interesting things i find it usefull for many reasons .
and thank you for solving errorif any new error  occurs then will contact yoiu help.