Thanks, Gregg!
Well, there is not much more in this simple "application". Here is the whole page:
And there is also a managed bean to imitate data as if coming from a database:
ackage jsfdating;
import java.util.ArrayList;
import java.util.List;
import com.astro.dating.MatchRecord;
public class RecordsSource {
List records = new ArrayList();
public RecordsSource() {
super();
for (int i = 0; i < 10; i++) {
MatchRecord rec = new MatchRecord();
rec.setSuid("test" + i);
rec.setUser(i);
rec.setMatch(90 - i * 2);
rec.setViewed(i % 2 == 0? true:false);
rec.setInfo(i % 2 == 0? false:true);
records.add(rec);
}
}
public List getRecords() {
return records;
}
public void setRecords(List records) {
this.records = records;
}
}
which is then configured like this:
I know, this doesn't look like having plenty of sense, but the purpose is to reproduce a piece of front end of my existing Tapestry application and see how
JSF differs from Tapestry. Earlier I did the same with
Struts.
Okay, so now I will go and try to add IDs...
[ January 11, 2006: Message edited by: Alexander Kolesnikov ]
Alexander Kolesnikov<br />Java Web Developer<br />SCJP 1.4, SCWCD 1.4, SCBCD 1.3<br /><a href="http://sundraw.ws" target="_blank" rel="nofollow">Tapestry 5: Building Web Applications</a><br /><a href="http://sundraw.ws/batik.jsp" target="_blank" rel="nofollow">Java Drawing With Apache Batik</a>