/modules/apps/polls/polls-web/src/main/resources/META-INF/resources/init.jsp

https://github.com/ambrinchaudhary/liferay-portal · JavaServer Pages · 100 lines · 76 code · 11 blank · 13 comment · 0 complexity · 4a2297bdc5adf20573dc00eb53b825b3 MD5 · raw file

  1. <%--
  2. /**
  3. * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
  4. *
  5. * This library is free software; you can redistribute it and/or modify it under
  6. * the terms of the GNU Lesser General Public License as published by the Free
  7. * Software Foundation; either version 2.1 of the License, or (at your option)
  8. * any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful, but WITHOUT
  11. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  12. * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  13. * details.
  14. */
  15. --%>
  16. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  17. <%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
  18. <%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %><%@
  19. taglib uri="http://liferay.com/tld/clay" prefix="clay" %><%@
  20. taglib uri="http://liferay.com/tld/frontend" prefix="liferay-frontend" %><%@
  21. taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %><%@
  22. taglib uri="http://liferay.com/tld/security" prefix="liferay-security" %><%@
  23. taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %><%@
  24. taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %><%@
  25. taglib uri="http://liferay.com/tld/util" prefix="liferay-util" %>
  26. <%@ page import="com.liferay.petra.string.CharPool" %><%@
  27. page import="com.liferay.petra.string.StringPool" %><%@
  28. page import="com.liferay.polls.constants.PollsPortletKeys" %><%@
  29. page import="com.liferay.polls.constants.PollsWebKeys" %><%@
  30. page import="com.liferay.polls.exception.DuplicateVoteException" %><%@
  31. page import="com.liferay.polls.exception.NoSuchChoiceException" %><%@
  32. page import="com.liferay.polls.exception.NoSuchQuestionException" %><%@
  33. page import="com.liferay.polls.exception.QuestionChoiceException" %><%@
  34. page import="com.liferay.polls.exception.QuestionDescriptionException" %><%@
  35. page import="com.liferay.polls.exception.QuestionExpirationDateException" %><%@
  36. page import="com.liferay.polls.exception.QuestionTitleException" %><%@
  37. page import="com.liferay.polls.model.PollsChoice" %><%@
  38. page import="com.liferay.polls.model.PollsQuestion" %><%@
  39. page import="com.liferay.polls.model.PollsVote" %><%@
  40. page import="com.liferay.polls.service.PollsChoiceLocalServiceUtil" %><%@
  41. page import="com.liferay.polls.service.PollsQuestionLocalServiceUtil" %><%@
  42. page import="com.liferay.polls.service.PollsVoteLocalServiceUtil" %><%@
  43. page import="com.liferay.polls.web.internal.portlet.action.EditQuestionMVCActionCommand" %><%@
  44. page import="com.liferay.polls.web.internal.portlet.display.context.PollsDisplayContext" %><%@
  45. page import="com.liferay.polls.web.internal.portlet.util.PollsUtil" %><%@
  46. page import="com.liferay.polls.web.internal.security.permission.resource.PollsPermission" %><%@
  47. page import="com.liferay.polls.web.internal.security.permission.resource.PollsQuestionPermission" %><%@
  48. page import="com.liferay.portal.kernel.bean.BeanParamUtil" %><%@
  49. page import="com.liferay.portal.kernel.dao.search.SearchContainer" %><%@
  50. page import="com.liferay.portal.kernel.exception.PortalException" %><%@
  51. page import="com.liferay.portal.kernel.language.LanguageUtil" %><%@
  52. page import="com.liferay.portal.kernel.model.Portlet" %><%@
  53. page import="com.liferay.portal.kernel.model.User" %><%@
  54. page import="com.liferay.portal.kernel.portlet.LiferayWindowState" %><%@
  55. page import="com.liferay.portal.kernel.security.permission.ActionKeys" %><%@
  56. page import="com.liferay.portal.kernel.security.permission.ResourceActionsUtil" %><%@
  57. page import="com.liferay.portal.kernel.service.PortletLocalServiceUtil" %><%@
  58. page import="com.liferay.portal.kernel.service.UserLocalServiceUtil" %><%@
  59. page import="com.liferay.portal.kernel.service.permission.PortletPermissionUtil" %><%@
  60. page import="com.liferay.portal.kernel.util.Constants" %><%@
  61. page import="com.liferay.portal.kernel.util.FastDateFormatFactoryUtil" %><%@
  62. page import="com.liferay.portal.kernel.util.GetterUtil" %><%@
  63. page import="com.liferay.portal.kernel.util.HtmlUtil" %><%@
  64. page import="com.liferay.portal.kernel.util.ListUtil" %><%@
  65. page import="com.liferay.portal.kernel.util.LocaleUtil" %><%@
  66. page import="com.liferay.portal.kernel.util.LocalizationUtil" %><%@
  67. page import="com.liferay.portal.kernel.util.ParamUtil" %><%@
  68. page import="com.liferay.portal.kernel.util.PortalUtil" %><%@
  69. page import="com.liferay.portal.kernel.util.StringUtil" %><%@
  70. page import="com.liferay.portal.kernel.util.TextFormatter" %><%@
  71. page import="com.liferay.portal.kernel.util.WebKeys" %><%@
  72. page import="com.liferay.taglib.search.ResultRow" %>
  73. <%@ page import="java.text.Format" %><%@
  74. page import="java.text.NumberFormat" %>
  75. <%@ page import="java.util.ArrayList" %><%@
  76. page import="java.util.Date" %><%@
  77. page import="java.util.List" %><%@
  78. page import="java.util.Locale" %><%@
  79. page import="java.util.Map" %>
  80. <%@ page import="javax.portlet.PortletRequest" %><%@
  81. page import="javax.portlet.PortletURL" %><%@
  82. page import="javax.portlet.ResourceURL" %><%@
  83. page import="javax.portlet.WindowState" %>
  84. <liferay-frontend:defineObjects />
  85. <liferay-theme:defineObjects />
  86. <portlet:defineObjects />
  87. <%
  88. Format dateFormatDateTime = FastDateFormatFactoryUtil.getDateTime(locale, timeZone);
  89. %>