Spring Batch Cronjob Expression Dilemma

Reading Time: 1 minute In one of the projects that I’ve assigned to has given me the trouble of synchronization of batches to carry all data from one location to another remote location. The story is that we have a few of batches some of them scheduled to be launched every two minutes or 2 hours, but we’ve come

Displaying messagebox from backing bean

Reading Time: 1 minute This piece of code snippet will initially hide the primefaces dialog box, then in any action from the backing bean, it will be activated and seen Back bean RequestContext context = RequestContext.getCurrentInstance(); context.execute(“PF(‘dlgBlackListVar’).show();”); View <p:dialog id=”dlgBlackList” widgetVar=”dlgBlackListVar” header=”#{msg.member_blacklist_header}” showEffect=”clip” modal=”true” visible=”false”> <h:outputText value=”#{msg.member_blacklist_content}” /> </p:dialog>

Primefaces navigating in between min and max dates

Reading Time: 1 minute Today at work I was stuck at demonstrating all the possible years which are given by min and max date ranges in the backing bean in primefaces and jsf combo. So as default primefaces calendar component only displays just set the year range to maximize the value the way you wish <p:calendar id=”birthdate” value=”#{memberController.order.birthdate}” yearRange=”c-70:c+10″

Java collection sorting

Reading Time: 3 minutes Hi In this example I’ll be sorting out a list by using comparator and collator interfaces. Both of those allow us to sort a given collection list by a key we provide. Moreover collator will allow to sort a list by a localization if you are running a multiple language application, this will help you