[Lift] Re: confusing error on missing bind

2009-10-25 Thread bob

indeed, you are correct. i thought the message was coming from Lift!

On Oct 24, 8:11 pm, Kris Nuttycombe kris.nuttyco...@gmail.com wrote:
 You'll notice if you look at the page source that the error you saw is
 actually generously provided by Firefox, not by Lift. There is an
 overload of bind that you could use that allow you to provide a
 default for any unbound value, although of course this can obscure
 errors. For a while there was also some code that gave more
 informative error messages if you were running the app in development
 mode, but for some reason I don't think I've seen those recently.

 Hmm. Perhaps I need to make sure I'm not doing development in
 production mode myself. :)

 Kris



 On Sat, Oct 24, 2009 at 5:39 PM, bob rbpas...@gmail.com wrote:

  the following error was the result of a bug in my app: i had an
  element (queries:service/) in the template which I had forgotten to
  bind in the snippet

 This page contains the following errors:
 error on line 18 at column 48: Namespace prefix queries on service is not 
 defined

  in a big red box

  first, there is no line 18 in the template, and line 18 in my
  source code is a blank line, so I couldn't tell which line (let alone
  which column column) it was referring to. and since the error appeared
  in the webpage (rather than, say Console), i expected it referred to
  line 18 in the template, but in fact my error was in the code.

  second, the error would be more informative if it said something along
  the lines of:

 . : Namespace prefix 'queries' on 'service'  in template index.html 
 was not bound
  or even

 . : queries:service in template index.html' was not bound

  thanks, bob
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[Lift] Re: confusing error on missing bind

2009-10-24 Thread Kris Nuttycombe

You'll notice if you look at the page source that the error you saw is
actually generously provided by Firefox, not by Lift. There is an
overload of bind that you could use that allow you to provide a
default for any unbound value, although of course this can obscure
errors. For a while there was also some code that gave more
informative error messages if you were running the app in development
mode, but for some reason I don't think I've seen those recently.

Hmm. Perhaps I need to make sure I'm not doing development in
production mode myself. :)

Kris

On Sat, Oct 24, 2009 at 5:39 PM, bob rbpas...@gmail.com wrote:

 the following error was the result of a bug in my app: i had an
 element (queries:service/) in the template which I had forgotten to
 bind in the snippet

This page contains the following errors:
error on line 18 at column 48: Namespace prefix queries on service is not 
defined

 in a big red box

 first, there is no line 18 in the template, and line 18 in my
 source code is a blank line, so I couldn't tell which line (let alone
 which column column) it was referring to. and since the error appeared
 in the webpage (rather than, say Console), i expected it referred to
 line 18 in the template, but in fact my error was in the code.

 second, the error would be more informative if it said something along
 the lines of:

. : Namespace prefix 'queries' on 'service'  in template index.html was 
not bound
 or even

. : queries:service in template index.html' was not bound


 thanks, bob

 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---