掲示板
import com.liferay.portal.security.auth.FullNameGeneratorFactory cannot be
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
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
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.
You can try hitting it via reflection, but that's not a lot of fun I can assure you.
8年前 に Ravi Darji によって更新されました。
RE: import com.liferay.portal.security.auth.FullNameGeneratorFactory cannot
Junior Member 投稿: 56 参加年月日: 14/05/14 最新の投稿
Thanks David
4年前 に Stephen Serafin によって更新されました。
RE: import com.liferay.portal.security.auth.FullNameGeneratorFactory cannot
New Member 投稿: 1 参加年月日: 20/03/28 最新の投稿Ravi 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.