nederhoed wrote:
> When I return a TableForm instance:
>
> @expose(format='json')
> def blabla
> return dict(value=<some TableForm>.render())
>
> the column before submit shows a strange character. In widgets, it is
> set to "&#160;" indicating a blank space "&nbsp;".
>
> Somehow, it seems to be encoded differently.
>
> Known problem?

You should not pass the rendered output to the template but the form
instance:

@expose(format='json')
def blabla
     return dict(form=<some TableForm>)

and in your template:

form.render()

Ciao
Michele


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to