Hi, I try to add a datefield to my page, accroding to the examples in
http://www.wicketstuff.org/wicket13/index.html

but I get a error and then I try to do it on a sperate page just for testing
but getting the same error:

type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

javax.servlet.ServletException: Servlet execution threw an exception


note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.14 logs.


However about error message doesn't tell me anything, and the code is really
simple:

java code:

public class DateFieldTest extends WebPage{
        private Date date = new Date();

        public DateFieldTest(){
        Form form = new Form("form");
        DateTextField dateTextField = new DateTextField("dateTextField", new
PropertyModel(this,
    "date"), new StyleDateConverter("S-", true));
        form.add(dateTextField);
    dateTextField.add(new DatePicker());
    add(form);
        }

}

Html code:
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<title>Wicket Examples - dates</title>

</head>
<body>

<form wicket:id="form">
<input type="text" wicket:id="dateTextField" /> 
<input type="submit" value="submit" />
</form>

</body>
</html>


Thanks for this forum, I am getting lots help from here, many many thanks
again!

Ray


-- 
View this message in context: 
http://www.nabble.com/hi-questions-about-DateField%2C-thanks%21-tf4635435.html#a13237803
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to