-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a little application that I want to move to spring boot with the zk springboot plugin. I followed the instructions on this page but I can't get my Richlets to work correctly.
I had this in my web.xml with the Richlets Login and Main:
<servlet-mapping>
<servlet-name>DHtmlLayoutServlet</servlet-name>
<url-pattern>/app/*</url-pattern>
</servlet-mapping>
I have tried various things but didn't succeed to initialize my Richlets correctly. How should the configuration be done in order to enable "/app/login" and "/app/main"?
Thx in advance
zkspringboot-autoconfig provides a configuration property (in your application.properties) to enable the richlet filter: https://github.com/zkoss/zkspringboot/blob/master/README.md#zkrichlet-filter-mapping
e.g. shown in this example project's application.properties
in your case that would be:
zk.richlet-filter-mapping=/app/*
For the individual Richlets still you have to define the <richlet>
and <richlet-mapping>
elements in your zk.xml as before:
<richlet>
<richlet-name>login-richlet</richlet-name><!-- your preferred name -->
<richlet-class>your.package.LoginRichlet</richlet-class>
</richlet>
<richlet>
<richlet-name>main-richlet</richlet-name><!-- your preferred name -->
<richlet-class>your.package.MainRichlet</richlet-class>
</richlet>
<richlet-mapping>
<richlet-name>login-richlet</richlet-name>
<url-pattern>/app/login</url-pattern>
</richlet-mapping>
<richlet-mapping>
<richlet-name>main-richlet</richlet-name>
<url-pattern>/app/main</url-pattern>
</richlet-mapping>
(also shown in the example's zk.xml)
Asked: 2018-10-30 03:25:41 +0800
Seen: 9 times
Last updated: Oct 30 '18
[Announcement] ZK 8.5.1 is now available!
Highlight new release changes/new features in demo app
How can I make a button change its image by clicking on the same button?
Problems calling function 'sec:isAnyGranted' with zkspring 3.2 and Spring Security 4
webapp folder of ZK spring boot?
Can I set in runtime a new value to library property: org.zkoss.zk.ui.processMask.enabled:
Package ZK Eclipse Tomcat Project For Deployment
AImage org.zkoss.zk.ui.UiException: java.io.FileNotFoundException