timePicker and PF calendar control conflict
I have a page with both a timePicker and several PF calendar controls on it. All the controls in the DOM before the time picker are rendered without the button (I have them set to showon=button). For the controls where I had time as part of the selection, the ones before the timePicker appears no longer have time there. All the controls rendered in the DOM after the timePicker render perfectly.
PrimeFaces 3.5 | Glassfish 3.1.2 | IntelliJ IDEA 12.1.4 | Windows 7, Firefox 14.0.1
Strange. It was working for us in one web app where we had mixed PF calendar and PF TimePicker. Before 3.4. Please post a simple code snippet which demonstrates the problem.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin
-
- Posts: 6144
- Joined: 10 Sep 2011, 21:10
I don't like show on button, but p:calendar and pe:timePicker working really good over here!
click URL below and my code is shared there.
viewtopic.php?f=14&t=25319
click URL below and my code is shared there.
viewtopic.php?f=14&t=25319
Howard
PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome
Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache
PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome
Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache
-
- Posts: 6144
- Joined: 10 Sep 2011, 21:10
Interesting, I am seeing this issue, since I have pe:timePicker mode="popup" and p
What I see is the following:
1. pe:timePicker works as designed on this page
2. p:calendar with date/time 'pattern' initially shows date and time in the inputText field
3. When click the inputText field, the dropdown/popup only shows the datePicker, and the timePicker is not displayed
4. When I select a date via mouse-click, then the inputText is updated only with the date value, and the time value is not displayed in the inputText
As usual, I just wanted to report this issue/behavior, and I'm going to split the date and time, and use p:calendar and pe:timePicker, respectively. That's my goal today. I should have done that long time ago, but this p:calendar with date/time 'pattern' is rendered in a p:dataTable p:column, and I was a bit lazy splitting up the date and time values, but now I need to do it, to workaround this issue/behavior. No problem with me and no complaints.
Code: Select all
<p:calendar value="#{flight.flightDateTime}" navigator="true"
label="Flight Date/Time"
pattern="MM/dd/yyyy hh:mm a" size="20">
<f:convertDateTime pattern="MM/dd/yyyy hh:mm a" />
</p:calendar>
1. pe:timePicker works as designed on this page
2. p:calendar with date/time 'pattern' initially shows date and time in the inputText field
3. When click the inputText field, the dropdown/popup only shows the datePicker, and the timePicker is not displayed
4. When I select a date via mouse-click, then the inputText is updated only with the date value, and the time value is not displayed in the inputText
As usual, I just wanted to report this issue/behavior, and I'm going to split the date and time, and use p:calendar and pe:timePicker, respectively. That's my goal today. I should have done that long time ago, but this p:calendar with date/time 'pattern' is rendered in a p:dataTable p:column, and I was a bit lazy splitting up the date and time values, but now I need to do it, to workaround this issue/behavior. No problem with me and no complaints.
Howard
PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome
Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache
PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome
Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache
Thanks for pointing to possible issues. I think this may be a CSS collision. Both use ui-... prefix. We try to use pe-... prefix whenever it's possible, but some third-party plugins come still with ui-... If JavaScript looks for ui-... we have a problem.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin
-
- Posts: 6144
- Joined: 10 Sep 2011, 21:10
Issue 280 in Issue tracker.
Howard
PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome
Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache
PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome
Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache
I appreciate all the posts in this forum... thanks everyone... Have a good day.
You can check out our latest pass4sure 642-813 156-215.75 700-104 000-106 a+ certification E20-329 CTAL-TA VCP-510 648-375 Cisco pass4sure and ISC exams written by our certified teams to help you pass University of Oxford .You can also purchase wikipedia.
-
- Posts: 1
- Joined: 19 Sep 2013, 06:35
I think you will have to set it to all the code in a single loop for the changes to happen for all the controls. Well that might sometimes get conflicted too. You can reset all the controls once again after setting up the time picker to render the changes. garciniareviews.org
For controls when I had time as part of the selection, the ones before the TimePicker seems longer have time there. All controls rendered in the DOM after the TimePicker do it perfectly.
-
- Posts: 21
- Joined: 18 Nov 2013, 06:28
I've tried as your description, however, I didn't met that situation. Hard to figure out in which step did you got wrong. Anyway, I saw a time picker control tutorial which is quite specific, might do your some favor. Or change something like a UI calendar control may alters something.evaleah wrote:I have a page with both a timePicker and several PF calendar controls on it. All the controls in the DOM before the time picker are rendered without the button (I have them set to showon=button). For the controls where I had time as part of the selection, the ones before the timePicker appears no longer have time there. All the controls rendered in the DOM after the timePicker render perfectly.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 17 guests