3 Replies Latest reply on Jul 9, 2007 7:38 PM by Jason Long

    s:selectDate -->

    Jason Long Master

      I am attemepting to remove Tomahawk components from my application, but I am having a problem with <s:selectDate>.

      I keep getting "could not find component with id: invoiceNew_date", but there is an inputText there.

      Am I missing some configuration somewhere?



      <f:facet name="footer">
       <h:inputText id="invoiceNew_date" value="#{recordInvoiceNew.date}" required="true">
       <s:convertDateTime pattern="MM.dd.yy" />
       </h:inputText>
       <s:selectDate for="invoiceNew_date">
       <h:graphicImage url="img/dtpick.gif" style="margin-left:5px;cursor:pointer" />
       </s:selectDate>
       </f:facet>


        • 1. Re: s:selectDate -->
          Jason Long Master

          I am using 1.2.1

          • 2. Re: s:selectDate -->
            Shane Bryzak Master

            What you've got looks fine. I wondered if the ID was somehow the cause, but I modified the registration page in the seamspace example to make it the same as yours and still no problem. This works:

            <div class="formRow">
             <h:outputLabel for="invoiceNew_date">Date of birth<em>*</em></h:outputLabel>
             <h:inputText id="invoiceNew_date" value="#{newMember.dob}" required="true">
             <s:convertDateTime pattern="MM/dd/yyyy"/>
             </h:inputText>
             <s:selectDate for="invoiceNew_date" startYear="1910" endYear="2007"><img src="images/ellipsis.png" class="ellipsis"/></s:selectDate>
             <div class="validationError"><h:message for="invoiceNew_date"/></div>
             </div>


            Can you try putting it somewhere else in the page, not in a facet?

            • 3. Re: s:selectDate -->
              Jason Long Master

              I think the problem is that it is in the footer of a dataTable. It did work inside the dataTable rows, but the calender would not open.