留言板

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

thumbnail
Ravi Darji,修改在8 年前。

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

Junior Member 帖子: 56 加入日期: 14-5-14 最近的帖子
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,修改在8 年前。

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

Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
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,修改在8 年前。

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

Junior Member 帖子: 56 加入日期: 14-5-14 最近的帖子
Thanks Davidemoticon
Stephen Serafin,修改在4 年前。

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

New Member 发布: 1 加入日期: 20-3-28 最近的帖子
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.