Ho trovato un modo per aprire una popup nel componente modificando
EventsPlanningUnit.unit.template
e mettendo il seguente pezzo di codice
dayClick: function(date, allDay, jsEvent, view) {
if(view.name == "month"){
jq('#<wr:UnitId/>_calendar').fullCalendar( 'changeView', 'agendaDay' );
jq('#<wr:UnitId/>_calendar').fullCalendar( 'gotoDate', date );
}
if(view.name=="agendaDay" || view.name=="agendaWeek"){
var $dialog = jq('<div id="dialog" style="text-align:center;"></div>')
.html('<iframe src="' + '<wr:URL context="selectEventLink" escapeXml="false"/>' + '" />')
.dialog({
autoOpen: false,
modal: true,
height: 250,
width: 400,
title: "Modal Window",
open: function () {
jQuery('body').on('click', '.ui-widget-overlay', function () {
jq('#dialog').dialog('close');
});
}
});
$dialog.dialog('open');
}
},