2 Replies Latest reply on Jun 16, 2007 1:28 PM by soluble

    selectDate with pattern

    jcalienes

      hi, i'm peruvian and i use the date format: dd/MM/yyyy.
      how can we change the pattern in selectDate ?
      thanks in advanced

        • 1. Re: selectDate with pattern

          As of 1.1.5: <s:selectDate dateFormat="dd/MM/yyyy" ... />

          • 2. Re: selectDate with pattern
            soluble

            I also require dd/MM/yyyy. Using Seam 1.2.1.GA, the dateFormat property in <s:selectDate/> doesn't seem to work.

            <h:inputText id="startDate" value="#{event.startDate}" required="true"/>
            <s:selectDate for="startDate" dateFormat="dd/MM/yyyy">
             <h:graphicImage url="../img/dtpick.gif" style="margin-left:5px;cursor:pointer" />
            </s:selectDate>
            


            It still produces a MM/dd/yyyy output. I have looked at previous posts and the Seam Resource servlet in my web.xml. What am I doing wrong? Is this a bug?