8

Is it possible to use html-pass-throug attributes at Dynamic Visualforce Components?

Component.Apex.InputField  result = new Component.Apex.InputField();
result.style = 'font-size: 9px';
result.title = 'test'; // doesn't work, because attribute is missing in InputField implementation
result.htmltitle = 'test'; // doesn't work either
result.html_title = 'test'; // doesn't work either
1
  • I think this attribute should be supported by InputField because most other components support it. It seems to be forgotten.
    – Uwe Heim
    Aug 27 '14 at 18:36
9

No it's not possible.

https://www.salesforce.com/us/developer/docs/pages/Content/pages_html_features_pass_through_attributes.htm

last sentence says:

Pass-through attributes aren’t supported in dynamic Visualforce.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.