1 Reply Latest reply on Aug 10, 2007 3:20 AM by nikita.leonov

    Using Seam's convertDateTime with richfaces' rich:column

      Hello all,

      Can I use Seam's s:convertDateTime together with RichFaces rich:column? Or is there a similar function within RichFaces to format a field with date and time?

      When I use Seam's with RichFaces' rich:column, I received the following error:

      s:convertDateTime> Parent not an instance of ValueHolder: org.richfaces.component.html.HtmlColumn@11dc4c8


      Here is my code:
      <rich:column>#{msg.creationTime}
       <s:convertDateTime pattern="#{messages['session.date.pattern']}"/>
      </rich:column>


      Any idea?

      Thanks
      -tony

        • 1. Re: Using Seam's convertDateTime with richfaces' rich:column
          nikita.leonov

          Try such code.

          <rich:column>
           <h:outputText value="#{msg.creationTime}">
           <s:convertDateTime pattern="#{messages['session.date.pattern']}"/>
           </h:outputText>
          </rich:column>
          


          I think it will be more correct and should work. As you can see from trace, rich:column is not ValueHolder, this is mean that convertDateTime can't find which value it should convert. outputText - ValueHolder.