Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to display ArrayList in JSF page
    primarykey
    data
    text
    <p>I want to create editable <code>h:panelGrid</code>. I created this ArrayList:</p> <pre><code>public ArrayList&lt;userdata&gt; dataList = new ArrayList&lt;&gt;(); public class userdata { int userid; int groupid; String specialnumber; String username; String passwd; Date datetochangepasswd; String address; String stateregion; String country; String userstatus; String telephone; Date dateuseradded; Date userexpiredate; Date dateuserlocked; String city; String email; String description; public userdata(int userid, int groupid, String specialnumber, String username, String passwd, Date datetochangepasswd, String address, String stateregion, String country, String userstatus, String telephone, Date dateuseradded, Date userexpiredate, Date dateuserlocked, String city, String email, String description) { this.userid = userid; this.groupid = groupid; this.specialnumber = specialnumber; this.username = username; this.passwd = passwd; this.datetochangepasswd = datetochangepasswd; this.address = address; this.stateregion = stateregion; this.country = country; this.userstatus = userstatus; this.telephone = telephone; this.dateuseradded = dateuseradded; this.userexpiredate = userexpiredate; this.dateuserlocked = dateuserlocked; this.city = city; this.email = email; this.description = description; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } public String getCountry() { return country; } public void setCountry(String country) { this.country = country; } public Date getDatetochangepasswd() { return datetochangepasswd; } public void setDatetochangepasswd(Date datetochangepasswd) { this.datetochangepasswd = datetochangepasswd; } public Date getDateuseradded() { return dateuseradded; } public void setDateuseradded(Date dateuseradded) { this.dateuseradded = dateuseradded; } public Date getDateuserlocked() { return dateuserlocked; } public void setDateuserlocked(Date dateuserlocked) { this.dateuserlocked = dateuserlocked; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public int getGroupid() { return groupid; } public void setGroupid(int groupid) { this.groupid = groupid; } public String getPasswd() { return passwd; } public void setPasswd(String passwd) { this.passwd = passwd; } public String getSpecialnumber() { return specialnumber; } public void setSpecialnumber(String specialnumber) { this.specialnumber = specialnumber; } public String getStateregion() { return stateregion; } public void setStateregion(String stateregion) { this.stateregion = stateregion; } public String getTelephone() { return telephone; } public void setTelephone(String telephone) { this.telephone = telephone; } public Date getUserexpiredate() { return userexpiredate; } public void setUserexpiredate(Date userexpiredate) { this.userexpiredate = userexpiredate; } public int getUserid() { return userid; } public void setUserid(int userid) { this.userid = userid; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getUserstatus() { return userstatus; } public void setUserstatus(String userstatus) { this.userstatus = userstatus; } } // Getter for the data list public ArrayList&lt;userdata&gt; getuserdata(){ return dataList; } </code></pre> <p>I want to display the data into <code>h:panelGrid</code>. Can you tell me how I can do this?</p> <p>I want to create <a href="http://www.mkyong.com/jsf2/how-to-update-row-in-jsf-datatable/" rel="nofollow">this</a> editable table but with <code>h:panelGrid</code>. I suppose that it's possible to use <code>h:panelGrid</code> instead <code>h:dataTable</code>?</p> <p>Best wishes</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload