primegaces p: calendar null

0

I have a page on primefaces with this simply:

<h:panelGrid columns="2" cellpadding="10">
            <h:form id="ejecucionesFiltroForm">

                <h:panelGrid columns="2" id="filtroEjecucionesGrid" cellpadding="5">
                    <h:outputText value="Filtro de busqueda de ejecuciones" />
                    <br />
                    <h:outputLabel for="fechaDesde" value="Fecha desde: *" />
                    <p:calendar id="fechaDesde" value="#{ejecuciones.fechaDesde}"
                        pattern="dd/MM/yyyy"/>

It turns out that when in the ManagedBean I will collect the data with;:

@RequestScoped
@ManagedBean(name = "ejecuciones")
public class Ejecucion implements Serializable {

/**
 * 
 */
private static final long serialVersionUID = 2750421750228420802L;


private Date fechaDesde;    

@PostConstruct
public void init() {
}

public void buscaEjecuciones() {
    log.info("fechaDesde: "+ fechaDesde);

always the date gives me null Can you help me? thanks

    
asked by Koxkor 03.03.2018 в 20:41
source

0 answers