Hi,

works fine when I've added your case to FormInput in wicket-examples.

You should create a quickstart showing your problem.

Have fun
Sven


Am 08.12.18 um 13:40 schrieb christophe:
Hello

Sorry for this late reply and a fairly confusing request. Let me try to
clarify

1) I still use Wicket 6.3 and wont be able to upgrade before 5 to 6 months
at least
2) I need a  "HTML" date and time field that  "uses" the "<input
type="datetime-local".../> HTML markup

3) I proceed as follows
  a) I created a DateTime class that specializes TextField<String>and simply
checks that the corresponding
      marup is indeed of type "input type="datetime-local""
      This all works very well as Wicket does not complain and a pretty
datetime-local field is displayed on my
     page.

b) I also need to receive the "value" of the datetime-local field when the
input field loses the focus ( DOM change event). So I created a
specilaization of AjaxFormComponentUpdatingBehavior whose method
onUpdate(..) is overloaded. The behavior is added to the Java component

This method is invoked when the date time  markup loses the  focus.

However the value is alswas an empty string.

I took a look at the message sent by the browser. It contains "an empty
string"

This is where I need your help.
i) Why is the value sent by the browser empy
ii) What do I do wrong / How can I fix it

Thank you very much

Christophe


--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to