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 <[email protected]> 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 <[email protected]> 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 <[email protected] <mailto:[email protected]>> > > > > 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 > > > [email protected] <mailto:[email protected]> > > -- > 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 [email protected] 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 -~----------~----~----~----~------~----~------~--~---
