htmlName attribute not available for all elements

Hello,
my question is: The “htmlName” (name="" in HTML DOM page) attribute is available only for <textFielkd>.
Could we get for all possible components?
Thank you.

button, form, fieldset, iframe, input, keygen, object, output, select, textarea, map, meta, param

Hi,

Could you please elaborate on this one? What htmlName attribute do you mean and what UI module do you use classic or Flow?

Regards,
Gleb

Hi Gleb, thank you for the reply.
The thing is, that I need ho hadle something with client side Javascript… I need to get handle of an inputbox a other HTML form elements. The function getElementById() is not good since I dont know the generated GWT id… So I wanted to use the “name” attribute.

For inputbox it works…
<textField id="nameField" property="name" htmlName="someNameForCSJS"/>
becomes this:
<input type="text" class="v-textfield v-widget v-has-width" id="gwt-uid-6" aria-labelledby="gwt-uid-5" maxlength="255" tabindex="0" name="someNameForCJS" style="width: 350px;">

See the “someNameForCSJS”.

And I want this also for <textArea>, <button> and other components.

I mean classic UI, I dont know about Flow… But the thing is that htmlName attribute is not available in JMix UI component.

Thank you.
Tomas

Thank you for clarification. The thing is that in order to support htmlName it is required to extend all components client-side implementations which is not efficient for a task that can be accomplished using a different approach. I mean, you can find an html element by specific css class name, so try to add stylename with unique name. Hope this helps.

Regards,
Gleb

OK, thanks. Dummy class name should work. :ok_hand: