Announcement Announcement Module
No announcement yet.
TimeTextBox and webflow Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • TimeTextBox and webflow

    I don't know how can i post value without T, in spring web flow

    that's the code:

    <form:input id="horaSalidaFin" path="horaSalidaFin" />
    <script type="text/javascript">
    Spring.addDecoration(new Spring.ElementDecoration({
    elementId : "horaSalidaIni",
    widgetType : "dijit.form.TimeTextBox",
    widgetAttrs : {
    required : true,
    style: "width:60px",
    constraints: {
    timePattern: 'THH:mm:ss',
    clickableIncrement: 'T00:15:00',
    visibleIncrement: 'T00:15:00',
    visibleRange: 'T01:00:00'
    Spring.addDecoration(new Spring.AjaxEventDecoration({
    elementId: "horaSalidaIni",
    formId: "dateForm",
    event: "onchange",
    params: { _eventId: "updateEntries" }

    This is the generated input that post value with T:

    <input type="hidden" name="horaEntradaIni" value="T10:30:00">

    And the debuged error:

    2012-02-28 11:04:12,409 [http-bio-8089-exec-9] DEBUG org.springframework.binding.mapping.impl.DefaultMa pping - Adding mapping result [[email protected] mapping = parameter:'horaSalidaIni' -> horaSalidaIni, code = 'typeMismatch', error = true, errorCause = org.springframework.binding.expression.ValueCoerci onException: Value could not be converted to target class; is a suitable type converter registered?, originalValue = 'T11:15:00', mappedValue = [null]]

    Thanks a lot.