Re: ImageUploadForm throwing an error

Nobuko Asakai <[email protected]>
Newsgroups gmane.linux.redhat.ccm.general
Message-ID <[email protected]>
Hey Graham,

ImageUploadForm extends BasicImageForm which extends Form so the widgets 
in the form are all added to the Form. However, you still need to make 
sure that the form is added to the authoring step container, like it is 
in ArticleImage.

By the way I think the way MultipartArticle handles adding images to 
sections will be a better example if you're trying to make a widget that 
would add images to any content type.

Nobuko

Graham Lally wrote:

> Hi there,
>
> I'm trying to adapt ArticleImage to use more than one image for a 
> content type, but when I access the "Images" authoring step in the 
> cms, I get this error:
>
>
> Widget com.arsdigita.bebop.form.Hidden@27a3b9 [form.ImageUploadForm] 
> (form.ImageUploadForm) isn't associated with any Form
> java.lang.RuntimeException: Widget 
> com.arsdigita.bebop.form.Hidden@27a3b9 [form.ImageUploadForm] 
> (form.ImageUploadForm) isn't associated with any Form
>   at com.arsdigita.bebop.form.Widget.getForm(Widget.java:288)
>   at com.arsdigita.bebop.form.Widget.getParameterData(Widget.java:605)
>   at com.arsdigita.bebop.form.Widget.generateWidget(Widget.java:517)
>   at com.arsdigita.bebop.form.Widget.generateXML(Widget.java:475)
>   at 
> com.arsdigita.bebop.ColumnPanel.generateChildren(ColumnPanel.java:422)
>   at com.arsdigita.bebop.ColumnPanel.generateXML(ColumnPanel.java:238)
>   at com.arsdigita.bebop.Form.generateXMLSansState(Form.java:234)
>   at com.arsdigita.bebop.Form.generateXML(Form.java:194)
>   at 
> com.arsdigita.bebop.SimpleContainer.generateXML(SimpleContainer.java:245)
>   at 
> com.company.cms.ui.authoring.OneImage.generateXML(ProcessImage.java:180)
>   at 
> com.company.cms.ui.authoring.OneImages.generateXML(ProcessImages.java:63)
> [...]
>
>
> Doesn't ImageUploadForm associate itself with the hidden form element 
> when it creates it? Otherwise, what am I missing elsewhere?
>
> Cheers,
> .g
>
>


-- 
Redhat-ccm-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-ccm-list
Archives: https://www.redhat.com/pipermail/redhat-ccm-list/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.