How does JSF generate the name of the form input field?

后端 未结 4 813

Any idea anyone? Is it possible that we specify the name of the form input field? How to go about doing that?

4条回答
  •  花落未央
    2021-01-13 14:41

    For most pages which contain a view, form and some components, the clientID will be the colon seperated string contained the form-id and component-id. Example:

    The input text client ID would be "myForm:myInputText". If you have nested within a subview, then that will be the first thing in the list, for example:

    Now the input text client ID would be "mySubview:myForm:myInputText".

提交回复
热议问题