Material icons not displayed using Dialog Framework

Post Reply
Babas007
Posts: 250
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

User avatar
aragorn
Posts: 3164
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: 250
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?

User avatar
aragorn
Posts: 3164
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: 16
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 1 guest