[opencms-dev] How to read the request value of CmsHtmlWidget

Mark Lange mark.lange at koeln.de
Sun Oct 8 12:22:53 CEST 2006


Hi,
I have made an subclass of CmsWidgetDialog (like the widgetdemos) and in the
function CmsWidgetDialog
I add some widgets:
addWidget(new CmsWidgetDialogParameter("passwordwidget", new
CmsDisplayWidget()));
addWidget(new CmsWidgetDialogParameter("downloadgallerywidget", new
CmsDownloadGalleryWidget()));
addWidget(new CmsWidgetDialogParameter("groupwidget", new
CmsGroupWidget()));
addWidget(new CmsWidgetDialogParameter("htmlgallerywidget", new
CmsHtmlGalleryWidget()));
addWidget(new CmsWidgetDialogParameter("htmlwidget", new CmsHtmlWidget()));

In the function actionCommit() I can read the filled in values with
something like this:
	Iterator i = getWidgets().iterator();
	while (i.hasNext()) {
	CmsWidgetDialogParameter base = (CmsWidgetDialogParameter)i.next();

		System.out.println(base.getName() +": " +
getParamValue(base.getName()));
	}

This prints out the value for every defined widget except the htmlwidget.
When the Form is submitted and returns to the ACTION_DEFAULT every widget
keeps it's value (in the form) except the htmlwidget, the filled in value of
the htmlwidget is lost.
Does anybody know what i have to do to get the value (and keep the value in
the form)?

thanks 
Mark




More information about the opencms-dev mailing list