title: getAsObject not called
body: <p>What I am trying to do is that I am taking <code>timeMillis</code> property that stores time in millisecond(that I got my using <code>System.currentTimeMillis()</code>) and convert it to equivalent days,hours,mins and seconds after substracting it from the current time. The main problem is that whenever the converter <code>timeConverter</code> 
  is called only <code>getAsString</code> function is invoked , <code>getAsObject</code> is not invoked.</p>
  
  <p>Here is the part of my xhtml file which causing the converter to not run properly.</p>
  
  <pre><code>&lt;c:forEach var="p" items="#{statusBean.statusList}"&gt;
      &lt;h:form&gt;
          &lt;div class="status"&gt;
              &lt;h:commandLink action="#{friendBean.gotoFriendProfile(p.email)}"&gt;
                  &lt;img src="../images/profilePicture/#{p.picture}" style="height: 29px; width: 29px; "/&gt;
                  &lt;h:outputText value="#{p.statusBy}:"/&gt;
              &lt;/h:commandLink&gt;
              &lt;h:outputText value="#{p.statusmsg}"/&gt;
              &lt;h:outputText value="#{p.timeMillis}"&gt;
                  &lt;f:converter converterId="timeConverter"/&gt;
              &lt;/h:outputText&gt;
              &lt;br/&gt;
              &lt;c:forEach var="q" items="#{statusBean.commentList(p.statusId)}"&gt;
              &lt;div class="barcomment"&gt;
                  &lt;br/&gt;
                  &lt;h:commandLink action="#{friendBean.gotoFriendProfile(q.email)}"&gt;
                      &lt;img src="../images/profilePicture/#{q.picture}" style="height: 29px; width: 29px; "/&gt;
                      &lt;h:outputText value="#{q.commentBy}:"/&gt;
                  &lt;/h:commandLink&gt;
                  &lt;h:outputText value=" #{q.comment}"/&gt;
              &lt;/div&gt;
          &lt;/c:forEach&gt;
          &lt;br/&gt;
          &lt;div class="comment"&gt;
              &lt;p:inputText value="#{statusBean.comment.comment}" styleClass="box"  /&gt;
              &lt;p:commandLink  value="Views" action="#{statusBean.update(p.statusId)}" ajax="false" styleClass="link"/&gt;
          &lt;/div&gt; 
  </code></pre>
  
  <p>Here is the timeConverter class that I have written.</p>
  
  <pre><code>package com.converter;
  
  import javax.faces.component.UIComponent;
  import javax.faces.context.FacesContext;
  import javax.faces.convert.Converter;
  
  public class TimeConverter implements Converter {
  
      @Override
      public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) {
          System.out.println("inside getAsObject");
          long time=Integer.parseInt(arg2);
          long currentTime=System.currentTimeMillis();
          long eclapseTime=time-currentTime;
          long secs=eclapseTime/1000;
          long days=secs/(60*60*24);
          long hours=(secs%(60*60*24))/60*60;
          long mins=(secs%(60*60*24)%(60*60))/60;
          long secs2=(secs%(60*60*24)%(60*60)%(60));
          StringBuffer sb = new StringBuffer();
          sb.append(days).append("days").append(hours).append("hours").append(mins).append("mins").append(secs2).append("secs");
          String object1 = sb.toString();
          return object1;
      }
  
      @Override
      public String getAsString(FacesContext context, UIComponent component,
              Object value) {
          System.out.println("inside getAsString");
          String value1 = value.toString();
          return value1;
  
      }
  
  }
  </code></pre>