I'm making a webscraping application so I'm not using any database just javabeans to store the data and xhtml pages to display it, now I have an arraylist objects in which every object there's data I need to display in xhtml page, but I don't know how to. I know it is posible with jsp using jstl but some days ago I heard that almost nobody uses jsp these days,... So I don't wan't to use it for this project.
javabeans
@ManagedBean(name = "login")
@SessionScoped
public class Login implements Serializable{
private boolean isLoged=false;
PortalUDB portaludb;
Estudiante estudiante; // This is the object tha has the array list
Class that contains the two arraylist of objects
public final class Estudiante{
private Document document;
private int uv_carrera;
private int uv_actuales;
private final Connection.Response loginForm;
public List<MateriaPensum> materia_pensum = new ArrayList<>();
public List<MateriaExpediente> materia_expediente = new ArrayList<>();
I've already achieved it using ui:repeat
<ui:repeat var="materia" value="#{login.estudiante.materia_expediente}"> <h1>#{materia.asignatura}</h1> </ui:repeat>
Just I don't know why I can use every variable in the class MateriaExpediente when they are private.
public class MateriaExpediente extends MateriaPensum{
int anio;
String ciclo;
String asignatura;
String matricula;
float nota;
String resultado;
Maybe because I use getter and setter methods?