cancel
Showing results for 
Search instead for 
Did you mean: 

DatePicker only for javax.sql.Date InputFields

Former Member
0 Kudos

Is it possible to restrict an InputField mapped to a date context node to accept only Date-Picker based input?

I know that WD will parse the value for me and will let me know if I'm entering a wrong value, but this seems to choke in some of the WAS versions.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Marius,

answer is no, its not possible to make the date textbox disabled and the date selector button enabled at the same time.

Shubhadip

Answers (1)

Answers (1)

Former Member
0 Kudos

What means "this seems to choke in some of the WAS versions"?

Armin

Former Member
0 Kudos

Hello Armin,

I noticed this:

if one enters 'abc' in the inputfield, the error message is displayed correctly (Date is invalid etc.)

if one enters '123' in the inputfield, an exception is thrown when the page is submitted (the exception is thrown before any of my own code is run).

I think this depends on the WAS version. For this question, however, I was mostly interested if we could disable the inputfield and restrict the user to use the calendar, as the usage is easier to contain. It seems like this is not possible (at least currently) so I abandon this idea.

Regards,

Marius

Former Member
0 Kudos

If encounter such a behaviour, please open an OSS message for the Java DDIC.

Armin