I found that I can send the Mapper.toForm xml directly in an
XmlResponse, rather than try to output JSON.
However, that brought up another problem - bug, maybe - in that when I
send

 Full(XmlResponse(item.toForm(Full("Save"), { _.save })))

I get the following error:

undefined entity
[Break on this error] <td>&nbsp;</td>

This line is inserted before the Save button in the Mapper-generated
form.

Glenn

On Nov 10, 2:40 pm, glenn <gl...@exmbly.com> wrote:
> I'm using XMLApiHelper to dispatch a JsonResponse to the client. My
> problem is I don't see how to consume the JSON object in my template,
> which calls a snippet
>
>   myform(xhtml:NodeSeq):NodeSeq =  toForm(Empty,"")
>
> that outputs an empty Mapper form on the client.
>
> The JSON object is just the Mapper converted to JSON. I want the
> fields to be filled in with the data from the JsonResponse.
>
> Any help would be appreciated.
>
> Glenn
--~--~---------~--~----~------------~-------~--~----~
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