datetimepicker time dojo widget won't let entering minutes freely
-----------------------------------------------------------------

                 Key: WW-2353
                 URL: https://issues.apache.org/struts/browse/WW-2353
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - Dojo Tags
    Affects Versions: 2.1.x
         Environment: Fedora 6, Tomcat 6.x, Firefox 1.5.x
            Reporter: Giovanni Azua Garcia


Having a form definition like the one below, the onTime datetimepicker would 
not allow the user to enter any time i.e. freely writing a time.

Use case:

- click the datetimepicker time control button
- select the "any" time option
- in the text field enter a non multiple of 5 minutes e.g. 08:34

When the control loses focus it automatically casts the minutes to 08:30 
multiple of 5.

<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>

<s:form id="formSimulation" action="%{targetAction}" method="post" 
theme="%{currentTheme}">
<sx:datetimepicker label="On Time" tooltip="Provide the On Time" name="onTime" 
type="time" toggleType="fade" toggleDuration="500" />
<!-- ... etc -->
<s:submit value="%{buttonLabel}" align="center"/>
</s:form>

This same behavior may be reproduced from the showcase example application.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to