<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Serenity theme of Cockpit got problem [Ivy 7.3.1]</title><link>https://answers.axonivy.com/questions/4068/serenity-theme-of-cockpit-got-problem-ivy-7-3-1</link><description>&lt;p&gt;Hi Ivy team, 
Our application doesn't use 2 libraries of serenity theme (serenity-layout-1.0.5.jar and serenity-theme-1.0.5.jar). Therefore, we removed it in AxonIvyEngine7.3.1/webapps/ivy/WEB-INF/lib  &lt;/p&gt;
&lt;p&gt;And add config&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; &amp;lt;context-param&amp;gt;

    &amp;lt;param-name&amp;gt;primefaces.THEME&amp;lt;/param-name&amp;gt;

    &amp;lt;param-value&amp;gt;none&amp;lt;/param-value&amp;gt;

&amp;lt;/context-param&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;in the web.xml&lt;/p&gt;
&lt;p&gt;But it will make the cockpit GUI is broken. &lt;/p&gt;
&lt;p&gt;How can we solve that problem?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/4068/serenity-theme-of-cockpit-got-problem-ivy-7-3-1" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 10 Oct 2019 03:38:56 -0400</lastBuildDate><item><title>Answer by Lukas Lieb</title><link>https://answers.axonivy.com/questions/4068/serenity-theme-of-cockpit-got-problem-ivy-7-3-1/4092</link><description>&lt;p&gt;Hi An&lt;/p&gt;
&lt;p&gt;First of all it's a very bad thing to change the code of a framework. With this action you will have problems every time you need to do an update. Ok, you want to stay on the version 1.0.1 but what if this version gets incompatible with Primefaces itself? But this only as side note.&lt;/p&gt;
&lt;p&gt;I think it should be still possible to use your own serenity theme, even whit the version 1.0.1. But for this you need your own theme name. If you have your WEB-INF/lib folder first of all don't delete the normal serenity jars, you can put your own jars beside them. E.g:
&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/Screenshot_from_2019-10-10_09-40-26.png"&gt;&lt;/p&gt;
&lt;p&gt;May you need to repackage the Serenity java classes in the theme jar too. (&lt;a href="http://repackage.org/)"&gt;http://repackage.org/)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To use your theme now import them in your template.xhtml file:&lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/Screenshot_from_2019-10-10_09-39-36.png"&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Lukas&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lukas Lieb</dc:creator><pubDate>Thu, 10 Oct 2019 03:38:56 -0400</pubDate><guid>https://answers.axonivy.com/questions/4068/serenity-theme-of-cockpit-got-problem-ivy-7-3-1/4092</guid></item><item><title>Answer by An Truong</title><link>https://answers.axonivy.com/questions/4068/serenity-theme-of-cockpit-got-problem-ivy-7-3-1/4090</link><description>&lt;p&gt;Hi all, &lt;/p&gt;
&lt;p&gt;&lt;img alt="KLARA Theme structrure" src="https://www.dropbox.com/s/q75ie4veaokjrdu/Frame%201.jpg?dl=0"&gt; [&lt;a href="https://www.dropbox.com/s/q75ie4veaokjrdu/Frame%201.jpg?dl=0]"&gt;https://www.dropbox.com/s/q75ie4veaokjrdu/Frame%201.jpg?dl=0]&lt;/a&gt;&lt;a href="https://www.dropbox.com/s/q75ie4veaokjrdu/Frame%201.jpg?dl=0"&gt;2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As KLARA is developing our theme based on Serenity theme 1.01 we bought last year, we don't want to upgrade the theme anymore, we want to use our developing version. &lt;/p&gt;
&lt;p&gt;Since Ivy started to include the new Serenity theme, we have one more layer to overwrite. Imo, Serenity just should be included in the project where it needed like the Cockpit. It shouldn't affect to customer project like KLARA. 
We can put our theme to our project, it still works normally but it is not best practice for us. Serenity is overwriting the styling of Primefaces by wrapping one more tag out of all css stylings like: &lt;code&gt;body .ui-input-text{}&lt;/code&gt;. If KLARA wants to have our own stylings, we must have one more identifier wrapper. Moreover, the Serenity theme will load to the template on client side 3 more files which are: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;layout.css - Serenity layout styling&lt;/li&gt;
&lt;li&gt;theme.css - Primefaces overwriting styling&lt;/li&gt;
&lt;li&gt;layout.js - Primefaces components overwriting scripts&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;We already optimised and minified the scripts and performance for template in our side. Now if the Serenity jar included, there are more files we couldn't touch unless overwriting.
We would prefer to use the original Primefaces codes where we already developed a lot of customisation codes than overwriting one more level in Serenity. &lt;/p&gt;
&lt;p&gt;So our question is: Is there anyway that we can ignore the Serenity theme included in Ivy in our project?&lt;/p&gt;
&lt;p&gt;Thank you very much for your support!
Regards, An.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">An Truong</dc:creator><pubDate>Wed, 09 Oct 2019 22:46:52 -0400</pubDate><guid>https://answers.axonivy.com/questions/4068/serenity-theme-of-cockpit-got-problem-ivy-7-3-1/4090</guid></item><item><title>Answer by Lukas Lieb</title><link>https://answers.axonivy.com/questions/4068/serenity-theme-of-cockpit-got-problem-ivy-7-3-1/4069</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The Cockpit will not run without the serenity libs. So simply don't delete them.
There shouldn't be a problem to run your application with another theme.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Lukas&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lukas Lieb</dc:creator><pubDate>Fri, 04 Oct 2019 04:31:42 -0400</pubDate><guid>https://answers.axonivy.com/questions/4068/serenity-theme-of-cockpit-got-problem-ivy-7-3-1/4069</guid></item></channel></rss>