Skip to main content

Extracting Date String out of dropdown date picker textbox

4 replies [Last post]
mmixon
Offline
Joined: 2006-02-14
Points: 0

Hi All,

I'm new to JMaki as well as AJAX. I'm trying to figure out how to extract the date once a specific one has been selected. I've tried a number of things, but when I'm in debugging mode, none of them are in the bean object that I've created. Any ideas? I'm pretty stumped.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
carlavmott
Offline
Joined: 2005-02-10
Points: 0

I just added code which publishes the value to a topic. This will be in the next release of jMaki
which we are trying to get out asap. Most likely next week. To pick up the value from a topic
see the sample getWidgetData.

carla

sine_morbo
Offline
Joined: 2007-04-18
Points: 0

I'm also trying to use (dropdown)datepicker, and then pass the date back to the server. But when creating a value binding to the backing(managed) bean this way

the default values of the calendar don't get set, I only can choose from "NaN" options, and when I submit the form containing the datepicker, the submitted value is null (refering to the setter method in the bean).
What am I doing wrong? OR Can you point me to a working JSF-datepicker example with an exact link? I couldn't find one.
Thank you!
Peter

tazmaniac
Offline
Joined: 2007-03-19
Points: 0

Hi mmixon,

If you've downloaded the Jmaki examples, you'll find in the source an example of a datePicker (if that's what you are refering to): datepicker-jsf.jsp.

I see that it can be linked to a bean when used with JSF [i](text visible when using Netbeans, after clicking on the "Jmaki" button, in the "usage" tab)[/i].

[u][i]Example:[/i][/u]

Alfred

mmixon
Offline
Joined: 2006-02-14
Points: 0

Thanks. I've gathered a few references about JSF and I must say that I've been wasting a lot of development time by not using this framework.