Schedule in Columns - JSF

0

Good evening,

I'm setting up an event calendar and I use Srps boot + JSF + Primefaces. The user clicks on the employee's name and his schedule is displayed. So far so perfect. (Code below)

Now I need to create a view where you can see the schedules of all employees on the same page. I thought of something like a table where the columns are the collaborators and the rows the schedules, similar to Excel. I could not do with Datatable via binding, creating arrays of rows and columns and mounting on the screen. Creating the rule in the Controller I did, but I could not make it stay on the screen in a visual way and with features similar to the primefaces Schedule.

Does anyone have any idea to create this? Are you going to have that nail itself or do you have some framework that helps?

I'm using Spring Boot, eclipse, maven, JSF 2.3.0 and Primefaces 6.2.

<h:form id="formCenter" style="overflow: hidden !important;">
	<p:growl id="messages" showDetail="true" />
	<p:schedule widgetVar="mySchedule" value="#{agendaController.eventModel}"
							id="schedule" timeZone="GMT-3" locale="pt" rightHeaderTemplate="agendaDay, agendaWeek, month"
							view="agendaDay" axisFormat="H:mm" timeFormat="H:mm" minTime="08:00" maxTime="18:00" 
							slotMinutes="20" resizable="false">
		<p:ajax event="dateSelect" listener="#{agendaController.onDateSelect}" update="eventDetails" 
							oncomplete="PF('eventDialog').show();"/>
		<p:ajax event="eventSelect" listener="#{agendaController.onEventSelect}" update="eventDetails" 
							oncomplete="PF('eventDialog').show();"/> 
	</p:schedule>
</h:form>
    
asked by anonymous 16.05.2018 / 02:06

0 answers