0

I want to get a month picker as an input field.

I came to know about jQuery monthpicker.

how can I use that in primefaces?

swaps
  • 305
  • 3
  • 8
  • 18
  • You can find your answer at http://stackoverflow.com/questions/15609517/primefaces-calendar-component-show-only-month-and-year/15615332#15615332 – Jitesh Apr 03 '13 at 11:24

1 Answers1

0

I have not come across Prime faces but why don't you use Jquery UI it has a built in calendar. You could easily adapt the code to just output the month.

http://jqueryui.com/datepicker/

var date = $('#datepicker').datepicker({ dateFormat: 'mm' }).val();

Thanks

Brent
  • 2,385
  • 10
  • 39
  • 63