FACES-1967 added myfaces compatibility code

https://issues.liferay.com/browse/FACES-1967
https://www.liferay.com/community/forums/-/message_boards/view_message/41359841