-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Follow up on https://issues.apache.org/jira/browse/MYFACES-4606 #638
Conversation
Fix for MyFaces 4606, checkboxes and radio buttons are not appended automatically if unchecked!
Backport from 4.0 Give it a shot, we can merge it, from my side it works! |
does it work for you? |
@werpu I'm getting the following error in my test case:
xhtml:
|
mhh let me check quickly! I think I found it, sorry my mistake! |
Fix for MyFaces 4606, checkboxes and radio buttons are not appended automatically if unchecked!
Fixed it, sorry for the issue, I guess I have to recheck my integration tests apparently this code was not triggered by them! |
Yep, it's fixed now. Thanks! However, I'm still seeing the an array sent for the issuing element? Looks like the data is attached via both appendIssuingItem & the _preprocessedData (mentioned here: #634 (comment)) |
I'm seeing it's caused by ajaxUtils.encodeSubmittableFields(ret, form, null); Can we add some check to avoid encoding the the data twice? |
I have repushed some code, please test it again (I did add the check blindly because it is getting late here).
is basically the fix for this, no need to append the issuing item if the item already is encoded. ret = this._Lang.createFormDataDecorator(new Array()); |
Fix for MyFaces 4606, checkboxes and radio buttons are not appended automatically if unchecked!
Thanks for looking. I hoped it would work, too, but it doesn't, unfortunately. Problem looks to be here:
When Perhaps we would wait to encode things later? Or append the issuing item first and then add the viewstate related data, if it wasn't already added? We can just continue with this more this week. Thanks again for your help here! |
haskey not properly working
Hi, I fixed the check on FormData level, apparently the hasKey function only checked for newly appended values not existing data passed into the existing formData object, this should fix the issue for good, a preliminary test locally now works for me, and all integration tests still pass. I will check whether this issue also is present for the 4.0 code, and if all is well on both code levels we can cherry pick the fixes for the older branches! The 4.0 code is not affected it has a proper check code in place which actually works (checks the underlying FormData object), so all is well there. I will prepare the backports tomorrow, if the 3.0 code now works for you guys! |
Hi, the changes look good to me. Both scenarios I've tested pass. Let me run the full TCK and (hopefully) we merge this in! |
Any news on the TCK @volosied ? |
Hi sorry for the delay -- I used the current 3.0.x branch along with your commits to test the TCK. I was hoping to create a 3.0 release soon ( along with the other branches). Turns out there's a few failures, but I haven't had a moment to investigate them. It's possible they aren't related to your changes, but I'll get back to you soon. |
i thought the 3.0.x branch we decided was dead? |
We've still been patching fixes, and it's a version our product still supports. And since the code is mostly the same as 2.3, I expect the TCK failures to also exist in that branch. It doesn't take too much time to create a release. |
I can make a quick pull request for 2.3 (next has one already), if wanted, I just wanted to wait for the results for 3.0 before moving forward with the lower branches! And yes the code between 2.x and 3.0 is mostly the same, so it should be a simple cherry pick! |
crossport from 4.0 fix
Hi i added a small fix from an issue which was reported from the Tobago guys! |
let not allowed
@volosied there were indeed smaller issues, which the Tobago guys reported my, all of them are now backported to the 3.x branch, please give it another shot! |
Thanks - I'll test it out again. Give me a few days! |
Thanks for testing and closing! |
Fix for MyFaces 4606, checkboxes and radio buttons are not appended automatically if unchecked!