Thanks David - I'm not an HTML guy myself either - I've avoided web
apps for years because my mind turns to mush when confronted with
"dynamic typing" - I *love* Scala's type system and what you're doing
with it...

Anyways I was just going to post that I did take a stab at the same
solution you offered - and it worked!



In file ~\webapps\todo\src\main\webapp\index.html I simply changed
tags:

<ul> ... </ul>
-->
<table> ... </table>

<li> ... </li>
-->
<tr> ... </tr>

<todo:FIELDNAME> ...  <todo:FIELDNAME>
-->
<d> <todo:FIELDNAME> ...  <todo:FIELDNAME> </d>


in:

        <ul>
          <todo:list>
            <li>
              <todo:loc>Location</todo:loc>
              <todo:check><input type="checkbox"/></todo:check>
              <todo:priority>
                <select><option>1</option></select>
              </todo:priority>
              <todo:desc>To Do</todo:desc>
            </li>
          </todo:list>
        </ul>


yielding:

        <table>
          <todo:list>
            <tr>
              <td>
                <todo:loc>Location</todo:loc>
              </td>
              <td>
                <todo:check><input type="checkbox"/></todo:check>
              </td>
              <td>
                <todo:priority>
                  <select><option>1</option></select>
                </todo:priority>
              </td>
              <todo:desc>To Do</todo:desc>
            </tr>
          </todo:list>
        </table>

It looks like /lift/ really does keep the markup separate from the
logic (ie the curried Ajax methods to edit, validate and format
individual fields) - if a relative HTML novice like me from the object-
oriented / functional world (the language I'm most comfortable with is
Maude) could get it right on the first guess!

- Stefan Scott


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