Skip to content

Commit

Permalink
LPD-40036 Renaming to follow the same pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
antonio-ortega authored and brianchandotcom committed Dec 17, 2024
1 parent b35adb9 commit cd81c07
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
/**
* @author Antonio Ortega
*/
public class FrontendSampleDisplayContext {
public class SampleDisplayContext {

public FrontendSampleDisplayContext(
public SampleDisplayContext(
RenderRequest renderRequest, RenderResponse renderResponse) {

_renderRequest = renderRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
package com.liferay.frontend.taglib.sample.web.internal.portlet;

import com.liferay.frontend.taglib.sample.web.internal.constants.SamplePortletKeys;
import com.liferay.frontend.taglib.sample.web.internal.display.context.FrontendSampleDisplayContext;
import com.liferay.frontend.taglib.sample.web.internal.display.context.SampleDisplayContext;
import com.liferay.frontend.taglib.sample.web.internal.display.context.SearchIteratorDisplayContext;
import com.liferay.frontend.taglib.sample.web.internal.display.context.SearchPaginatorDisplayContext;
import com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet;
Expand Down Expand Up @@ -60,7 +60,7 @@ public void doDispatch(

renderRequest.setAttribute(
SamplePortletKeys.FRONTEND_SAMPLE_DISPLAY_CONTEXT,
new FrontendSampleDisplayContext(renderRequest, renderResponse));
new SampleDisplayContext(renderRequest, renderResponse));

renderRequest.setAttribute(
SamplePortletKeys.SEARCH_ITERATOR_DISPLAY_CONTEXT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %><%@
taglib uri="http://liferay.com/tld/util" prefix="liferay-util" %>

<%@ page import="com.liferay.frontend.taglib.sample.web.internal.constants.SamplePortletKeys" %><%@
page import="com.liferay.frontend.taglib.sample.web.internal.display.context.FrontendSampleDisplayContext" %><%@
page import="com.liferay.frontend.taglib.sample.web.internal.display.context.SampleDisplayContext" %><%@
page import="com.liferay.frontend.taglib.sample.web.internal.display.context.SearchIteratorDisplayContext" %><%@
page import="com.liferay.frontend.taglib.sample.web.internal.display.context.SearchPaginatorDisplayContext" %><%@
page import="com.liferay.portal.kernel.util.ParamUtil" %>
<%
FrontendSampleDisplayContext frontendSampleDisplayContext = (FrontendSampleDisplayContext)request.getAttribute(SamplePortletKeys.FRONTEND_SAMPLE_DISPLAY_CONTEXT);
SampleDisplayContext sampleDisplayContext = (SampleDisplayContext)request.getAttribute(SamplePortletKeys.FRONTEND_SAMPLE_DISPLAY_CONTEXT);
%>
<liferay-theme:defineObjects />
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final String navigation = ParamUtil.getString(request, "navigation", "search-ite
%>

<clay:navigation-bar
navigationItems="<%= frontendSampleDisplayContext.getNavigationItems() %>"
navigationItems="<%= sampleDisplayContext.getNavigationItems() %>"
/>

<c:choose>
Expand Down

0 comments on commit cd81c07

Please sign in to comment.