Package org.apache.wicket.protocol.http
Class MultipartFormComponentListener
- java.lang.Object
-
- org.apache.wicket.protocol.http.MultipartFormComponentListener
-
- All Implemented Interfaces:
AjaxRequestTarget.IListener
public class MultipartFormComponentListener extends Object implements AjaxRequestTarget.IListener
This listener updates theForm
's enctype whenever a multipartFormComponent
is added to theAjaxRequestTarget
. 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
Constructors Constructor Description MultipartFormComponentListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
onAfterRespond, onBeforeRespond, updateAjaxAttributes
-
-
-
-
Constructor Detail
-
MultipartFormComponentListener
public MultipartFormComponentListener()
-
-
Method Detail
-
onAfterRespond
public void onAfterRespond(Map<String,Component> map, AjaxRequestTarget target)
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
-
-