jsf 2 - p:calender multiple date selection -


i trying achieve multiple selection of dates functionality p:calender(primefaces 3.3), in way.

<p:calendar id="cal" showbuttonpanel="true" mode="inline" value="#{bean.dates}" selection="multiple"/> 

in backing bean have taken dates array in way:

private date[] dates; public date[] getdates() { return dates; } public void setdates(date[] dates) { this.dates = dates; } 

but still didnt able select multiple dates.

as per blog http://blog.primefaces.org/?p=391 works.

i tried implement in same way .but did'nt worked. why so?

the blog post have read outdated , in time calendar of primefaces relying in yui , while based on jquery ui datepicker (which not support multi selection)

so can't achieve multiple date selection primefaces current calendar , can google bit , find other jquery based alternatives,

for example jquery ui datepicker - multiple date selections


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -