Page 1 of 1

Material icons not displayed using Dialog Framework

Posted: 22 May 2018, 15:00
by Babas007
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

Re: Material icons not displayed using Dialog Framework

Posted: 23 May 2018, 08:59
by aragorn
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" />

Re: Material icons not displayed using Dialog Framework

Posted: 23 May 2018, 10:30
by Babas007
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?

Re: Material icons not displayed using Dialog Framework

Posted: 29 May 2018, 07:58
by aragorn
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,

Re: Material icons not displayed using Dialog Framework

Posted: 04 Jun 2018, 17:05
by Rapster
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