Problem with primefaces component p:schedule passing from 1.0.0-RC18 to 1.0.0-RC19
See original GitHub issueIssue Overview
I have a p:schedule
component in my page which uses a LazyScheduleModel
like this:
@Named
@ViewScoped
public class EventsList implements Serializable {
private ScheduleModel lazyEventModel;
@Inject
LogManager logon;
@Inject
NightService nightService;
@Inject
LocationService locationService;
private Location selectedLocation;
private List<Location> locations;
@PostConstruct
public void init() {
locations = locationService.getLocationsFromDatabase(logon.getProvider());
lazyEventModel = new LazyScheduleModel() {
@Override
public void loadEvents(Date start, Date end) {
DateTime startLdt = CalendarUtils.toDateTime(start);
DateTime endLdt = CalendarUtils.toDateTime(end);
List<ScheduleEvent> events = nightService
.getNightsScheduleEventsByProviderLocationAndDateTimeRange(logon.getProvider(), getSelectedLocation(), startLdt, endLdt);
for (ScheduleEvent e : events) {
addEvent(e);
}
}
};
}
/* ... */
}
And in my page I have a p:schedule
inside a form like this:
<p:schedule id="schedule" value="#{eventsList.lazyEventModel}" draggable="false" resizable="false"/>
Current Behaviour
From 1.0.0-RC19 and above:
-
the events are not shown on the schedule component and
loadEvents
is never called. -
I get in the Google Chrome console the following error: It is due to the js function
showBar()
fromAdminLTE
, the first time that thePF('statusDialog')
is called gives me anUncaught TypeError: Cannot read property 'show' of undefined
.
Can’t say if 1. and 2. are correlated.
Additional Information
Testing with 1.0.0-RC18
p:schedule works fine and this problem did not exist.
I tried again recompiling my ear
with:
- 1.0.0-RC19
- 1.0.0-RC20
- 1.0.0-RC21-SNAPSHOT
And all these 3 have this bug on the p:schedule
component.
AdminFaces version: admin-template 1.0.0-RC19+ PrimeFaces version: PF 6.2 JSF implementation: Mojarra 2.2.15
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
Yeah! It works fine with the new
1.0.0-RC21-SNAPSHOT
! 🥳 Great job and thank you again @rmpestanoHi again @danielemaddaluno,
As I suspected the issue was caused by loading dialog position on the template.
Can you try with admin-template 1.0.0-RC21-SNAPSHOT?
Don’t forget to clean browser caches.
Thank you for reporting the issue.