On Sun, Dec 14, 2008 at 5:58 PM, Stefan Scott <stefanscottal...@gmail.com>wrote:

>
> OK, I've gotten through the tutorial (page 23).
>
> I was doing a bit of testing - I tried putting a string of length 2
> into field 'desc' (which is supposed to be at least 3 characters
> long), and I didn't get an error message.


That's weird.


>
>
> Too tired now to check to see if the validation code for 'desc' is
> actually getting called - will look later.
>
>
> I also added another field ('location', varchar(63)) which accepts
> null values


I would strongly advise against allowing null values to float around in your
code.  There are plenty of ways to avoid nulls in Scala code (Option/Can)
and Lift does not do null checking because of this.


> , and used <table> rather than <ul> so as to display rows
> with aligned columns. While clicking around some more I noticed that
> if the record has been saved and the 'location' field is null there's
> nothing to click on to make it "swap" from a displayed field to an
> editable field - in case you wanted to enter a 'location' later.
>
>
> Next I'll probably want to poke around and see what lines I have to
> change to try it with H2 instead of Derby.
>
>
> All in all, very exciting to have a working Ajaxified CRUD web-db in
> so few lines of code in a compiled, type-safe language.
>
>
> - Stefan Scott
>
>
>
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

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

Reply via email to