AnsweredAssumed Answered

Dates?

Question asked by mchernecki on Mar 28, 2007
Latest reply on Mar 30, 2007 by mchernecki
This may have been asked before, but I couldn't find what I was looking for on the forum. I want to display and edit a date property in my custom dialog. So far I have had no success extracting the date property from the node in my Java class and get type errors when I try to display the values in my jsp file.

I am using the following to get and display my integer field with no problem.

   @Override
   public void init(Map<String, String> parameters)
   {
      super.init(parameters);
       
      chequeno = Integer.parseInt(this.nodeService.getProperty(this.editableNode.getNodeRef(), APCustomModel.AP_CHEQUENO).toString());
   }

  public int getChequeno() {
      return chequeno;
   }

   public void setChequeno(int chequeno) {
      this.chequeno = chequeno;
   }


<h:panelGrid id="addContactGrid" columns="2">
     <h:outputText value="Cheque Number:"/>
   <h:inputText id="chequeno" value="#{DialogManager.bean.chequeno}"/>   
</h:panelGrid>

How do I retrieve my paid date field  and display it? I would like the date picker that shows up in the edit content properties dialog.

Outcomes