How to make focus to the button during onload in JSF if the button is in tabbedPane using javascrip
posted 2 years ago
Basically, it's the same process that you'd go through for non-JSF pages.
Also note that the generated ID is a concatenation of the simple (JSF) id plus the IDs of the naming container(s) that it is nested in. If you didn't give them explicit IDs then they are given synthesized IDs (such as "j_121"). You don't want that because the synthetic ID values can change unpredictably, so always supply an explict id= value for the naming containers.
Naming containers include forms and tables, among other things.
An IDE is no substitute for an Intelligent Developer.