Done. http://liftweb.net/index.php/LiftTags#surround
Chas. Mateusz Fiołka wrote: > I also lost half a day with this error. Is this rule at least documented > anywhere? > > Regards, > Mateusz > > > On Thu, Sep 25, 2008 at 9:38 PM, Charles F. Munat <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > > Ah, ha! I knew it had to be something simple like that. Good to know > that hidden-templates can't reuse the names of directories. Thanks! > > Chas. > > David Pollak wrote: > > Charles, > > > > The "admin" template was conflicting with the /admin/ directory. > Change > > the name of the template to admin2.html rather than admin.html and > > change your 'with="admin"' to 'with="admin2"' and it'll work. > > > > Thanks, > > > > David > > > > Charles F. Munat wrote: > >> I changed the calling template to (exactly): > >> > >> <lift:surround with="admin" at="content"/> > >> > >> I changed admin.html to (exactly): > >> > >> <html/> > >> > >> I did mvn clean and mvn jetty:run -U. > >> > >> I get the same error: > >> > >> Exception occured while processing / > >> > >> Message: java.lang.IllegalArgumentException: line 6 does not exist > >> scala.io.Source.getLine(Source.scala:280) > >> scala.io.Source.report(Source.scala:368) > >> scala.io.Source.reportError(Source.scala:355) > >> scala.io.Source.reportError(Source.scala:344) > >> > > scala.xml.parsing.MarkupParser$class.reportSyntaxError(MarkupParser.scala:1113) > >> > > net.liftweb.util.PCDataXmlParser.reportSyntaxError(PCDataMarkupParser.scala:77) > >> > > scala.xml.parsing.MarkupParser$class.reportSyntaxError(MarkupParser.scala:1117) > >> > > net.liftweb.util.PCDataXmlParser.reportSyntaxError(PCDataMarkupParser.scala:77) > >> > scala.xml.parsing.MarkupParser$class.document(MarkupParser.scala:186) > >> > net.liftweb.util.PCDataXmlParser.document(PCDataMarkupParser.scala:77) > >> > net.liftweb.util.PCDataXmlParser$.apply(PCDataMarkupParser.scala:88) > >> > > net.liftweb.http.TemplateFinder$$anonfun$findAnyTemplate$1$$anonfun$apply$49.apply(LiftSession.scala:1036) > >> > > net.liftweb.http.TemplateFinder$$anonfun$findAnyTemplate$1$$anonfun$apply$49.apply(LiftSession.scala:1036) > >> net.liftweb.util.Full.flatMap(Can.scala:266) > >> > > net.liftweb.http.TemplateFinder$$anonfun$findAnyTemplate$1.apply(LiftSession.scala:1036) > >> > > net.liftweb.http.TemplateFinder$$anonfun$findAnyTemplate$1.apply(LiftSession.scala:1036) > >> scala.Function1$$anonfun$andThen$1.apply(Function1.scala:48) > >> scala.Stream$class.flatMap(Stream.scala:430) > >> scala.List$$anon$1.flatMap(List.scala:1307) > >> scala.Stream$$anonfun$flatMap$1.apply(Stream.scala:435) > >> scala.Stream$$anonfun$flatMap$1.apply(Stream.scala:435) > >> scala.Stream$class.append(Stream.scala:255) > >> scala.List$$anon$1.append(List.scala:1307) > >> scala.Stream$class.flatMap(Stream.scala:435) > >> scala.List$$anon$1.flatMap(List.scala:1307) > >> scala.Stream$$anonfun$flatMap$1.apply(Stream.scala:435) > >> scala.Stream$$anonfun$flatMap$1.apply(Stream.scala:435) > >> scala.Stream$class.append(Stream.scala:255) > >> scala.List$$anon$1.append(List.scala:1307) > >> scala.Stream$class.flatMap(Stream.scala:435) > >> scala.List$$anon$1.flatMap(List.scala:1307) > >> scala.List$$anon$1.flatMap(List.scala:1307) > >> net.liftweb.util.ListHelpers$class.first(ListHelpers.scala:35) > >> net.liftweb.util.Helpers$.first(Helpers.scala:26) > >> > net.liftweb.http.TemplateFinder$.findAnyTemplate(LiftSession.scala:1036) > >> > net.liftweb.http.LiftSession.findTemplate(LiftSession.scala:509) > >> > net.liftweb.http.LiftSession.findAndMerge(LiftSession.scala:819) > >> net.liftweb.http.LiftSession.net > > <http://net.liftweb.http.LiftSession.net>$liftweb$http$LiftSession$$processSurroundElement(LiftSession.scala:813) > >> > > net.liftweb.http.LiftSession$$anonfun$_defaultLiftTagProcessing$1.apply(LiftSession.scala:653) > >> > > net.liftweb.http.LiftSession$$anonfun$_defaultLiftTagProcessing$1.apply(LiftSession.scala:647) > >> scala.PartialFunction$$anon$1.apply(PartialFunction.scala:38) > >> > > net.liftweb.http.LiftSession$$anonfun$processSurroundAndInclude$1$$anonfun$apply$35.apply(LiftSession.scala:671) > >> > > net.liftweb.http.LiftSession$$anonfun$processSurroundAndInclude$1$$anonfun$apply$35.apply(LiftSession.scala:671) > >> net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:24) > >> net.liftweb.http.S$.setVars(S.scala:589) > >> > > net.liftweb.http.LiftSession$$anonfun$processSurroundAndInclude$1.apply(LiftSession.scala:671) > >> > > net.liftweb.http.LiftSession$$anonfun$processSurroundAndInclude$1.apply(LiftSession.scala:668) > >> scala.Seq$class.flatMap(Seq.scala:267) > >> scala.xml.NodeSeq.flatMap(NodeSeq.scala:34) > >> > > net.liftweb.http.LiftSession.processSurroundAndInclude(LiftSession.scala:667) > >> > net.liftweb.http.LiftSession$$anonfun$8.apply(LiftSession.scala:344) > >> > net.liftweb.http.LiftSession$$anonfun$8.apply(LiftSession.scala:344) > >> net.liftweb.util.Full.map(Can.scala:264) > >> > net.liftweb.http.LiftSession.processRequest(LiftSession.scala:344) > >> net.liftweb.http.LiftServlet.net > > <http://net.liftweb.http.LiftServlet.net>$liftweb$http$LiftServlet$$dispatchStatefulRequest(LiftServlet.scala:222) > >> > net.liftweb.http.LiftServlet$$anonfun$1.apply(LiftServlet.scala:164) > >> > net.liftweb.http.LiftServlet$$anonfun$1.apply(LiftServlet.scala:164) > >> net.liftweb.http.S$.net$liftweb$http$S$$wrapQuery(S.scala:393) > >> > > net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_nest2InnerInit$1$$anonfun$apply$15.apply(S.scala:448) > >> net.liftweb.http.S$.net$liftweb$http$S$$doAround(S.scala:374) > >> > > net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_nest2InnerInit$1.apply(S.scala:446) > >> net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:24) > >> > net.liftweb.http.S$.net$liftweb$http$S$$_nest2InnerInit(S.scala:445) > >> > > net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun$apply$18$$anonfun$apply$19$$anonfun$apply$20$$anonfun$apply$21$$anonfun$apply$22.apply(S.scala:465) > >> net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:24) > >> > > net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun$apply$18$$anonfun$apply$19$$anonfun$apply$20$$anonfun$apply$21.apply(S.scala:464) > >> net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:24) > >> > > net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun$apply$18$$anonfun$apply$19$$anonfun$apply$20.apply(S.scala:463) > >> net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:24) > >> > > net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun$apply$18$$anonfun$apply$19.apply(S.scala:462) > >> net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:24) > >> > > net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1$$anonfun$apply$18.apply(S.scala:461) > >> net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:24) > >> > > net.liftweb.http.S$$anonfun$net$liftweb$http$S$$_innerInit$1.apply(S.scala:460) > >> net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:24) > >> net.liftweb.http.S$.net$liftweb$http$S$$_innerInit(S.scala:459) > >> > > net.liftweb.http.S$$anonfun$_init$1$$anonfun$apply$25$$anonfun$apply$26$$anonfun$apply$27$$anonfun$apply$28.apply(S.scala:488) > >> net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:24) > >> > > net.liftweb.http.S$$anonfun$_init$1$$anonfun$apply$25$$anonfun$apply$26$$anonfun$apply$27.apply(S.scala:487) > >> net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:24) > >> > > net.liftweb.http.S$$anonfun$_init$1$$anonfun$apply$25$$anonfun$apply$26.apply(S.scala:486) > >> net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:24) > >> > net.liftweb.http.S$$anonfun$_init$1$$anonfun$apply$25.apply(S.scala:485) > >> net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:24) > >> net.liftweb.http.S$$anonfun$_init$1.apply(S.scala:484) > >> net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:24) > >> net.liftweb.http.S$._init(S.scala:483) > >> net.liftweb.http.S$.init(S.scala:336) > >> net.liftweb.http.LiftServlet.doService(LiftServlet.scala:163) > >> > > net.liftweb.http.LiftServlet$$anonfun$doIt$1$1.apply(LiftServlet.scala:108) > >> > > net.liftweb.http.LiftServlet$$anonfun$doIt$1$1.apply(LiftServlet.scala:108) > >> > net.liftweb.util.TimeHelpers$class.calcTime(TimeHelpers.scala:227) > >> net.liftweb.util.Helpers$.calcTime(Helpers.scala:26) > >> > net.liftweb.util.TimeHelpers$class.logTime(TimeHelpers.scala:236) > >> net.liftweb.util.Helpers$.logTime(Helpers.scala:26) > >> net.liftweb.http.LiftServlet.doIt$1(LiftServlet.scala:107) > >> net.liftweb.http.LiftServlet.service(LiftServlet.scala:116) > >> > > net.liftweb.http.LiftFilterTrait$$anonfun$doFilter$3.apply(LiftServlet.scala:475) > >> > > net.liftweb.http.LiftFilterTrait$$anonfun$doFilter$3.apply(LiftServlet.scala:475) > >> net.liftweb.util.ThreadGlobal.doWith(ThreadGlobal.scala:24) > >> net.liftweb.http.URLRewriter$.doWith(RequestState.scala:341) > >> > net.liftweb.http.LiftFilterTrait$class.doFilter(LiftServlet.scala:474) > >> net.liftweb.http.LiftFilter.doFilter(LiftServlet.scala:488) > >> > > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) > >> > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) > >> > > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) > >> > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) > >> > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:756) > >> > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) > >> > > org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) > >> > > org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) > >> > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > >> org.mortbay.jetty.Server.handle(Server.java:324) > >> > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502) > >> > > org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:826) > >> org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:523) > >> > org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) > >> > org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:377) > >> > > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) > >> > > org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:497) > >> > >> > >> I don't know where the XML problem is, but I'm pretty sure it's > not in > >> my code. Ideas? > >> > >> Chas. > >> > >> > >> > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---