I made table in
jsf,rave component using netbeans 5.5 visual web pack .
I want to set disable of textField which is in table. For that I have used find text component id which is in table. I have used follwing codes to find components:
//source code starts
FacesContext fc = FacesContext.getCurrentInstance();
UIViewRoot myviewroot = fc.getViewRoot();
HtmlInputText text1 =(HtmlInputText) myviewroot.findComponent("form2:table1:tableRowGroup1:3:tableColumn2:textField1");
text1.setDisabled(true);
//source code ends
It always returns null
Please help me to solve this problem..