<?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>Fri, 11 Oct 2019 04:21:20 -0400</lastBuildDate><item><title>Comment by Lukas Lieb on An Truong's question</title><link>https://answers.axonivy.com/questions/4068/serenity-theme-of-cockpit-got-problem-ivy-7-3-1#4096</link><description>&lt;p&gt;Hi An&lt;/p&gt;
&lt;p&gt;We don't force customers to use our supported themes. We want to give customers the possibility to build their projects with e.g. serenity. You still have the possibility to generate or use our own theme. You are free to delete our delivered themes too, but with the consequence that our tools not work without them.&lt;/p&gt;
&lt;p&gt;So if you have your own theme, include it in our app. The cockpit will not be affected by this and should not affect your app.
If you don't want to have those files in your app then don't import them. But the cockpit import those files and use them.&lt;/p&gt;
&lt;p&gt;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, 11 Oct 2019 04:21:20 -0400</pubDate><guid>https://answers.axonivy.com/questions/4068/serenity-theme-of-cockpit-got-problem-ivy-7-3-1#4096</guid></item><item><title>Comment by An Truong on Lukas Lieb's answer</title><link>https://answers.axonivy.com/questions/4068/serenity-theme-of-cockpit-got-problem-ivy-7-3-1#4095</link><description>&lt;p&gt;Hi Lukas, &lt;/p&gt;
&lt;p&gt;Thanks for your answer. But I have the little different opinion. &lt;/p&gt;
&lt;p&gt;I think the development tool like Ivy shouldn't force customer application to use its theme. We have our own UI/ UX and we dont want to be affected by the development tool. As I understand now, the Serenity theme included in Ivy is for the Cockpit page, I not yet see the benefits to have it in our application.&lt;/p&gt;
&lt;p&gt;Serenity 1.01 is just our base, it became KLARA theme itself already. And we are developing it day by day so we accept the risk of Primefaces upgrading. &lt;/p&gt;
&lt;p&gt;We are doing somethings like your suggestions already. But the problem is we don't want to have the files like: nanoscroller.js/css, ripple.js/css, layout.js and also 2 css files generated by Serenity theme: layout.css and theme.css, because they are unnecessary for us. That's why I asked if we can exclude the Ivy Serenity theme in our app and only use it in Cockpit&lt;/p&gt;
&lt;p&gt;Thanks for your support.
Bests&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">An Truong</dc:creator><pubDate>Thu, 10 Oct 2019 22:45:57 -0400</pubDate><guid>https://answers.axonivy.com/questions/4068/serenity-theme-of-cockpit-got-problem-ivy-7-3-1#4095</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/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>Comment by Reguel Wermelinger on Lukas Lieb's answer</title><link>https://answers.axonivy.com/questions/4068/serenity-theme-of-cockpit-got-problem-ivy-7-3-1#4073</link><description>&lt;p&gt;sound like you just have to move theme customizations to your project instead of hacking the official jar files...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Fri, 04 Oct 2019 04:42:29 -0400</pubDate><guid>https://answers.axonivy.com/questions/4068/serenity-theme-of-cockpit-got-problem-ivy-7-3-1#4073</guid></item><item><title>Comment by nndiem on Lukas Lieb's answer</title><link>https://answers.axonivy.com/questions/4068/serenity-theme-of-cockpit-got-problem-ivy-7-3-1#4072</link><description>&lt;p&gt;Hello Lukas,
We got a problem if we don't remove that library. Because in the past, we modified the old library serenity theme (by add some more css in the same css tags of serenity). 
Now, Serenity theme is upgraded to new version, we don't need that. If we still keep that library, our application will be broken.&lt;/p&gt;
&lt;p&gt;Do we have more config variables so that we will specify using serenity theme default only in cockpit, don't use in our application?&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nndiem</dc:creator><pubDate>Fri, 04 Oct 2019 04:39:15 -0400</pubDate><guid>https://answers.axonivy.com/questions/4068/serenity-theme-of-cockpit-got-problem-ivy-7-3-1#4072</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>