$wnd.jQuery(...).fullCalendar is not a function

118 views
Skip to first unread message

Eugen Besel

unread,
Feb 19, 2016, 2:33:53 PM2/19/16
to GwtBootstrap3

Hello together,

I have a problem with gwtBootstrap3 and FullCalendar.
I used gwtp with view and presenter.

Implementied as following:
 my gwt.xml
<inherits name="org.gwtbootstrap3.extras.fullcalendar.FullCalendar"/>

my ui.xml
<b:Container fluid="true" ui:field="container"/>

my View class
 @UiField
    Container container;

     @Inject
    public MyCalendarConstructor(Binder uiBinder) {
        initWidget(uiBinder.createAndBindUi(this));
        createCalendar();
    }
     private void createCalendar() {
        Header calendarHeader = new Header();
        calendarHeader.setCenter("Header");
        calendar = new FullCalendar("myCalendar", ViewOption.agendaWeek,true, calendarHeader);
        calendar.setView(ViewOption.agendaWeek);
        calendar.setTitle("Terminkalendar");
        container.add(calendar);
    }

In the browser I get following errormessage:
Uncaught com.google.web.bindery.event.shared.UmbrellaException: Exception caught: (TypeError) : $wnd.jQuery(...).fullCalendar is not a function

can anybody help me.

thank you

Steven Jardine

unread,
Feb 24, 2016, 1:37:26 PM2/24/16
to GwtBootstrap3
It appears that the FullCalendar is either not injected or has been injected twice.  Please check your html file.  Are you adding the fullcalendar css and js there?

Eugen Besel

unread,
Feb 24, 2016, 1:41:26 PM2/24/16
to GwtBootstrap3
I found it out.

The problem was in the line
calendar.setTitle("Terminkalendar");

I dont know why, but after I deleted this line, calendar worked.
Reply all
Reply to author
Forward
0 new messages