Is it possible to have Year view for primefaces schedule? By default month/week/day view are values, how can I have a year view for schedule?
Thanks
You cannot achieve it by using the original Primefaces schedule only...
Quote from the primefaces showcase :
Schedule is highly customizable featuring various views (month, day, week),
Also, the official full calendar jQuery plugin (on which the Primefaces schedule is actually based) does not support this out of the box FullCalendar
BUT... you can take a look at this : Year View with 12 Mini-Calendars there is an unofficial way to achieve what you are looking for look at the attached .rar file (demos/agenda-views.html)
So you first need to integrate the full calendar jQuery plugin in your web app, then look at the patch...
So eventually it is possible...
Related
I'm having some troubles with the primefaces datepicker component when using view="month". It's not possible to restrict the date selection to a certain month range, only to a year range. Also the month view setting does not work with dateTemplate (dateTemplate="dateTemplateFunc"). (The javascript function never gets called).
Does anybody know about a workaround to restrict the month-selection for example to 03/2017-06/2019 and to dynamically customise the background of the months while using view="month"?
Update: As Melloware suggested I created an MVCE for it:
https://github.com/BalthaZarr83/datePickerIssue
Issue reported: https://github.com/primefaces/primefaces/issues/5021
Fixed in PF 7.0.6 Elite and PF 7.1. with this commit: https://github.com/primefaces/primefaces/commit/204acbb11032b972cc640fcd7a19b72f77070969
Ok, I have been trying to find answer for two days now. I created new Web Application and added JSF framework to it. But when I opened a palette I can see only few tags to be dragged and dropped. I can see HTML, HTML Forms and JSF categories with only about five tags in each. Do I have to add some library or something? Thank you for help.
You better get rid of Netbeans JSF palette when adding components to your page. Writing directly on the page you will be more productive because you have code completion assistance. If you look at the JSF palette it is like a set of squeleton generators more than an exhaustive components set. So basically I would use, perhaps, only the JSF Data Table [From Entity] palette item.
I recently upgraded from PrimeFaces 3 to PrimeFaces 5 and my calendar no longer shows the correct display. I see that PrimeFaces wraps around FullCalendar.io.
In prime faces 3 I could use the time format
timeFormat=hh:mmtt {- hh:mmtt}
to render a start and end time on ALL EVENTS regardless of which view (day, agendaDa, month etc).
Is there a way to do this in Primefaces 5?
Looks like there is an open bug report on github for this:
https://github.com/primefaces/primefaces/issues/190
Omnifaces Html5RenderKit does not support all input-type-attributes like e.g. month or week.
Anybody knows if there's a reason for that? Or an update planned?
HTML5 is an ongoing process and daily subject to changes. At the moment the Html5RenderKit was developed, those new attribues weren't supported on the major browsers IE/FF/Chrome.
OmniFaces 1.5 will add the new feature of the ability to specify additional custom (HTML5) attributes via a <context-param>. See also the "Configuration" section of the Html5RenderKit page at the showcase.
Can anyone give details about creating graphs like bars and lines in jsf ? which one is best ? I want graphs by taking data from database dynamically and should work offline.I want each and every
step of installation and execution.please reply.
Have a look for component libraries which offers graph (chart) components.
For example PrimeFaces (demo) and OpenFaces (demo).