Bug in RainMenuRenderer fa-fw css class

Post Reply
Posts: 1
Joined: 16 Feb 2018, 10:12

24 Nov 2020, 14:52

In the method "encodeItemIcon" is an assignment to "icon" var:

Code: Select all

icon += "fa-fw";
There should be a space before fa-fw like

Code: Select all

icon += " fa-fw";
Otherwise the class name "fa-fw" is mixed up with the class name before and you get an invalid html code. I had this issue when using Font Awesome 5 and have now built a workaround by creating a subclass "CustomRainMenuRenderer" and overwriting this "encodeItemIcon" method.

Posts: 4638
Joined: 29 Jun 2013, 12:38

24 Nov 2020, 22:18


Thanks a lot for the report. Fixed for the next version.

Best Regards,

Post Reply

Return to “Rain - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest