Did you expose a "form_show" controller? Look at
https://bitbucket.org/_amol_/tgext.ajaxforms#rst-header-showing-the-formthere
is a "form_show = ajaxform(test_form)" attribue declared into the
RootController.


On Sat, Mar 22, 2014 at 1:13 AM, Diego García <[email protected]>wrote:

> Now my form and running, but as I call it from the controller root in
> TurboGears 2.3.2
>
> @ajaxloaded
> class TestForm(twf.TableForm):
>     class child(twf.TableLayout):
>         name = twf.TextField('Name',
> validator=validators.String(not_empty=True))
>         surname = twf.TextField('Surname',
> validator=validators.String(not_empty=True))
>     ajaxurl = '/form_show'
>     action = '/form_submit'
>     submit_text = "GO"
>
>
> I'm calling this way
>
>     @expose('pruebas.templates.ajax')
>     def ajax(self, *args, **kw):
>         return dict(page='demo', form=TestForm)
>
>
> but did not generated. If I remove the decorator @ ajaxloaded the form is
> generated without problem
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/turbogears.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply via email to