Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.4.18, 1.5-RC5.1
-
mac os / windows / java 1.5 / java 1.6 / tomcat
Description
We are reusing a panel (let's say a PersonPanel, two instances). There is a forward / back ajax-navigation between the panels, which is implemented with component.replace. So the component path for the select of both panels are the same. The back-function is implemented with setDefaultFormProcessing(false). If now showing PersonPanel1 --> Forward --> PersonPanel2 --> Back --> PersonPanel1 --> Forward --> PersonPanel2, the selects of the panel 2 are showing the values of panel1.
The Reason:
In the 'Select.isSelected(...)' the getInputAsArray() is used (instead of the getRawInput()). So request parameters are overruling the raw input, if the component path is the same.
Wicket-Code:
if (hasRawInput()) {
String[] paths = getInputAsArray();
I think, instead of calling getInputAsArray() the getRawInput()(With a split for the MultiSelect-support) should be used.
Attachments
Attachments
Issue Links
- breaks
-
WICKET-4276 Select component loses it's value
- Resolved
- relates to
-
WICKET-64 Check/Radio fail in a GridView with item reuse strategy
- Resolved