Can anyone help me how to add a pop up calendar in a JSF page.I need to add a calendar where the user will select the date and the selected date should be displayed in a text box. Can anyone help me to achieve the rich face calendar?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the rich faces calendar in the following manner :-
variableName will have setter and getter in your backing bean.The data type will be Date.
So when you actually select a date and submit the page your getter will contain the selected date.
Use
getVariableName()to retrieve selected value.Your bean should look like this:-
Your modified rich:calendar should look something like this:-
In case you don’t want to use validation remove the validator and required attribute from rich:calendar tag