What's wrong with this?
============ AP.scala (extract)
def list(xhtml: NodeSeq) = {
System.err.println("*************** list: " + xhtml)
Airport.findAll.flatMap(ap => bind("ap", xhtml,
"code" -> ap.code, "lat" -> ap.lattitude, "lon" ->
ap.longitude))
}
============ airports.html ===========
<lift:surround with="default" at="content">
<table>
<lift:AP.list>
<tr>
<td><ap:code>XYZ</ap:code></td>
<td><ap:lat>0</ap:lat></td>
<td><ap:lon>To Do</ap:lon></td>
</tr>
</lift:AP.list>
</table>
</lift:surround>
============ http://localhost:8080/airports ===============
XML Parsing Error: prefix not bound to a namespace
Location: http://localhost:8080/airports
Line Number 79, Column 15: <td><ap:code>XYZ</ap:code></td>
--------------^
============ console log ===========
*************** list:
<tr>
<td><ap:code>XYZ</ap:code></td>
<td><ap:lat>0</ap:lat></td>
<td><ap:lon>To Do</ap:lon></td>
</tr>
WARN - Snippet Failure: SnippetFailure(/airports -> ParsePath(List
(airports),,true,false),Full(AP.list),Method Not Found)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---