Denstar,
1) Exists avanced caching system that can easily be adapted to MG
( see ehCache for example ).
These systems are able to mange cache on ram as on disk as you
require.
Do you think igh traffic site use only ram caching??
Is absolutely normal to craete more content caching in base of any
n number of variables you need.
2) We are not talking of breaking MVC pattern. MVC pattern do not tell
you from which layer
an event can be invoked. What MG doeas is to adapt an MVC pattern
to an url call.....that's it.
I will try again and I will let it go....
I want to cache a view ok??
This view needs data to produce an output ok???
I run my event first time.
Controller is fired and make logic for preparing data.
The views receives data make html and cache itself.
I recall the event.
The view is cached so do not need data but ..... controller is fired
in any case.
Is that right???
Is that efficient to you???
Andrea
On 28 Mag, 22:46, denstar <[email protected]> wrote:
> On Thu, May 28, 2009 at 6:22 AM, andreacfm wrote:
>
> > Sean,
>
> > makes no sense to me. Really.
> > This to me is an incredibly big limitation in MG.
> > I am quite surprised.
>
> As am I! If it were an incredibly big limitation, you'd think many,
> many other people would have run into it. ;)
>
> > I cannot believe there is no way to call an Event-Handler outside the
> > implicit event invocation.
>
> There is always a way, but the why is generally more important.
>
> I don't see anything in your use-case that suggests what you want to
> achieve can only be (or in face, should be) done in the view.
>
> But FWIW: Have you looked at the RemotingService stuff? Using MG with
> Flash, etc.?
>
> On the reals tho, I think you haven't quite wrapped your head around
> the MVC pattern (it's cool, neither have I).
>
> Portlets don't seem to be "views firing events" (as far as I can
> tell)-- check out the JSR:
>
> http://jcp.org/en/jsr/detail?id=168
>
> For the caching, sounds like you want to put a lot of stuff in each
> session? Lots of per-session caching seems kind of hard to scale out,
> but I'm no expert.
>
> Let's see if we can't come up with a real world, MG-style solution for
> your real-world example! I'm hot to try out the caching stuff too,
> right after I finish some play with Scaffolds.
>
> :DeN*
>
> --
> To be old can be glorious if one has not unlearned how to begin.
> Martin Buber
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---