Jack,
Could you please suggest the best way to approach this problem.
We are processing updates from an editable grid in our application server. However some of the updates may fail validation in the app server. So the failed updates are sent back to the browser and re-applied to the grid. Hence the user can see the modifications that failed.
To achieve this we return the failed updates as well as the grid contents in the JSON. I subclassed the Ext.data.JsonReader and overrode readRecords to extract the failed updates from the response. My reader stashes the updates with the grid for processing by a data store load listener. This largely works but has a strange effect.
Following a response with some failed updates, subsequent requests are issued multiple times. The number of duplicate requests increases as more responses are received.
So my key question is how should I go about modifying the JSON handling.
Thanks for any and all suggestions,
Regards,
Gordon
Update: This behaviour is only provoked after the server responds with a HTTP 500 or other error. So I'm now considering how loadExceptions are handled.
#2
03-14-2007, 01:26 PM
|
|
It's hard to say without seeing some code. To me, it sounds like you might be attaching or instantiating something within an event handler which would cause it to show up multiple times with the number of times increasing with the number of times that event handler is called.
|
#3
03-15-2007, 09:43 AM
|
|
Issue resolved
I've fixed this bug. It was a problem in my code.
Basically multiple handlers were being added to a button. There was a boolean variable which was supposed to prevent this but it was sometimes null rather than true or false.
Regards,
Gordon
|
分享到:
相关推荐
Extending and Embedding PHP-english chm格式 有需要php扩展开发的,可以下载
Oralce Hyperion Essbase - Extending Essbase Analytic Capabilities-培训资料 At the end of this lesson, you should be able to: Describe the architecture of Hyperion Analyzer List the key features of ...
an4566-extending-the-dac-performance-of-stm32-microcontrollers-stmicroelectronic
Emdash永远扩展到宇宙 抽象的 破折号———————不够长 特征 破折号越长 安装 npm install --save emdash-... script type =" text/javascript " src =" emdash-extending-forever-into-the-universe.min.js " >
Extending and Automating a Systems-Theoretic Hazard Analysis for Requirements Generation and Analysis.zip
Efficient 1-Out-of-n Oblivious Transfer Schemes with Universally Usable Parameters n选一不经意传输实现 1-out-of-N oblivious transfer 高效实现
X-means的聚类算法介绍,比K-means更加准确,效率更高。
Extending Python for High- PerformanceData-Parallel ProgrammingSiu Kwan Lam March 24, 2014Python for Data AnalyticsWhy Python? ● High-level scripting language○ Dynamic-typed, Garbage Collected ● ...
Explore, debug, and get practical by extending the sample projects, including a sample RESTful API project in Ext JS 6 Gain a quick and easy understanding through working source code and get an ...
oracle rac 论文
使用特定于项目的bot扩展团队_Extending the team with a project-specific bot.pdf
Extending-Directives-Blog-Post-Code 在我的博客文章中使用的代码,我解释了一些在 AngularJS 中扩展指令的技术。 阅读博客文章: :
Chapter 2: Overview of Ext JS 4 Chapter 3: Understanding the Ext JS 4 API Chapter 4: Controls and Layout Chapter 5: Working with Data Chapter 6: Data Controls Chapter 7: Drag and Drop Chapter 8: ...
使用Python和R扩展Power BI 使用Python和R扩展Power BI
Jupyter渲染器 这是一个 ,由针对常见文件和MIME类型的 mimerender扩展组成。 配套 名称 哑剧类型 文件扩展名 信息 application/vnd.fasta.fasta .fasta ... .vg , .vl , .vg.json , .vl.json ,
计算机视觉Github开源论文 NAS-BENCH-201 EXTENDING THE SCOPE OF RE- PRODUCIBLE NEURAL ARCHITECTURE SEARCH
Chapter 15 - Extending Classes Chapter 16 - Multiple Inheritance in C++ Chapter 17 - OO for Graphical User Interfaces, A Tour of Three Toolkits Chapter 18 - Multithreaded Object-Oriented Programming ...
Table of Contents •Determining Whether the Device Is Ready •Retrieving Information About the Device •Creating a Persistent Navigation System ...•Extending PhoneGap with Plug-ins
Chapter 15 - Extending Classes Chapter 16 - Multiple Inheritance in C++ Chapter 17 - OO for Graphical User Interfaces, A Tour of Three Toolkits Chapter 18 - Multithreaded Object-Oriented Programming ...
什么? 演示扩展Tailwind CSS高度实用程序。 请参考tailwind.config.js 怎么跑 这是通过create-react-app引导的。 因此,安装NPM软件包并启动它。 yarn优先。 $ yarn $ yarn start