Project

General

Profile

Actions

Bug #54340

closed

RadioViewHelper should call renderHiddenFieldForEmptyValue

Added by Tim Lochmüller almost 11 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-12-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

Actions #1

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

Actions #2

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?

Actions #3

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.

Actions #4

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.

Actions

Also available in: Atom PDF