Class MultipartFormComponentListener

All Implemented Interfaces:

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 Details

  • Method Details

    • 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 interface AjaxRequestTarget.IListener
      map - read-only map:markupId->component of components already added to the target
      target - the target itself. Could be used to append/prepend JavaScript