Material icons not displayed using Dialog Framework

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
Babas007
Posts: 251
Joined: 24 May 2011, 09:42

22 May 2018, 15:00

Dialog Framework uses iframe, that's the only difference I see with the rest of the app. After some digging, I realized the file "layout.css" is not included in the head of iframe (that's where Material Design font should be defined). This is why it's not displayed. Thanks for providing a fix

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

23 May 2018, 08:59

I think you can add it into h:head of the other page to be opened.
<h:outputStylesheet name="css/layout-#{guestPreferences.layout}.css" library="barcelona-layout" />

Babas007
Posts: 251
Joined: 24 May 2011, 09:42

23 May 2018, 10:30

Sorry, we can't do that... We have a bunch of pages opened with Dialog Framework. And those pages are shared with another app not using Barcelona. Can't you override the HeadRenderer?

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

29 May 2018, 07:58

Can't you override the HeadRenderer?
- Unfortunately, no. I think other Barcelona users may react to this. Therefore, you can override HeadRenderer by yourself in your project.

Best Regards,

Rapster
Posts: 17
Joined: 08 May 2018, 21:58

04 Jun 2018, 17:05

Is it possible to introduce a new method that will be called in such cases (in HeadRenderer)? That way, you could override it and include the corresponding font; and it would be provided in barcelona disttribution. Like that, users does not have to do anything

Post Reply

Return to “Barcelona - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests