You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'd made this simple page (and it's simple back bean). The back bean methods (onDataSelect()/onSelectChanged()) are never called. Can anyone tell me what I'm doing wrong?
protected int id;
protected String codigo;
protected String descripcion;
protected boolean selected;
public Datos(int id, String codigo, String descripcion){
this.id=id;
this.codigo=codigo;
this.descripcion=descripcion;
}
/**
* @return the id
*/
public int getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(int id) {
this.id = id;
}
/**
* @return the codigo
*/
public String getCodigo() {
return codigo;
}
/**
* @param codigo the codigo to set
*/
public void setCodigo(String codigo) {
this.codigo = codigo;
}
/**
* @return the descripcion
*/
public String getDescripcion() {
return descripcion;
}
/**
* @param descripcion the descripcion to set
*/
public void setDescripcion(String descripcion) {
this.descripcion = descripcion;
}
/**
* @return the selected
*/
public boolean isSelected() {
return selected;
}
/**
* @param selected the selected to set
*/
public void setSelected(boolean selected) {
this.selected = selected;
}
There's an error in BootsFaces 0.9 that causes this problem. I'm not entirely sure your problem is fixed because I only tested input fields and command buttons, but chances are everything works with BootsFaces 1.0. Currently, there's only a developer preview. See TheCoder4eu/BootsFaces-OSP#369 on how to get it.
Hi, I'd made this simple page (and it's simple back bean). The back bean methods (onDataSelect()/onSelectChanged()) are never called. Can anyone tell me what I'm doing wrong?
Thank you all.
My xhtml
`
<h:body>
<h:form id="form-id">
`
My .java backbean.
`
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.enterprise.context.SessionScoped;
import javax.inject.Named;
/**
*
@author wgualla
*/
@nAmed
@SessionScoped
public class PruebaDataTable implements Serializable {
protected static List datos=new ArrayList<>();
/**
*/
public List getDatos() {
return datos;
}
public void onDataSelect() {
System.out.println("PruebaDataTable.onDataSelect, event recived!!!");
}
public void onSelectChanged(){
System.out.println("PruebaDataTable.onSelectChanged, event recived!!!");
}
/**
*/
public void setDatos(List aDatos) {
datos = aDatos;
}
@PostConstruct
public void init(){
getDatos().add(new Datos(0,"000","desc 0"));
getDatos().add(new Datos(1,"001","desc 1"));
getDatos().add(new Datos(2,"002","desc 2"));
getDatos().add(new Datos(3,"003","desc 3"));
getDatos().add(new Datos(4,"004","desc 4"));
}
public static class Datos {
}
4.0.0}
`
my .pom
xxxx
xxxxxxxx
1.0
war
xxxxxxx
${project.build.directory}/endorsed UTF-8The text was updated successfully, but these errors were encountered: