Ronn
25 Sep 2008, 4:08 PM
I'm working on a GXT app that reads content from database and display on the screen for user to edit.
Unfortunately, some of the data is not html safe (e.g., has <>), for some of the components it is easy to write a renderer to filter out/convert the html tags. But it is more difficult in some other (like xtemplate).
I could process it on the server side at the service level but it could get complicated when the domain object is nested. Also, technically, the data should remain the same and it should really be dealt with on rendering.
I'm wondering if I'm missing something and why this is not best done internally within GXT?
Anyone has any thought?
Caused by: com.google.gwt.core.client.JavaScriptException: (Error):
number: -2147467259
description:
at com.extjs.gxt.ui.client.core.XTemplate$.overwrite$(Native Method)
at com.extjs.gxt.ui.client.widget.ListView.refresh(ListView.java:278)
at com.extjs.gxt.ui.client.widget.ListView$1.storeDataChanged(ListView.java:453)
at com.extjs.gxt.ui.client.store.StoreListener.handleEvent(StoreListener.java:30)
at com.extjs.gxt.ui.client.store.StoreListener.handleEvent(StoreListener.java:1)
at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:74)
at com.extjs.gxt.ui.client.store.ListStore.onLoad(ListStore.java:180)
at com.extjs.gxt.ui.client.store.ListStore$1.loaderLoad(ListStore.java:131)
at com.extjs.gxt.ui.client.event.LoadListener.handleEvent(LoadListener.java:24)
at com.extjs.gxt.ui.client.event.LoadListener.handleEvent(LoadListener.java:1)
at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:74)
at com.extjs.gxt.ui.client.data.BasePagingLoader.onLoadSuccess(BasePagingLoader.java:88)
at com.extjs.gxt.ui.client.data.BasePagingLoader.onLoadSuccess(BasePagingLoader.java:1)
at com.extjs.gxt.ui.client.data.BaseLoader$1.onSuccess(BaseLoader.java:119)
at com.extjs.gxt.ui.client.data.RpcProxy$1.onSuccess(RpcProxy.java:33)
at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:215)
at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl(Request.java:254)
at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch(Request.java:226)
at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:217)
Unfortunately, some of the data is not html safe (e.g., has <>), for some of the components it is easy to write a renderer to filter out/convert the html tags. But it is more difficult in some other (like xtemplate).
I could process it on the server side at the service level but it could get complicated when the domain object is nested. Also, technically, the data should remain the same and it should really be dealt with on rendering.
I'm wondering if I'm missing something and why this is not best done internally within GXT?
Anyone has any thought?
Caused by: com.google.gwt.core.client.JavaScriptException: (Error):
number: -2147467259
description:
at com.extjs.gxt.ui.client.core.XTemplate$.overwrite$(Native Method)
at com.extjs.gxt.ui.client.widget.ListView.refresh(ListView.java:278)
at com.extjs.gxt.ui.client.widget.ListView$1.storeDataChanged(ListView.java:453)
at com.extjs.gxt.ui.client.store.StoreListener.handleEvent(StoreListener.java:30)
at com.extjs.gxt.ui.client.store.StoreListener.handleEvent(StoreListener.java:1)
at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:74)
at com.extjs.gxt.ui.client.store.ListStore.onLoad(ListStore.java:180)
at com.extjs.gxt.ui.client.store.ListStore$1.loaderLoad(ListStore.java:131)
at com.extjs.gxt.ui.client.event.LoadListener.handleEvent(LoadListener.java:24)
at com.extjs.gxt.ui.client.event.LoadListener.handleEvent(LoadListener.java:1)
at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:74)
at com.extjs.gxt.ui.client.data.BasePagingLoader.onLoadSuccess(BasePagingLoader.java:88)
at com.extjs.gxt.ui.client.data.BasePagingLoader.onLoadSuccess(BasePagingLoader.java:1)
at com.extjs.gxt.ui.client.data.BaseLoader$1.onSuccess(BaseLoader.java:119)
at com.extjs.gxt.ui.client.data.RpcProxy$1.onSuccess(RpcProxy.java:33)
at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:215)
at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl(Request.java:254)
at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch(Request.java:226)
at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:217)