Overriding existing components style/css

Reading Time: 1 minute <window title=”Application Window” border=”normal” width=”100%” height=”100%” apply=”com.tugrulaslan.controller.IndexController”> <style> <!– Listbox Header –> .z-listheader-content{ color: green !important; } <!– Listbox Cell –> .z-listcell-content{ color: red !important; } <!– Groupbox Header –> .z-caption-content{ color: blue !important; } <!– Label –> .z-label{ color: yellow !important; } </style> </window> Result

Spring ZKoss Customized Login, Logout, Authorization and Authentication

Reading Time: 2 minutes CustomAuthenticationFilter.java public class CustomAuthenticationFilter extends UsernamePasswordAuthenticationFilter { @Autowired private xxService xService; static final Logger logger = Logger.getLogger(CustomAuthenticationFilter.class); @Override public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response) throws AuthenticationException { String username = request.getParameter(getUsernameParameter()); String password = request.getParameter(getPasswordParameter()); String server = request.getParameter(“server”); if(username.trim().length() == 0 || password.trim().length() == 0){ logger.error(“Error empty credentials entered ” + username + password

Getting selected items in listbox ZK

Reading Time: 1 minute In one of my project I really needed one of piece of this code and dwelled on that for a long while. I asked for assistance from a senior and he showed me how to, and I would like to share this piece of helpful code with you. In controller class I did not create

Using html elements in ZK

Reading Time: 1 minute Well today I had to face this situation since I am a newbie in ZK Framework. In a single line in my code I had to leave a new space between two different components I found the solution first of all we need to add the ZK html namespace in our code and with the

Adding zk archetype to maven in eclipse

Reading Time: 1 minute on eclipse or sts click on window > preferences and  on the left pane menu go to Maven and expand the menu choose Archetypes here click on add remote catalog and type in Catalog file: http://mavensync.zkoss.org/maven2/ Description: zk click on okay. When you create a new maven project from the catalog choose zk and select your favorite