Issue
-
Currently we trying to upgrade from Liferay 7.0 to 7.4u112. We are currently in progress of code upgrade of one of our custom modules. We are facing one issue in one of our importing statement as mentioned below:-
"The import com.liferay.frontend.taglib.servlet.taglib.ManagementBarFilterItem cannot be resolved".
Is "ManagementBarFilterItem" is deprecated in LR7.4? if yes please can I know what is the replacement.
Environment
- QR
Resolution
-
yes, it was removed in 7.4.13-u44 as part of LPS-162873
Everything was replaced withSearchContainerManagementToolbarDisplayContext
, which is not documented at the time of writing this article, but you can refer to code samples within Liferay code itself to figure out what to do with it. For example these commits might help:
https://github.com/liferay-page-management/liferay-portal/pull/9586/commits/e21e8d41320dfefdeb677e9ecbfd1807381e7fe4 (hereSearchContainerManagementToolbarDisplayContext
is used)
https://github.com/liferay-page-management/liferay-portal/pull/9586/commits/750ffe281bc241594224fd87d025e062c8cdfdf4 (this is the commit that deleted this ManagementBarFilterItem class)
You might be able to use Clay instead: https://clayui.com/docs/components/management-toolbar.html
(replacement for </liferay-frontend:management-bar> is <clay:management-toolbar>)