We could add another method that takes a Package and then deprecate the one that takes a String?
On Wed, Feb 18, 2009 at 1:13 PM, Tim Perrett <he...@timperrett.com> wrote: > > > This appears to be a trade off between marginal code verbosity and > compile time checking... Viktor's solution could be the way to go > however - this would be a massive breaking change though, as this > would screw every lift app in existence! > > Cheers, Tim > > On Feb 18, 10:38 am, Viktor Klang <viktor.kl...@gmail.com> wrote: > > Ok, what about this: > > > > Why not have addToPackages take an actual Package? > > > > usage: > > > > addToPackages(com.my.stuff.SomeClass.getPackage) ? > > > > This would prevent stuff from breaking if you refactor/move some classes. > > > > Worth thinking about? > > > > Cheers, > > Viktor > > > > On Wed, Feb 18, 2009 at 10:58 AM, Charles F. Munat <c...@munat.com> > wrote: > > > > > > > > > > > > > Ah! That was it. Forgot I changed the name of the app, and didn't > change > > > it there. Thanks very much! That saved me a lot of trouble. > > > > > Chas. > > > > > Jean-Luc wrote: > > > > Is your LiftRules defined according to your snippet package ? > > > > > > Exemple of addToPackages rule for snippets in > "org.ansoft.myapp.snippet" > > > > package : > > > > LiftRules.addToPackages("org.ansoft.myapp") > > > > > > Jean-Luc > > > > > > 2009/2/18 Charles F. Munat <c...@munat.com <mailto:c...@munat.com>> > > > > > > Everything starts fine, but when I try to go to the home page of > the > > > > app, I get this: > > > > > > XML Parsing Error: prefix not bound to a namespace > > > > Location:http://localhost:9988/ > > > > Line Number 81, Column 5: <choose:logged_out> > > > > ---------------------------^ > > > > > > And this: > > > > > > WARN - Snippet Failure: SnippetFailure(/ -> > > > > ParsePath(List(index),,true,false),Full(LoginOps.login),Class Not > > > Found) > > > > WARN - Snippet Failure: SnippetFailure(/ -> > > > > ParsePath(List(index),,true,false),Full(Misc.logo),Class Not > Found) > > > > WARN - Snippet Failure: SnippetFailure(/ -> > > > > ParsePath(List(index),,true,false),Full(Menu.navbar),Stateful > > > Snippet: > > > > Dispatch Not Matched) > > > > WARN - Snippet Failure: SnippetFailure(/ -> > > > > ParsePath(List(index),,true,false),Full(Messages),Class Not > Found) > > > > WARN - Snippet Failure: SnippetFailure(/ -> > > > > ParsePath(List(index),,true,false),Full(error_class),Class Not > Found) > > > > WARN - Snippet Failure: SnippetFailure(/ -> > > > > ParsePath(List(index),,true,false),Full(warning_class),Class Not > > > Found) > > > > WARN - Snippet Failure: SnippetFailure(/ -> > > > > ParsePath(List(index),,true,false),Full(notice_class),Class Not > > > Found) > > > > > > Did I screw something up or did I miss an update? Any ideas? > > > > > > Chas. > > > > > > -- > > > > Jean-Luc Canela > > > > jlcane...@gmail.com <mailto:jlcane...@gmail.com> > > > > -- > > Viktor Klang > > Senior Systems Analyst > > > -- Viktor Klang Senior Systems Analyst --~--~---------~--~----~------------~-------~--~----~ 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 liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---