Even I had the same problem in my previous project. But I want to ask why you want to make date field readonly? I feel one should also allow input field editable , so that user can enter date directly than doing clicking button always.
For your question according to my knowledge you cannot get value in BB for a ReadOnly field in JSF.
yes, you are correct , if the field is readonly then we cant get the value in backing bean of JSF.
so what i did was i used <f:convertDateTime> and i wrote validation method to check the format of the date in my backing bean.
so anyway user can enter the date , if he enter wrong date then it will throw conversion error, if he enters wrong format then my validator method will fire.
to display the message i am using <h:message>
thanks Gopal
I think he's gonna try to grab my monkey. Do we have a monkey outfit for this tiny ad?