Module org.apache.wicket.core
Package org.apache.wicket.protocol.http
Class MultipartFormComponentListener
java.lang.Object
org.apache.wicket.protocol.http.MultipartFormComponentListener
- All Implemented Interfaces:
AjaxRequestTarget.IListener
This listener updates the
Form
's enctype whenever a multipart FormComponent
is added to the AjaxRequestTarget
.
This is needed because the multipart form component may change its visibility/enablement and thus
change the multipart-ness of the whole form.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onAfterRespond
(Map<String, Component> map, AjaxRequestTarget target) Triggered after the target has written components.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.wicket.ajax.AjaxRequestTarget.IListener
onBeforeRespond, updateAjaxAttributes
-
Constructor Details
-
MultipartFormComponentListener
public MultipartFormComponentListener()
-
-
Method Details
-
onAfterRespond
Description copied from interface:AjaxRequestTarget.IListener
Triggered after the target has written components. At this point only additional JavaScript can be added to the response. NOTE: During this stage of processing any calls that manipulate components will result in an exception. After notification of all listeners no JavaScript can be added any longer.- Specified by:
onAfterRespond
in interfaceAjaxRequestTarget.IListener
- Parameters:
map
- read-only map:markupId->component of components already added to the targettarget
- the target itself. Could be used to append/prepend JavaScript
-