Hi. I see, I'm bringing traffic into this mailing list. Just give me a hint, when I will start to be boring. :)
I just want to point out that we are now discussing an example of the component - the document editor. Initially I was introducing a more abstract framework for building complete web applications from sets of components. > > Now I understand - this is clearly my design fault. I've checked the > > documentation once again. The misuse is that our components also store data. > > There is, for instance, document editor, which stores document that the user > > edits. That is, our components are stateful. What are the recommendations to > > deal with data? > > Is it possible to abstract the data out of your components without a > complete rewrite, i.e. make document editor into a flyweight[1] class? > The point being that all of the data is stored under one API (one or > more classes) and the document editor is rewritten to access the data > using that API. Document I am talking about is pure DOM document. Document editor already changes/manages it through an API, DOM API, so actually nearly no rewrite is needed. But what exactly do I do with the document instance? Of course, it is possible to extract document-related data from the document editor. But where do I store it? This is my question. I'm new to Avalon and the question is: if components should be stateless, then how application state is saved? Speaking about web applications, state information may be stored in a session and components somehow gain access to it. Is this the preferred way I should follow? > Not being familiar with your app I don't know how big of a project this > would be, but I'm guessing it'd probably be well worth it, especially if > you're committed to Avalon at this point. We're not afraid of development, you know. But I (personally) need deeper knowledge of Avalon to avoid faulty design. The question about data storage is right now very interesting. :) Dipl.-Inform. Alexei Valikov e-mail : [EMAIL PROTECTED] Forschungszentrum Informatik (FZI) Telefon : (+49) 721 9654 716 Haid-und-Neu-Str. 10-14 Fax : (+49) 721 9654 709 76131 Karlsruhe GERMANY -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>