Board index JavaServer Faces General calendar


Components, Ajax Framework, Utilities and More.

Post 03 Nov 2011, 23:50

Posts: 15
hi, i am using the calendar , but i obtein null value,can someone help me?
Thanks for any suggestions

primefaces 1.1
jsp 1

code jsp
<h:form id="formmuertos" >
   <p:growl id="messages"/>   
    <h:outputText value="fecha" id="fecha"/>     
    <p:calendar  mode="inline" id="calendario" locale="es" showButtonPanel="true" navigator="true" style="display:inline-block;font-size: 12px !important;width:190px;height:16px;" /> 

 <h:commandButton id="submitM" value="Ingresar" style="margin-right:30px;" action="#{FormM.ingresar}" />

code java
public class FormM{
     private String calendario1;
     public FormM() {

     public String obtenerCampos(String campo){
          FacesContext fc = FacesContext.getCurrentInstance();
         HttpServletRequest request = (HttpServletRequest) fc
         String valor = request.getParameter(campo);
      return valor;
     public String ingresar() {
        String accionEst = null; 
        return accionEst;

Return to General