I need to extract all form name (id) from getViewRoot(). To see if a component is a form I compare component.getFamily() with a “javax.faces.Form”. But if I have a form in an import view component the getFamily returns javax.faces.NamingContainer instead of javax.faces.Form. How can I know if a component is a form (javax.faces.form) ?
enorman.5548
(enorman.5548)
2
Your approach seems fine.
Nested form controls are not legal in a view.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Reuse Generic Components | 2 | 3114 | April 2, 2021 | |
Accessing HTML Form Fields from with in a Custom Java Script | 2 | 3474 | April 2, 2021 | |
Import Template - Control ID doesn't resolve properly | 2 | 2586 | April 2, 2021 | |
portlet navigation form one view to another | 1 | 832 | April 2, 2021 | |
Refrence a CONTROL in VIEW'S JAVA CODE? | 3 | 2209 | April 2, 2021 |