Details
- 
        Type:
 Bug
            
         - 
        Status: Closed
 - 
            Priority:
 Major
                
             - 
            Resolution: Fixed
 - 
            Affects Version/s: 4.1.1
 - 
            Fix Version/s: EE-4.1.0.GA, 4.2.BETA, 4.2
 - 
            Component/s: ACE-Components
 - 
            Labels:None
 - 
            Environment:ICEfaces 4 trunk r48819, Tomcat 8, all browers
 
- 
                        Assignee Priority:P2
 
Description
                    An ace:dateTimeEntry that has renderAsPopup = "true" and showOn = "button" or showOn = "both" fails to open the date picker on the first click, the first time using it. 
A second click is required to open the picker. On subsequent attempts the picker opens with one click.
To reproduce:
1.) Use the QA test app /calendarAttribute.jsf found at:
http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/dateTimeEntry
2.) Change the showOn to "button" or "both".
3.) Press the button, the picker does not appear.
4.) Press the button again, the picker does appear.
            
A second click is required to open the picker. On subsequent attempts the picker opens with one click.
To reproduce:
1.) Use the QA test app /calendarAttribute.jsf found at:
http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/dateTimeEntry
2.) Change the showOn to "button" or "both".
3.) Press the button, the picker does not appear.
4.) Press the button again, the picker does appear.
r48829: modified logic of the initAndShow function to just show the calendar if it's already initialized