JSF datatable
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Deli_Geli
Posted On:   Tuesday, October 16, 2007 09:25 AM

Hello, I am trying to implement . I have the following Object - ObituaryData: package com.data; import java.io.Serializable; import javax.faces.event.ActionEvent; /** * @author Odelya */ public class ObituaryData implements Serializable { private String firstName; private String midName; private String surName; private static final long serialVersionUID = 1L; public ObituaryData(String firstName, String midName, String surName) { this.firstName = firstName; this.midName = midName; this.surName = surName;    More>>

Hello,
I am trying to implement .
I have the following Object - ObituaryData:

			
package com.data;


import java.io.Serializable;

import javax.faces.event.ActionEvent;



/**


* @author Odelya

*/

public class ObituaryData implements Serializable {


private String firstName;

private String midName;

private String surName;

private static final long serialVersionUID = 1L;


public ObituaryData(String firstName, String midName, String surName) {

this.firstName = firstName;

this.midName = midName;

this.surName = surName;

}

public boolean equals(Object other) {

if ((this == other))
return true;

if (!(other instanceof ObituaryData))
return false;

ObituaryData castOther = (ObituaryData) other;

if (this.getId().equals(castOther.getId())) {

return true;

} else {

return false;
}

}

public int hashCode() {

return this.getId().hashCode();

}

public ObituaryData() {

}

public String getFirstName() {

return firstName;

}

public void setFirstName(String firstName) {

this.firstName = firstName;

}

public String getMidName() {

return midName;

}

public void setMidName(String midName) {

this.midName = midName;

}

public String getSurName() {

return surName;

}

public void setSurName(String surName) {

this.surName = surName;

}

}


and the following ObituariesList:

			
package com.data;


import com.service.ObituariesService;

import com.ibatis.common.util.PaginatedList;


/**
* The class stores collection of obituaries, and manages actions related to
* them.
*

* @author Odelya 24/09/2007 18:00:17
*/

public class ObituaryBean {

private com.ibatis.common.util.PaginatedList obituariesList;

private ObituariesService obituariesService;


public ObituaryBean() {

this(new ObituariesService());

}


public ObituaryBean(ObituariesService obituaryService) {

this.obituariesService = obituaryService;

}


PaginatedList getObituariesCollection() {

obituariesList = obituariesService.getObituaries();

return obituariesList;

}


public PaginatedList getObituariesList() {

obituariesList = obituariesService.getObituaries();

return obituariesList;

}


public void setObituariesList(PaginatedList obituariesList) {

this.obituariesList = obituariesList;

}

}



Where getObituariesList() returns a collection of ObituaryData (I can see it when debugging).

I implemented in in like this:

			


,








The screen runs all right, but nothing it being displayed instead of #obituaryAd# values!

What could have gone wrong?
   <<Less
About | Sitemap | Contact