org.apache.wicket.ajax.WicketAjaxJQueryResourceReference Java Examples

The following examples show how to use org.apache.wicket.ajax.WicketAjaxJQueryResourceReference. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LogoutPanel.java    From webanno with Apache License 2.0 6 votes vote down vote up
@Override
public void renderHead(IHeaderResponse aResponse)
{
    super.renderHead(aResponse);

    aResponse.render(new PriorityHeaderItem(JavaScriptHeaderItem.forReference(
            getApplication().getJavaScriptLibrarySettings().getJQueryReference())));
    
    // We use calls from this library to show the logout timer
    aResponse.render(new PriorityHeaderItem(
            JavaScriptHeaderItem.forReference(WicketAjaxJQueryResourceReference.get())));
    
    int timeout = getAutoLogoutTime();
    if (timeout > 0) {
        aResponse.render(JavaScriptHeaderItem.forScript(
                "$(document).ready(function() { new LogoutTimer(" + timeout + "); });",
                "webAnnoAutoLogout"));
    }
}
 
Example #2
Source File: AbstractFullCalendar.java    From projectforge-webapp with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void renderHead(IHeaderResponse response) {

	response.render(JavaScriptHeaderItem.forReference(WicketAjaxJQueryResourceReference.get()));

	response.render(CssReferenceHeaderItem.forReference(CSS));

	if (getApplication().usesDeploymentConfig()) {
		response.render(JavaScriptReferenceHeaderItem.forReference(JS_MIN));
	} else {
		response.render(JavaScriptReferenceHeaderItem.forReference(JS));
	}
	response.render(JavaScriptReferenceHeaderItem.forReference(JS_EXT));

}
 
Example #3
Source File: AbstractJavaScriptLibrarySettings.java    From the-app with Apache License 2.0 4 votes vote down vote up
@Override
public ResourceReference getWicketAjaxReference() {
    return WicketAjaxJQueryResourceReference.get();
}
 
Example #4
Source File: WicketJQueryFocusPatch.java    From webanno with Apache License 2.0 4 votes vote down vote up
@Override
public List<HeaderItem> getDependencies()
{
    return Dependencies.combine(super.getDependencies(),
            JavaScriptHeaderItem.forReference(WicketAjaxJQueryResourceReference.get()));
}
 
Example #5
Source File: AbstractJavaScriptLibrarySettings.java    From AppStash with Apache License 2.0 4 votes vote down vote up
@Override
public ResourceReference getWicketAjaxReference() {
    return WicketAjaxJQueryResourceReference.get();
}