掲示板

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

thumbnail
8年前 に Ravi Darji によって更新されました。

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

Junior Member 投稿: 56 参加年月日: 14/05/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
8年前 に David H Nebinger によって更新されました。

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

Liferay Legend 投稿: 14916 参加年月日: 06/09/02 最新の投稿
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
8年前 に Ravi Darji によって更新されました。

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

Junior Member 投稿: 56 参加年月日: 14/05/14 最新の投稿
Thanks Davidemoticon
4年前 に Stephen Serafin によって更新されました。

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

New Member 投稿: 1 参加年月日: 20/03/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.