Hi, I would like to bring this to the attention of the cocoon membership. Utilising the serializer block as seralizer of choice in an ajax-request block breaks the ajax process:
<map:serializer name="xhtml" src=" org.apache.cocoon.components.serializers.XHTMLSerializer" mime-type="text/html"> <map:select type="ajax-request"> <map:when test="true"> <map:serialize type="xml"/> </map:when> <map:otherwise> <map:serialize type="xhtml"/> </map:otherwise> </map:select> Output from browser view: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns ="http://www.w3.org/1999/xhtml"><head><script type="text/javascript" src="resources/dojo/dojo.js"></script
<script type="text/javascript" src=
"resources/ajax/cocoon.js"></script><script type="text/javascript" src="resources/forms/js/forms-lib.js"></script><script type="text/javascript"> dojo.addOnLoad(forms_onload); dojo.require("cocoon.forms.*"); </script
<link href="resources/forms/css/forms.css" type=
"text/css" rel="stylesheet" />< script type="text/javascript" src="resources/forms/mattkruse-lib/AnchorPosition.js"
</script><script type="text/javascript"
src="resources/forms/mattkruse-lib/PopupWindow.js"></script><script type="text/javascript" src="resources/forms/mattkruse-lib/OptionTransfer.js"></ script><script type="text/javascript" src ="resources/forms/mattkruse-lib/selectbox.js"></script><script type ="text/javascript" src="resources/forms/mattkruse-lib/CalendarPopup.js"></ script><script type="text/javascript" src= "resources/forms/mattkruse-lib/date.js"></script><script type="text/javascript"
// Setup calendar var forms_calendar = CalendarPopup(); forms_calendar.setWeekStartDay(1); forms_calendar.showYearNavigation(); forms_calendar.showYearNavigationInput(); forms_calendar.setCssPrefix("forms_"); </script><link href= "resources/forms/css/forms-calendar.css" type="text/css" rel= "stylesheet" /><script type="text/javascript"
_editor_url = "resources/forms/htmlarea/"; _editor_lang = "en"; </script><script src="resources/forms/htmlarea/htmlarea.js" type="text/javascript"
</script>
Alert message generated on each ajax page: 'WARNING:_editor_url is not set! You should set this variable to the editor files path; it should preferably be an absolute path, like in '/htmlarea', but it can be relative if you prefer. Further we will try to load the editor files correctly but we'll probably fail.' Form action: Submitting an ajaxed page will cause a whole page reload when none of the required fields are filled in. System: WinXP/SP2 - Java 1.6, Jboss 4.0.3 AS -- Regards Andrew