Instead of having a lot of code in the cc:actionManager, you could use
<xe:djextImageSelect id="djextImageSelect1"
value="#{viewScope.calendarType}" defaultValue="T"
immediate="true">
<xe:this.imageValues>
instead and bind the calendarView Type to:
type="#{javascript:viewScope.calendarType}">
</xe:calendarView>