Date picker submitting form

Hi



i have a problem with a date picker in a form. When i choose a date form the picker, the form submits. The code can be seen below. If a move the date picker outside the form tags and use a hidden date field in the form the form functions normally.



    

    

    



        



            <bean:message bundle=“AuditRes” key=“audit.form.page.subtitle” />

        



            

        <html:form action=“/PopulateAuditReport.do”>



<%-- hidden fields --%>        

            

        

            <%-- display any errors that we may have picked up along the way --%>

            html:errors/

            



                    

                        <bean:message bundle=“AuditRes” key=“select.date.label” />

                    


                    

                                                                                       

                



            
                
                    
                

                
            
            


            

            

                

                    <bean:message bundle=“AuditRes” key=“search.by.username.label” />

                


                <html:text property=“username” />

            

            


            

            

                <bean:define id=“srchBttnLabel”>

                    <bean:message bundle=“AuditRes” key=“audit.search.bttn.label” />

                </bean:define>            

                

            

            

        </html:form>

Problem not related to the calendar, this is default behavior for <input type=“image”… , just replace with text with static img tag and all will work correctly.

if i use the following tag instead: calendar icon, the calendar is never displayed when clicked. Do i need an onclick event to display and close the calendar?

Please check attached sample, it uses layout which provided in original question and image button replaced with img tag.

2394729348.ZIP (22.6 KB)