RE: View references

"jim moore" <[email protected]>
Newsgroups gmane.comp.web.maverick.general
Message-ID <000501c2f6ea$5fcf5a80$f901a8c0@winston>
if you want behavior where the global views are referenced by all commands,
you can use a transformation on maverick.xml. if specified, maverick will
run maverick.xml through an xsl before loading it. This xsl could easily
copy all global views for you under each command. actually--this has come up
so often on this list that someone may have already written an xsl to do
this.
 
--jim

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Simen Brekken
Sent: Sunday, March 30, 2003 1:03 PM
To: Mav-user
Subject: [Mav-user] View references


Why is it that in order to use global views for stuff like "login" one has
to repeat:
 
<view ref="loginRequired" />
 
In absolutely every controller that uses that reference, why can't the
global view be referenced automatically when there is no local view with
that id?
 
For me it seems it's better to make a static variable in my authenticated
base controller holding the name of the url a failed login should be
redirected too than repeating an endless number of identical nodes.
 
Dazed and confused!

___
SIMEN BREKKEN / in his prime.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.