How to get value from Java object
- by JSF User
I have this Java object
private List<NewAccountObj> dataList;
    public class NewAccountObj {
            private int userid;
            public NewAccountObj(int userid) {
                this.userid = userid;
            }
            public int getUserid() {
                return userid;
            }
            public void setUserid(int userid) {
                this.userid = userid;
            }
    public List<NewAccountObj> getdataList() {        
            return dataList;
        }
What is the proper way to access a value from the object?
Is this correct? 
<h:inputText id="userid" value="#{NewAccountController.dataList.userid}" 
             validator="#{ValidatorAccountController.validateUserID}" autocomplete="off">                                        
    <f:ajax event="blur" render="useridvalidator" />                                          
</h:inputText>
Is there any other solution?