Project

General

Profile

Actions

Bug #70054

closed

Fluid textare Viewhelper: maxlength tag attribute is missing

Added by Manfred Rutschmann about 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Fluid
Target version:
Start date:
2015-09-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
fluid, textarea, maxlength
Complexity:
Is Regression:
No
Sprint Focus:

Description

f:form.textarea dont have a maxlength attribute. Patch from 7.4.0 core attached (code source from f:form.textfield)


Files

textarea_maxlength.patch (1.01 KB) textarea_maxlength.patch Manfred Rutschmann, 2015-09-23 19:06
Actions #1

Updated by Claus Due about 9 years ago

I think this one would be dismissed, referring to `additionalAttributes` which is a common API for adding undeclared attributes with arbitrary values to any TagBasedViewHelper, which all the form field ViewHelpers are.

Actions #2

Updated by Claus Due about 9 years ago

  • Status changed from New to Resolved

Use suggested API. Closing as "resolved" because an official API exists for arbitrary attributes.

Actions #3

Updated by Manfred Rutschmann about 9 years ago

I know that I can set maxlength by additionalAttributes. The textarea maxlength is an official attribute. Should then the form ViewHelper with the tag attributes not be compliant to this? At one viewhelper you have maxlength, at the other one not. That's a crap and not consistent. It's one line of code to fix this, patch is attached.

Actions #4

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF