[opencms-dev] CmsHtmlWidget request type of setter
Kunicke, Holger
holger.kunicke at av-studio.de
Fri Oct 10 13:58:13 CEST 2008
Hello Alkacon,
Hello Forum,
a same question posted from mark.lange at koeln.de at Sun, 8 Oct 2006 12:22:53 was also not answered. And I got the same problem and I need help, too.
I create a new Dialog, and in the function defineWidgets() I create these widgets:
addWidget(new CmsWidgetDialogParameter(m_event, "subtitle", PAGES[0], new CmsInputWidget()));
addWidget(new CmsWidgetDialogParameter(m_event, "abstract", PAGES[0], new CmsHtmlWidget()));
the class of the instance m_event has also getters and setters with String type:
public String getSubtitle() { return ... }
public String getAbstract() { return ... }
public void setSubtitle (String subtitle) {}
public void setAbstract (String abstr) {}
I notice that the setter setAbstract() was called, when the dialog commits. But the String which was send is empty !!
My question:
Is it correct to use String in the setter method, when using CmsHtmlWidget() or need I another type ?
And when the type String is correct, what is wrong?
I try to study the source-code of the xmlcontent-editor of OpenCMS, but I don't find there an answer for my Problem.
Kind Regards
Holger
Mit freundlichen Grüßen
Holger Kunicke
AV-Studio GmbH
am Dienstag, 26. Dezember 2006 um 10:02 schrieben Sie:
> Hi,
>
> I am developing an extension from Admin view by adding a new module to manage a new type of content. I am following Sheduler module classes format to build my own classes.
>
> I have built a class by extending CmsWidgetDialog. I define fields in defineWidgets() method, and everything works fine. In actionCommit() method I receive values from fields. That fields are defined as CmsInputWidget and CmsTextareaWidget. However, now I need to add a CmsHtmlWidget and this doesn't work. After the form submit, in actionCommit() I don't receive any value from this field, it is empty.
>
> Is there any different thing to do when using CmsHtmlWidget in this way?
>
> Thanks in advance.
>
> ---------------------------------
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
--
_________________________________________
Holger Kunicke
Webentwickler
AV-Studio Kommunikationsmedien GmbH Halle
Kurallee 13
D-06114 Halle (Saale)
Tel.: +49 (0) 345 20 999 -0
Fax: +49 (0) 345 20 999 -20
Mail: holger.kunicke at av-studio.de
Web: www.av-studio.de
HRB 11368
Ust-Id-Nr.: DE 191537712
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
More information about the opencms-dev
mailing list