import org.primefaces.util.Constants;
public class CalendarResourceListener implements SystemEventListener {
public void processEvent(SystemEvent event) throws AbortProcessingException {
Calendar calendar = (Calendar) event.getSource();
FacesContext context = FacesContext.getCurrentInstance();
UIViewRoot view = context.getViewRoot();
String renderKitId = view.getRenderKitId();
if(renderKitId.equals(Constants.MOBILE_RENDER_KIT_ID)) {