Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
MultipartFormComponentListener is tasked with updating the form 'enctype' property in the browser when components' visibility change.
This is required in some cases because a form could become url-encoded or multi-part, depending on the fields present.
The feature was introduced in response to WICKET-6914.
A subsequent fix was made to the (enabled by default in all Wicket applications) listener to support hidden forms.
Trying to set the enctype property of invisible forms in the browser resulted in javascript errors.
The fix was submitted to fix WICKET-6921.
The form visibility problem still occurs in a specific scenario. When a form visibility is modified during the onConfigure phase,
the listener emits statements related to forms that have just been made invisible.
This happens because the code in the listener is hooked to the onBeforeRespond phase.
Evaluating the forms visibility in onAfterRespond allows the listener to visit all visible children and allows visibility modification during the onConfigure phase.
Attachments
Issue Links
- links to