[Arp] Accessing views from other views

Keith Peters kp at bit-101.com
Thu Jan 6 14:08:48 PST 2005


I guess it's not really that bad, there are just a lot of view events.
I guess I'm not sure if some of them are really view events or should be
sent to a controller.
For instance, imagine you are viewing some content, and you want to zoom or
rotate it. It's not affecting the model at all, so I'm handling all that in
the view without delegating to the controller. It would seem a waste to send
it to the controller just to have the controller send it back to the view.
It just seems like the view is doing a whole lot more work than it seems a
view should do. My concept of a view is that is just sends events to the
controller and observes the model. But I'm still learning this mvc stuff. ;)
Keith 

> -----Original Message-----
> From: Arp-bounces at ariaware.com 
> [mailto:Arp-bounces at ariaware.com] On Behalf Of Aral Balkan
> Sent: Thursday, January 06, 2005 3:11 PM
> To: General List for Ariaware RIA Platform users and developers
> Subject: Re: [Arp] Accessing views from other views
> 
> Hi Keith,
> 
> Where exactly do you feel it's getting cluttered. Let's work 
> from there :)
> 
> Is it the layout code? Do you think perhaps it's reached the 
> point where you need a separate LayoutManager class of some 
> sort to handle it?
> 
> Aral
> 
> Keith Peters wrote:
> 
> >This is pretty much what I'm doing, but I find my view code 
> is getting 
> >pretty complex. I have a floating, dockable toolbar as one 
> subform, and 
> >a floating dockable window with an accordion that contains 
> other forms. 
> >There is all kinds of layout logic going on, based on what is docked 
> >and where. I definitely don't want that stuff in the controller, but 
> >the view is getting pretty cluttered. Any suggestions?
> >Keith
> >
> 
> 
> _______________________________________________
> Arp mailing list
> Arp at ariaware.com
> http://ariaware.com/mailman/listinfo/arp_ariaware.com
> 
> 




More information about the Arp mailing list