Author Archives: Bhawesh Kumar

Introduction to Model-View-Presenter

By | April 21, 2015

Introduction This is a simple MVP implementation in an ASP.NET application. I used this pattern a lot during 2007-2011 time period before ASP.NET MVC in Microsoft world started to gain popularity. MVP separates visual display logic from data procurement logic. In Model-View-Presenter, View is solely responsible for display of data. Presenter is concerned about getting the relevant… Read More »

How to reduce scanned PDF file size on Mac

By | August 19, 2018

Problem: Reducing PDF file size on Mac I scanned some of my personal documents in PDF format on Mac. The files were big sized for any email attachment and so I started looking for some application or free solution to reduce these PDF documents. The first solution that was readily available on my Macbook was to use Preview.… Read More »

ThymeLeaf – Disable control dynamically

By | April 21, 2015

We face a common scenario to display a control active or disabled on UI depending on model (Spring MVC) attributes. There are few examples to perform this in ThymeLeaf . After some googling and going through ThymeLeaf documentation we found two different ways to perform this. Make two HTML controls The code snippet below displays… Read More »

Minify JavaScript and CSS using gradle

By | September 10, 2015

I am new to Java world with just 2 years approximately in my career. Recently I was working on a project that required us to minify JavaScript and CSS files in Java WAR archive. The technology stack for this project included Spring MVC, Hibernate, Gradle, BootStrap, and Thymeleaf. After searching for a plugin that enables us to minify… Read More »