I haven't used children for dataform widget.
Only when using widget as form field.
So you can either use widget-presentation for child widgets or override 
widget-children

пятница, 17 октября 2014 г., 12:44:21 UTC+3 пользователь Fred написал:
>
> Hello,
>
> I apologize, my previous post is not accurate enough.
>
> Quickform is a widget, so it should have childrens.
>
> But in the following example render a quickform
> with childrens do not seems to works :
>
> The children is never rendered.
>
>
> (defview qfview (:type form 
>                        :persistp nil)
>   (name :requiredp t 
>         :required-indicator nil 
>         :label "Name"))
>
> (defun make-page ()
>   (let ((qf (make-quickform 'qfview)))
>     (setf (widget-children qf)        
>            (make-widget
>             (lambda (&rest args)
>               (declare (ignore args))
>               (with-html (:p "Children)))))
>     qf))
>              
> (defun init-user-session (root)
>   (setf (widget-children root)
>         (make-page)))
>
> Thanks.
>
> Le vendredi 17 octobre 2014 09:36:31 UTC+2, o_z a écrit :
>>
>>
>>
>> четверг, 16 октября 2014 г., 23:46:36 UTC+3 пользователь Fred написал:
>>>
>>> Hi,
>>>
>>> After an update of weblocks, i found the render-widget system that
>>> loop over the childrens of the root widget, broken in the Dataform 
>>> widget.
>>>
>>> In my code, i put some childrens in the Quickform widget
>>> (Quickform inherits from Dataform).
>>>
>>> On 4 Jul 2013, appears a update of dataform code 
>>> that cause the trouble :
>>>
>>> https://github.com/skypher/weblocks/commit/af617413a1ca22e6891b34b93fa81e936209d702
>>>
>>> Why a new "widget-children" method in this class (Dataform) that breaks 
>>> the render-widget engine ?
>>>
>> This is needed to add widgets as view fields for dataform.
>> There is a bug, but it doesn't break render-widget system. 
>>
>>>
>>> Thanks.
>>>
>>> Best Regards
>>> --
>>> Fred
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weblocks" 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/weblocks.
For more options, visit https://groups.google.com/d/optout.

Reply via email to