Wednesday 15 June 2011

jsf - How to force user to pick date from p:calendar only by using mouse? -


I need a prefix calendar with the showOn = "button" . And I want to force the user to take only the date using the mouse from the popup Therefore only text box input should be readable (or disabled).

I have tried with readonlyInput , but it does not work:

  & lt; P: Calendar YearRange = "2001: c + 20" ReadonlyInput = "true" id = "test" showOn = "button" pattern = "dd.m.m.yyyy" value = "# {mybean.value}" & gt; & Lt; / P: Calendar & gt;   

Edit: What is it possible to do?

What version of PrimeFaces are you using? 3.2 and previous versions had the attribute reading ONLYLINEUP text , NOT readOnlyInput .

No comments:

Post a Comment