You need to change the html to:
<lift:Bookmark.add form="post">
Otherwise lift does not render for the form element.
Cheers, Tim
On 28 Dec 2009, at 23:01, greekscala wrote:
> Hello Lift people!
>
> I am experimenting with Lift for building a web application.
> I read alot on the list on the ajax subject and I think I get more
> familiar with.
>
> I try to get a form submittet with ajax. I want an easy solution
> without much
> code writing. I tried the following suggestion as found here in the
> list:
>
> SHtml.ajaxForm(
> bind("bookmark", xml,
> "url" -> SHtml.text(url, url = _),
> "submit" -> SHtml.submit("add", addBookmark)
> ) ++ SHtml.hidden(addBookmark)
> )
>
> I am using a StatefulSnippet. My little template:
>
> <lift:surround with="default" at="col3">
> <div id="addb">
> <lift:Bookmark.add>
> <bookmark:url />
> <bookmark:submit />
> </lift:Bookmark.add>
> </div>
> </lift:surround>
>
> The form gets rendered but not submitted when the "add" button is
> clicked.
> I have a freshly build 1.1-snapshot and using simple-build-tool
> (running jetty).
>
> Do not understand it. Without Ajax it works.
>
> with best regards
>
> --
>
> 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.
>
>
>
--
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.