Sounds reasonable to me. Emond ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov
On Fri, Jan 9, 2015 at 1:50 PM, Daniel Stoch <[email protected]> wrote: > Hi, > > Inside AtmosphereBehavior method getCallbackUrl() return value is > calculated as: > > return super.getCallbackUrl() + "&" + WebRequest.PARAM_AJAX + > "=true&" + > WebRequest.PARAM_AJAX_BASE_URL + "=."; > > Is it correct? When atmosphere update contains some resources (css, > js) their paths are invalid encoded because > WebRequest.PARAM_AJAX_BASE_URL is set to ".". > Maybe this parameter should be encoded the same way as in > AbstractDefaultAjaxBehavior: > > RequestCycle requestCycle = component.getRequestCycle(); > Url baseUrl = requestCycle.getUrlRenderer().getBaseUrl(); > CharSequence ajaxBaseUrl = > Strings.escapeMarkup(baseUrl.toString()); > > In my test case this solves a problem. > > -- > Best regards, > Daniel >
