Page 1 of 1

Cannot expand the menus

Posted: 22 Apr 2021, 19:38
by Francesco.Tran
Hello,

I started a new project and copied all the resources from the layout theme.
The template load fine and I can open all the demo data, however there seems to be something not working with js, all the menus are not loading (left menu, topbar menus, user preference gear).
Is there anything I am missing?

Thank you.

Re: Cannot expand the menus

Posted: 23 Apr 2021, 16:59
by Francesco.Tran
My bad, I managed to fix it, looking at suggestions for other themes.

Just for anyone else with similar issues, you need to import the jar first

Code: Select all

mvn install:install-file -Dfile=<path-to-file> -DgroupId=org.primefaces.themes -DartifactId=rain -Dversion=2.0.0 -Dpackaging=jar
Then add the following to the pom.xml file

Code: Select all

[...]
<dependency>
		<groupId>org.primefaces.themes</groupId>
		<artifactId>rain</artifactId>
		<version>2.0.0</version>
</dependency>
[...]
<repository>
  			<id>prime-repo</id>
  			<name>Prime Repo</name>
  			<url>http://repository.primefaces.org</url>
 </repository>
 
Finally compile the css

Code: Select all

sass --update src/main/webapp/resources:src/main/webapp/resources --no-source-map
copy the resource folder into your project and switch theme.

Re: Cannot expand the menus

Posted: 04 May 2021, 15:01
by mert.sincan
Hi,

Thanks a lot for your update! This info will help other users as well.

Best Regards,