I wonder if it is performance-wise best place to have it as a wrap-it-all? 2012/12/19 Martin Grigorov <[email protected]>: > I think it is a good idea to have this filter in Wicket. > Each application will decide whether to use it or not. > > > On Wed, Dec 19, 2012 at 10:31 AM, Martin Grigorov <[email protected]>wrote: > >> >> http://blog.mark-mclaren.info/2007/02/invalid-xml-characters-when-valid-utf8_5873.html >> >> >> On Wed, Dec 19, 2012 at 4:34 AM, Martin Makundi < >> [email protected]> wrote: >> >>> xb also >>> >>> 2012/12/19 Michael Mosmann <[email protected]>: >>> > Am 15.12.2012 06:22, schrieb Martin Makundi: >>> > >>> > We could use AjaxSelfUpdatingTimerBehavior to iterate over most >>> characters >>> > and see where it fails (which could be easily detected).. >>> > >>> > As today i only know of 0x1a as a bad one. >>> > >>> > Michael Mosmann >>> > >>> > >>> >> OK, is possibly trivial: >>> >> >>> >> getRequestCycleSettings().addResponseFilter(new >>> IResponseFilter() { >>> >> @Override >>> >> public AppendingStringBuffer filter(AppendingStringBuffer >>> >> responseBuffer) { >>> >> return responseBuffer; TODO if starts with xml strip illegal >>> >> xml >>> >> characters? >>> >> } >>> >> }); >>> >> >>> >> >>> >> ? >>> >> >>> >> 2012/12/15 Martin Makundi <[email protected]> >>> >> >>> >>> Can you point me to an example for this? >>> >>> >>> >>> >>> >>> 2012/12/15 Martin Grigorov <[email protected]> >>> >>> >>> >>>> org.apache.wicket.response.filter.IResponseFilter is applied to both >>> >>>> Ajax >>> >>>> and normal responses. >>> >>>> >>> >>>> >>> >>>> On Sat, Dec 15, 2012 at 7:02 AM, Martin Makundi < >>> >>>> [email protected]> wrote: >>> >>>> >>> >>>>> Hi! >>> >>>>> >>> >>>>> Is there a setting/interceptor/filter that can be applied to filter >>> out >>> >>>>> illegal utf characters from AjaxRequestTarget response? >>> >>>>> >>> >>>>> >>> >>>>> >>> >>>> >>> >>>> >>> http://blog.mark-mclaren.info/2007/02/invalid-xml-characters-when-valid-utf8_5873.html >>> >>>>> >>> >>>>> Specifically wicket 1.4.x >>> >>>>> >>> >>>>> ** >>> >>>>> Martin >>> >>>>> >>> >>>> >>> >>>> >>> >>>> -- >>> >>>> Martin Grigorov >>> >>>> jWeekend >>> >>>> Training, Consulting, Development >>> >>>> http://jWeekend.com <http://jweekend.com/> >>> >>>> >>> >>> >>> > >>> > >>> > --------------------------------------------------------------------- >>> > To unsubscribe, e-mail: [email protected] >>> > For additional commands, e-mail: [email protected] >>> > >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> >> >> -- >> Martin Grigorov >> jWeekend >> Training, Consulting, Development >> http://jWeekend.com <http://jweekend.com/> >> >> > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com <http://jweekend.com/>
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
