80306

Primefaces 5 does not display the option to select time

Question:

Need to use the component p:calendar with the option to select the date and time (hours, minutes and seconds).

The problem is that the option to select the time is not displayed, only the option to select the date. I am using the following pattern "dd/MM/yyyy HH:mm:ss".

According to <a href="http://www.primefaces.org/showcase/ui/input/calendar.xhtml" rel="nofollow">primefaces showcase</a> no additional attribute is required for display of schedule options, only define the pattern.

<p:calendar pattern="dd/MM/yyyy HH:mm:ss" value="#{calendarMB.date}" timeZone="GMT-3" />

Managed Bean

@Named @ViewScoped public class CalendarMB implements Serializable { private Date date; // get/set }

I performed the tests with primefaces 5.0 and 5.1

<hr />

<strong>Edit</strong>

Discovered the cause of the problem. Conflicting versions of jquery. We have a template with the following code <h:outputScript library="comum" name="javascript/jquery-1.10.2.js" /> By removing this import component worked as expected. Thank you all for the help

Answer1:

Discovered the cause of the problem. Conflicting versions of jquery. We have a template with the following code <h:outputScript library="comum" name="javascript/jquery-1.10.2.js" /> By removing this import component worked as expected. Thank you all for the help

Recommend

  • primefaces 4: Multiple autocomplete add an element in middle of eneterd items
  • Error on click event of Tree component of PrimeNG -
  • How to use BigCartel “Variables” to Call Different Product Categories
  • project idea for fibonacci heap
  • How to execute javascript method from server side?
  • does not respond on
  • update value of a variable inside a template - django
  • ColdFusion - DateTime Format with GMT offset
  • time_t conversion format question
  • Drag and Drop between different layout units in Primefaces
  • html5 tag support
  • Google Cloud SQL and time zones
  • Parsing Java dates with truncated timezone information
  • jQuery random blockquote
  • A simple datepicker in VueJS
  • How to change curtime?
  • How to parsing NSDate to RFC 822 always use in English?
  • date: illegal option — d, Find difference between two dates
  • Google Calendar Api is not showing event list
  • date format change with DT and shiny
  • ckeditor and jquery UI dialog not working
  • Primefaces lazy datascroller calling load twice
  • Get localized short date pattern as String?
  • Most efficient way to move table rows from one table to another
  • Does Mobilefirst provide a provision to access web services directly?
  • How does document.ready work with angular element directives?
  • Automatically associate new Sonar project with custom quality profile and quality gate
  • Parse a date string in a specific locale (not timezone!)
  • why xml file does not aligned properly after append the string in beginning and end of the file usin
  • Lost migrations and Azure database is now out of sync
  • java.lang.NoClassDefFoundError: com.parse.Parse$Configuration$Builder on below Lollipop versions
  • HTML download movie download link
  • Microsoft Visual Studio Community 2015 always crashes in Windows 10 if swithed to Visual FoxPro
  • ActionScript 2 vs ActionScript 3 performance
  • To display the title for the current loaction in map in iphone
  • Traverse Array and Display in markup
  • Codeigniter doesn't let me update entry, because some fields must be unique
  • NSLayoutConstraint that would pin a view to the bottom edge of a superview
  • How to set the response of a form post action to a iframe source?
  • Does armcc optimizes non-volatile variables with -O0?