Issue Details (XML | Word | Printable)

Key: WICKET-64
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Igor Vaynberg
Reporter: Igor Vaynberg
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Wicket

Check/Radio fail in a GridView with item reuse strategy

Created: 14/Nov/06 07:23 AM   Updated: 01/Feb/09 10:10 PM
Return to search
Component/s: wicket
Affects Version/s: 1.2.3
Fix Version/s: 1.2.4, 1.3.0-beta1, 2.0 branch (discontinued)

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works thepatch.txt 2006-11-14 07:24 AM Igor Vaynberg 26 kB
Issue Links:
Reference
 

Resolution Date: 14/Nov/06 08:00 AM


 Description  « Hide
Because check/radio use relative path from group->component as their value attribute they will lose value if that path changes. This happens when these components are used in a gridview with itemreuse strategy because the gridview has an intermediate repeater that changes the path

so the path of a check can go from

gridview:2:rowitem:5 where 2 is the id of the item of the intermediate repeater

to

gridview:3:rowitem:5

and this will cause the input value to be lost.

the solution is to use a value attribute that will not change across requests.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Igor Vaynberg made changes - 14/Nov/06 07:24 AM
Field Original Value New Value
Attachment thepatch.txt [ 12344940 ]
Igor Vaynberg made changes - 14/Nov/06 08:00 AM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Igor Vaynberg made changes - 15/Nov/06 07:57 AM
Fix Version/s 1.2.4 [ 12312138 ]
Igor Vaynberg made changes - 01/Feb/09 10:10 PM
Link This issue is related to WICKET-1545 [ WICKET-1545 ]