[TYPO3-core] RFC #12130: Improve performance of flashmessages

Rupert Germann rupi at gmx.li
Wed Oct 7 09:01:49 CEST 2009


hi,

Xavier Perseguers schrieb:
> If you think of how ExtJS-based modules are done, the idea is to provide 
> a framework for extensions with toolbar and the rest, meaning the 
> extension should not have to worry about how flash message are rendered, 
> this is done by the ExtJS framework. If you want AJAX to push messages 
> to DOM, then it implies that the ExtJS framework should provide an API 
> for making AJAX request, intercept such flash messages and then clean-up 
> the response and send it back to the originator module. That sounds a 
> bit complicated to implement, if "possible" at all.

I'd say it's already implemented ;-)
in Classes/ExtJS/Controller/ActionController.php the flashmessages are
- fetched from the queue,
- rendered (which is way easier with the changed API)
- then they are written to an EXTjs panel obj
- this extjs panel is executed

ähhhm, that's exactly what you say is too complicated. It needs only a 
little adaption to the new (cleaner) API.

attached are two patches:
1. 12130 v5 which uses a static class member to store the messages
2. a patch for mvc_extjs making it use the new API

extjs flashmessages work, no problem!

So, where is the reason for storing "persistent" flashmessages in the 
DB, session or whatever?

greets
rupert






More information about the TYPO3-team-core mailing list