[Cppcms-users] rendering list of widgets::checkbox
Brought to you by:
artyom-beilis
From: augustin <aug...@ov...> - 2011-03-10 07:37:42
|
Hello Artyom, I have a form with a series of checkboxes. The number of checkboxes is variable and know at run time. I figured I could use a std::list of widgets::checkbox, and declare that within my form struct, but I am wondering how to render this in the template: http://art-blog.no- ip.info/wikipp/en/page/cppcms_1x_templates_comm#Rendering.Forms Will cppcms iterate itself over any STL class like a list or a map? A form containing simple widgets is easy enough to render: <% form as_p info %> but how would that look like if the form includes a std::list of widgets? Thanks, Augustin. -- Friends: http://www.reuniting.info/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |