Hi,
In one of my screen i am having the following Prime faces controls.
1. Data Table - (Stock List)
2. Pane Grid - (Stock Information)
3. Data Table - (Customer wise Stock List)
4. Panel - (Displaying the Customer Detail)
I am navigate to any of the above mentioned controls and i want to know which is my active focused control?
How to get the Component which is Focused ?
we are tried with <p:focus> and from the focus context we can come to know which is my currently focused control.
This can be used in Button Click / Panel Grid Clicked event.
But for Data table and Panel this functionality is not working because there is no clicked event or this is the component which is focused.
so we cant able to get the focused component in Prime face.
Please suggest how to get the Focused component in my screen for Data Table and Panel Control ....
In Data table on Row Selection we can able to get the Focused component but if there is no data then the focus is not setting in my Data table.
Please provide your feedback and also we kindly suggest if we have Set Focus and Get Focus kind of method to get the focused component it will resolve most of the requirements of ERP/ Any web application development.
Thanks in advance,
Prakash.Ys
Primefaces 3.3
JSF 2.2 Mojjara
Tomcat 7
JDK 1.7
