Re: View references

"Simen Brekken" <[email protected]>
Newsgroups gmane.comp.web.maverick.general
Message-ID <000b01c2f6fd$daf1be70$0200000a@moonraker>
MessageI read that, I just don't see the benefit of that implementation over the automatic lookup, most medium-large applications will always have something like a common error-page, perhaps a login page etc.
  ----- Original Message ----- 
  From: jim moore 
  To: [email protected] 
  Sent: Sunday, March 30, 2003 8:30 PM
  Subject: RE: [Mav-user] View references


  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.