Forums de discussion
import com.liferay.portal.security.auth.FullNameGeneratorFactory cannot be
Ravi Darji, modifié il y a 8 années.
import com.liferay.portal.security.auth.FullNameGeneratorFactory cannot be
Junior Member Publications: 56 Date d'inscription: 14/05/14 Publications récentes
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
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
David H Nebinger, modifié il y a 8 années.
RE: import com.liferay.portal.security.auth.FullNameGeneratorFactory cannot
Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
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.
You can try hitting it via reflection, but that's not a lot of fun I can assure you.
Ravi Darji, modifié il y a 8 années.
RE: import com.liferay.portal.security.auth.FullNameGeneratorFactory cannot
Junior Member Publications: 56 Date d'inscription: 14/05/14 Publications récentes
Thanks David
Stephen Serafin, modifié il y a 4 années.
RE: import com.liferay.portal.security.auth.FullNameGeneratorFactory cannot
New Member Envoyer: 1 Date d'inscription: 28/03/20 Publications récentesRavi Darji:
yes sir your link has many interesting things i find it usefull for many reasons .
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
and thank you for solving errorif any new error occurs then will contact yoiu help.