Class WebAppBehavior

  • All Implemented Interfaces:
    Serializable, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.markup.html.IComponentAwareHeaderContributor, org.apache.wicket.util.io.IClusterable, IYuiManager

    public class WebAppBehavior
    extends org.apache.wicket.behavior.Behavior
    implements IYuiManager
    This is the base behavior needed for developing Wicket applications using the YUI framework developed by Hippo.

    It's most important feature is implementing the IYuiManager interface, enabling the AbstractYuiBehavior and AbstractYuiAjaxBehavior to retrieve IYuiContext instances, and thus should be added to the Page instance of your application (this is required).

    It also exposes the possibility of pre-loading the stylesheets of the YUI CSS foundation: reset, fonts, grids, base and reset-fonts-grids stylesheets, as well as pre-loading Wicket-Ajax dependencies. This can be configured in the WebAppSettings.

    See Also:
    IYuiManager, Serialized Form
    • Constructor Detail

    • Method Detail

      • renderHead

        public void renderHead​(org.apache.wicket.Component component,
                               org.apache.wicket.markup.head.IHeaderResponse response)
        Specified by:
        renderHead in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributor
        Overrides:
        renderHead in class org.apache.wicket.behavior.Behavior