Hello,
I had the same problem, the solution from 'damm' worked very well for view-only purposes. In my special case, the could select a date from the calendar, scroll throw a long period of months and process some commands in an external input field, which manipulating the calendars. Every command needs a JavaScript function to restyle the CSS, which results in a very ugly flickering while the javascript was running. So I overwrite my page CSS like this for an "4x3 calendar"-style:
Code: Select all
.ui-datepicker {
width: 648px !important;
}
.ui-datepicker-group:nth-child(1),.ui-datepicker-group:nth-child(5),.ui-datepicker-group:nth-child(9)
{
-moz-border-radius-topleft: 4px;
-webkit-border-top-left-radius: 4px;
-khtml-border-top-left-radius: 4px;
border-top-left-radius: 4px;
}
.ui-datepicker-group:nth-child(4),.ui-datepicker-group:nth-child(8),.ui-datepicker-group:nth-child(12)
{
-moz-border-radius-topright: 4px;
-webkit-border-top-right-radius: 4px;
-khtml-border-top-right-radius: 4px;
border-top-right-radius: 4px;
}
.ui-datepicker-group:nth-child(5), .ui-datepicker-group:nth-child(9) {
clear: both;
}
I think it is quite self-explaining. For other style you have to change the "nth-child(x)" parts. The orginally style for
.ui-datepicker-row-break contains
{ clear:both; width:100%; font-size:0em; }, which I got not working, but
clear: both only did the trick for me.
Nevertheless, an attribute for p:calendar to style the component it selfs would be very nice.
Charriu