In addition to what Marius said:

On Sun, Sep 21, 2008 at 11:13 PM, philip <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I have some questions as I have been developing and reading examples.
>
> 1. How can I put validation error messages next to the fields
> themselves?
>

This functionality is about 1/2 way there.  It'll get closer as we finish
tying together forms and input validation stuff.  See another active thread
on this.


>
> 2. Is there any example of use of the controller directory, I saw the
> directory in one example but no files in it. I understand from a
> previous email I read that controllers are not preferred as there may
> be many controls on a single page.


This is a vestige of an older Lift design that, every time I try to remove
it, someone gets cranky.  So... it stays there and can generally be ignored
unless you're using a particular idiom for building REST/web services.


>
>
> 3. Why does stateful snippit have a dispatch but other snippits do
> not. Is there any other information about dispatch around?


If your snippet implements DispatchSnippet, you have greater control over
how the snippet gets mapped.  This will become officially recommended pretty
soon.


>
>
> 4. For the DB, it is lazy loading? ie, if I navigate from one object
> to another does it query DB when I navigate down a mapped class to
> class relationship?


Yes and the tree is cached so if you do a subsequent .obj on a reference,
there's no additional DB hit.


>
>
> 7. Why are the DB classes named as such, MappedString,
> MetaMegaProtoUser. Mapped makes sense, its mapped to the database
> right. Meta Mega Proto seems, complex, what does it mean?


Proto are prototype traits.

Meta is the "singleton" that is necessary for the Lift Mapper classes to
work.

Mega extends whatever it extends.  MegaProtoUser is a ProtoUser with a bunch
of extra functionality built in.


>
>
> 8. It seems I prefer bind method over having XML for form in the
> class. Does anyone have reasons for and against either method?
>

I tend to do initial prototyping with inline XHTML and then break the XHTML
out into files and use bind as I add people to projects.

Thanks,

David



>
> Thanks, Philip
>
>
>
> >
>


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

Reply via email to