Class AsyncUrlFragmentAwarePanel

    • Constructor Detail

      • AsyncUrlFragmentAwarePanel

        public AsyncUrlFragmentAwarePanel​(String id)
      • AsyncUrlFragmentAwarePanel

        public AsyncUrlFragmentAwarePanel​(String id,
                                          IModel<?> model)
    • Method Detail

      • getOptions

        protected Map<String,​String> getOptions()
        Returns a map of options used for initializing the JavaScript library for reading and writing the URL fragment.

        Possible options are:

        • 'fragmentIdentifierSuffix': String after the '#' (standard is '!')
        • 'keyValueDelimiter': a String used to connect fragment parameters keys and values (standard is '&')
        Returns:
        options Map created
      • onParameterIncome

        protected abstract void onParameterIncome​(IRequestParameters requestParameters,
                                                  AjaxRequestTarget target)
        This is where you can grab the URL query and fragment parameters, your site was requested with. You can use urlFragment() inside this method.
        Parameters:
        requestParameters - parameters set on this page
        target - AjaxRequestTarget can be used for page updating