On Mon, Dec 8, 2008 at 10:27 AM, Dano <dan_ole...@yahoo.com> wrote:

>
> David,
>
> Since I am really interested in view/logic separation, I focused on
> sections 1.5 and 1.6.  My overall feedback is that I really like
> starting with the example and following up with the philosophy.  Also,
> you accomplished the goal of telling the reader how the separation is
> accomplished as well as where the 'guard rails' are to enforcing a
> proper separation.  Finally, having attended the lift workshop and
> trying to puzzle thru the ToDo example afterwards, I am thankful for
> this document so that I can gain a proper understanding of what is
> going on.
>
> In section 1.5, you describe the snippet lookup mechanism.  There is a
> sentence which I don't understand:
>
>              Lift will convert underscore separated names to
> CamelCase names when it looks up classes.
>
> I am having trouble understanding which underscores you are referring
> to.
>
>
> In section 1.6 there is a code snippet which looks like:
>      <td><f:year>
>           <select><option>2007</option></select>
>       </f:year></td>


Dan,

Good suggestion.  I'm about to commit up code that will allow you to do:

<td>
<f:year f:id="FruitBat" f:class="myFruit">
 ....
</f:year>
</td>

The <select> tag that is bound to will have its id attribute set to
"FruitBat" and its class attribute set to "myFruit"

Thanks,

David


>
> The year snippet replaces the <select /> above with a <select>
> generated from the snippet code.   If I want the HTML designer to be
> able to style the above select with css code, what is the guideline?
> Should the select above have a class attribute?  Also, if I want my
> view to be testable, should I include an id attribute as well?
>
> I really enjoyed the example and will dive in further as time permits.
>
> Thanks.
>
>
> Dano
>
>
>
>
> On Dec 5, 5:09 pm, "David Pollak" <feeder.of.the.be...@gmail.com>
> wrote:
> > Folks,
> >
> > I've got a first draft of the first Lift tutorial: a ToDo application.
> >
> > The application demonstrates creating a new Lift project, creating a
> model,
> > linking the view to logic, adding validation and form input to the model,
> > creating forms, and doing Ajax calls.
> >
> > I'm enclosing the PDF of the tutorial along with the resulting
> application.
> >
> > Please let me know if you've got feedback on it.
> >
> > Thanks,
> >
> > David
> >
> > --
> > Lift, the simply functional web frameworkhttp://liftweb.net
> > Collaborative Task Managementhttp://much4.us
> > Follow me:http://twitter.com/dpp
> > Git some:http://github.com/dpp
> >
> >  todo_steps.pdf
> > 206KViewDownload
> >
> >  todo.tgz
> > 9KViewDownload
> >
>


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