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

    Wrong TLD on selectdate ?

    Afrajag Newbie

      Hi,
      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"/>
      </s:selectDate>

      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"/>
             </h:inputText>
             <s:selectDate for="provisionedDate" dateFormat="MM/dd/yyyy">
             <h:graphicImage url="img/calendar.gif" style="margin-left:5px;"/>
             </s:selectDate>
            


            in my web.xml I have:

             <servlet>
             <servlet-name>Seam Resource Servlet</servlet-name>
             <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
             </servlet>
            
             <servlet-mapping>
             <servlet-name>Seam Resource Servlet</servlet-name>
             <url-pattern>/seam/resource/*</url-pattern>
             </servlet-mapping>
            
            


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

            Thanks