Bug #54340
closedRadioViewHelper should call renderHiddenFieldForEmptyValue
0%
Description
"Moin Moin",
I run into a problem with the radio viewhelper today. I have a form with just radio fields (no other for elements), that are validate via the domain model property via "NotEmpty". If the user select non of the radio boxes (just click the cubmit button), the arguments of the request object in the next action is completly empty. It is the right way to render the hidden helper field (via renderHiddenFieldForEmptyValue) to remove the exceptions like 'An argument "xxx" does not exist for this request.'?!
The renderHiddenFieldForEmptyValue solve my problem and I think, the function is exacly for this purpose, right?
Regards,
Tim
Updated by Markus Klein almost 11 years ago
Hm, I guess that's not correct. You would need one hidden field for all radio buttons with the same name
Updated by Tim Lochmüller almost 11 years ago
But "renderHiddenFieldForEmptyValue" render just one hidden box for each radio-input-group. Or have I misunderstood you?
Updated by Markus Klein about 10 years ago
- Project changed from 2559 to TYPO3 Core
- Status changed from New to Needs Feedback
- TYPO3 Version set to 6.1
- Is Regression set to No
Does it? By reading the code, I'd say it does not.
Simple solution would be to select one radio button by default.
Updated by Alexander Opitz almost 10 years ago
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this issue.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.