Hi i'm new to wicket, I wonder if any of yous can help me. I'm trying to get
the date selected from DateField component when the date is changed. I've
tried getConvertedInput() and getInput()but they just return null. Below is
my code, I've striped it down to just display the date in the console
You can get the model
Date d = dateField.getModelObject();
Format it by using the SimpleDateFormat
--
View this message in context:
http://www.nabble.com/How-to-get-DateField-value-tp24567634p24568750.html
Sent from the Wicket - User mailing list archive at Nabble.com
= dateField.getModelObject();
Format it by using the SimpleDateFormat
--
View this message in context:
http://www.nabble.com/How-to-get-DateField-value-tp24567634p24568750.html
Sent from the Wicket - User mailing list archive at Nabble.com
The above code works for me. You know that the onchange method is only
triggered when you click the textfield for focus and the click the webpage
to lose focus
have you put the field in a form?
--
View this message in context:
http://www.nabble.com/How-to-get-DateField-value
the field in a form?
--
View this message in context:
http://www.nabble.com/How-to-get-DateField-value-tp24567634p24570614.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users
);
}
});
form.add( dateField );
add( form );
}
}
--
View this message in context:
http://www.nabble.com/How-to-get-DateField-value-tp24567634p24574979.html
Sent from the Wicket - User mailing list archive at Nabble.com
://www.nabble.com/How-to-get-DateField-value-tp24567634p24574979.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h
from wicket-extension or from another project?
--
View this message in context:
http://www.nabble.com/How-to-get-DateField-value-tp24567634p24575317.html
Sent from the Wicket - User mailing list archive at Nabble.com
wicket-extension. This one,
org.apache.wicket.extensions.yui.calendar.DateField;
On Mon, Jul 20, 2009 at 8:45 PM, Mathias Nilsson
wicket.program...@gmail.com wrote:
from wicket-extension or from another project?
--
View this message in context:
http://www.nabble.com/How-to-get-DateField
( dateField );
add( form );
}
}
--
View this message in context:
http://www.nabble.com/How-to-get-DateField-value-tp24567634p24575872.html
Sent from the Wicket - User mailing list archive at Nabble.com
;
}
};
form.add( dateField );
add( form );
}
}
--
View this message in context:
http://www.nabble.com/How-to-get-DateField-value-tp24567634p24575929.html
Sent from the Wicket - User mailing list archive
You can also override the datepicker if you would like
--
View this message in context:
http://www.nabble.com/How-to-get-DateField-value-tp24567634p24576032.html
Sent from the Wicket - User mailing list archive at Nabble.com
Also, how does your markup look? You should use the DateField with a span or
div.
--
View this message in context:
http://www.nabble.com/How-to-get-DateField-value-tp24567634p24576073.html
Sent from the Wicket - User mailing list archive at Nabble.com
://www.nabble.com/How-to-get-DateField-value-tp24567634p24576073.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail
14 matches
Mail list logo