Forums de discussion

Calendar customization

Praveenraj S, modifié il y a 6 années.

Calendar customization

Junior Member Publications: 28 Date d'inscription: 20/07/16 Publications récentes
I want to customize the Calendar portlet so i download calendar portlet source code in github then deploy the portlet in my eclipse IDE its show error like following but i use 6.2 ce liferay and downloaded calendar portlet is 6.2.x version

deploy:
[javac] Compiling 4 source files to /home/liferay172/Documents/liferay-plugins-sdk-6.2/portlets/calendar-portlet/docroot/WEB-INF/classes
[javac] ----------
[javac] 1. ERROR in /home/liferay172/Documents/liferay-plugins-sdk-6.2/portlets/calendar-portlet/docroot/WEB-INF/src/com/liferay/calendar/asset/CalendarBookingAssetRendererFactory.java (at line 104)
[javac] public boolean hasAddPermission(
[javac] PermissionChecker permissionChecker, long groupId, long classTypeId)
[javac] throws Exception {
[javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[javac] The method hasAddPermission(PermissionChecker, long, long) of type CalendarBookingAssetRendererFactory must override or implement a supertype method
[javac] ----------
[javac] ----------
[javac] 2. ERROR in /home/liferay172/Documents/liferay-plugins-sdk-6.2/portlets/calendar-portlet/docroot/WEB-INF/src/com/liferay/calendar/hook/upgrade/v1_0_2/UpgradePortletPreferences.java (at line 68)
[javac] ArrayUtil.replace(
[javac] ^^^^^^^^^
[javac] ArrayUtil cannot be resolved
[javac] ----------
[javac] ----------
[javac] 3. ERROR in /home/liferay172/Documents/liferay-plugins-sdk-6.2/portlets/calendar-portlet/docroot/WEB-INF/src/com/liferay/calendar/lar/CalendarBookingStagedModelDataHandler.java (at line 214)
[javac] if (ListUtil.isNotEmpty(mbMessageElements)) {
[javac] ^^^^^^^^
[javac] ListUtil cannot be resolved
[javac] ----------
[javac] ----------
[javac] 4. ERROR in /home/liferay172/Documents/liferay-plugins-sdk-6.2/portlets/calendar-portlet/docroot/WEB-INF/src/com/liferay/calendar/util/CalendarBookingIndexer.java (at line 80)
[javac] Field.ENTRY_CLASS_NAME, CalendarBooking.class.getName());
[javac] ^^^^^
[javac] Field cannot be resolved to a variable
[javac] ----------
[javac] 5. ERROR in /home/liferay172/Documents/liferay-plugins-sdk-6.2/portlets/calendar-portlet/docroot/WEB-INF/src/com/liferay/calendar/util/CalendarBookingIndexer.java (at line 106)
[javac] Field.CLASS_NAME_ID, PortalUtil.getClassNameId(Calendar.class));
[javac] ^^^^^
[javac] Field cannot be resolved to a variable
[javac] ----------
[javac] 6. ERROR in /home/liferay172/Documents/liferay-plugins-sdk-6.2/portlets/calendar-portlet/docroot/WEB-INF/src/com/liferay/calendar/util/CalendarBookingIndexer.java (at line 107)
[javac] document.addKeyword(Field.CLASS_PK, calendarBooking.getCalendarId());
[javac] ^^^^^
[javac] Field cannot be resolved to a variable
[javac] ----------
[javac] 7. ERROR in /home/liferay172/Documents/liferay-plugins-sdk-6.2/portlets/calendar-portlet/docroot/WEB-INF/src/com/liferay/calendar/util/CalendarBookingIndexer.java (at line 125)
[javac] document.addText(Field.DESCRIPTION, description);
[javac] ^^^^^
[javac] Field cannot be resolved to a variable
[javac] ----------
[javac] 8. ERROR in /home/liferay172/Documents/liferay-plugins-sdk-6.2/portlets/calendar-portlet/docroot/WEB-INF/src/com/liferay/calendar/util/CalendarBookingIndexer.java (at line 129)
[javac] Field.DESCRIPTION.concat(StringPool.UNDERLINE).concat(
[javac] ^^^^^
[javac] Field cannot be resolved
[javac] ----------
[javac] 9. ERROR in /home/liferay172/Documents/liferay-plugins-sdk-6.2/portlets/calendar-portlet/docroot/WEB-INF/src/com/liferay/calendar/util/CalendarBookingIndexer.java (at line 134)
[javac] document.addKeyword(Field.RELATED_ENTRY, true);
[javac] ^^^^^
[javac] Field cannot be resolved to a variable
[javac] ----------
[javac] 10. ERROR in /home/liferay172/Documents/liferay-plugins-sdk-6.2/portlets/calendar-portlet/docroot/WEB-INF/src/com/liferay/calendar/util/CalendarBookingIndexer.java (at line 146)
[javac] document.addText(Field.TITLE, title);
[javac] ^^^^^
[javac] Field cannot be resolved to a variable
[javac] ----------
[javac] 11. ERROR in /home/liferay172/Documents/liferay-plugins-sdk-6.2/portlets/calendar-portlet/docroot/WEB-INF/src/com/liferay/calendar/util/CalendarBookingIndexer.java (at line 150)
[javac] Field.TITLE.concat(StringPool.UNDERLINE).concat(
[javac] ^^^^^
[javac] Field cannot be resolved
[javac] ----------
[javac] 12. ERROR in /home/liferay172/Documents/liferay-plugins-sdk-6.2/portlets/calendar-portlet/docroot/WEB-INF/src/com/liferay/calendar/util/CalendarBookingIndexer.java (at line 156)
[javac] Field.VIEW_ACTION_ID, ActionKeys.VIEW_BOOKING_DETAILS);
[javac] ^^^^^
[javac] Field cannot be resolved to a variable
[javac] ----------
[javac] 13. ERROR in /home/liferay172/Documents/liferay-plugins-sdk-6.2/portlets/calendar-portlet/docroot/WEB-INF/src/com/liferay/calendar/util/CalendarBookingIndexer.java (at line 180)
[javac] String calendarBookingId = document.get(Field.ENTRY_CLASS_PK);
[javac] ^^^^^
[javac] Field cannot be resolved to a variable
[javac] ----------
[javac] 14. ERROR in /home/liferay172/Documents/liferay-plugins-sdk-6.2/portlets/calendar-portlet/docroot/WEB-INF/src/com/liferay/calendar/util/CalendarBookingIndexer.java (at line 186)
[javac] document, Field.TITLE, Field.DESCRIPTION);
[javac] ^^^^^
[javac] Field cannot be resolved to a variable
[javac] ----------
[javac] 15. ERROR in /home/liferay172/Documents/liferay-plugins-sdk-6.2/portlets/calendar-portlet/docroot/WEB-INF/src/com/liferay/calendar/util/CalendarBookingIndexer.java (at line 186)
[javac] document, Field.TITLE, Field.DESCRIPTION);
[javac] ^^^^^
[javac] Field cannot be resolved to a variable
[javac] ----------
[javac] 15 problems (15 errors)

BUILD FAILED
/home/liferay172/Documents/liferay-plugins-sdk-6.2/build-common.xml:2881: The following error occurred while executing this line:
: The following error occurred while executing this line:
/home/liferay172/Documents/liferay-plugins-sdk-6.2/build-common.xml:1364: The following error occurred while executing this line:
: The following error occurred while executing this line:
/home/liferay172/Documents/liferay-plugins-sdk-6.2/build-common.xml:2597: The following error occurred while executing this line:
: The following error occurred while executing this line:
/home/liferay172/Documents/liferay-plugins-sdk-6.2/build-common.xml:591: The following error occurred while executing this line:
/home/liferay172/Documents/liferay-plugins-sdk-6.2/build-common.xml:1026: The following error occurred while executing this line:
/home/liferay172/Documents/liferay-plugins-sdk-6.2/build-common.xml:899: Compile failed; see the compiler error output for details.

Total time: 5 seconds

so how to solve it.
i tried all the suggesstion in Message Board , and also i coundn't find the import "com.liferay.compat.portal.kernel.util.ArrayUti"
thumbnail
Alessandro Lachina, modifié il y a 6 années.

RE: Calendar customization

New Member Publications: 24 Date d'inscription: 12/06/13 Publications récentes
Any news?We have same problem.
Thanks
thumbnail
Byran Zaugg, modifié il y a 6 années.

RE: Calendar customization

Expert Publications: 252 Date d'inscription: 06/04/12 Publications récentes
This forum is for the AlloyUI JavaScript framework. You'd get better support from the Liferay Portal Development forum.