2 Replies Latest reply on Mar 12, 2007 11:48 AM by Bradley Smith

    Wrong TLD on selectdate ?

    Afrajag Newbie

      when I use the s:selectDate component with the dateFormat attribute
      I got the following error:

      "Attribute dateFormat invalid for tag selectDate according to TLD".

      Source is:

      <s:selectDate dateFormat="dd/MM/yyyy" for="checkinDate">
      <h:graphicImage url="/img/dtpick.gif" style="margin-left:5px;cursor:pointer"/>

      A bug ?
      Or am I missing something ?

      Thank you.

        • 1. Re: Wrong TLD on selectdate ?
          Norman Richards Master

          You are right. I have updated the TLD.

          Stuff like this is one more reason to prefer Facelets to JSP, I suppose. :)

          • 2. Re: Wrong TLD on selectdate ?
            Bradley Smith Master

            another issue with selectDate

            I am using the latest nightly build and selectDate is not working:

            Warning: Expected ':' but found 'seam-date'. Declaration dropped.
            Source File: http://ntinternetdev.evergreeninsite.com:8080/access/work_queue.seam?actionMethod=work_queue.xhtml%3AworkQueueManager.select&conversationId=3&conversationIsLongRunning=true&conversationPropagation=join&dataModelSelection=item%3AworkItems%5B0%5D
            Line: 0

            in my facelets page I have:

             <h:inputText value="#{accessRequest.provisionedDate}" id="provisionedDate" required="true">
             <f:convertDateTime pattern="MM/dd/yyyy"/>
             <s:selectDate for="provisionedDate" dateFormat="MM/dd/yyyy">
             <h:graphicImage url="img/calendar.gif" style="margin-left:5px;"/>

            in my web.xml I have:

             <servlet-name>Seam Resource Servlet</servlet-name>
             <servlet-name>Seam Resource Servlet</servlet-name>

            and one final note the selectDate works fine in Seam 1.1.6 (minus the Seam Resource Servlet).