Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.6
-
Fix Version/s: 1.6.1
-
Component/s: ICE-Components
-
Labels:None
-
Environment:Win XP / JDK 1.4 / Tomcat 5.5.17 / Liferay 4.3.0-RC1
-
ICEsoft Forum Reference:
Description
10:31:10 error [window] : Failed to set focus on [_sample_icefaces_sun_WAR_sampleicefacessunportlet_INSTANCE_iBR8__id1:_sample_icefaces_sun_WAR_sampleicefacessunportlet_INSTANCE_iBR8__id3:dateOfBirth_1574_calendar][object Error]
See attached portlet in order to reproduce.
Thanks,
Neil
---
This issue is happening without portlets also, as reported in the Forum:
When calling requestFocus on instance of selectInputDate component I am getting javascript error in the debug window.
Code:
12:54:49 error [window] : Failed to set focus on [calendarEditForm:sendWhenDate]
TypeError: id.asExtendedElement().focus is not a function
-
Hide
- sample-icefaces-sun-portlet.zip
- 4.99 MB
- Neil Griffin
-
- sample-icefaces-sun-portlet/build.xml 4 kB
- sample-icefaces-sun-portlet/Edit.jspx 4 kB
- sample-icefaces-sun-portlet/Help.jspx 2 kB
- sample-icefaces-sun-portlet/JobApplication.jspx 8 kB
- sample-icefaces-sun-portlet/.../context.xml 2 kB
- sample-icefaces-sun-portlet/.../ant-deploy.xml 2 kB
- sample-icefaces-sun-portlet/.../build-impl.xml 45 kB
- sample-icefaces-sun-portlet/.../genfiles.properties 0.4 kB
- sample-icefaces-sun-portlet/.../private.properties 4 kB
- sample-icefaces-sun-portlet/.../private.xml 0.2 kB
- sample-icefaces-sun-portlet/.../project.properties 4 kB
- sample-icefaces-sun-portlet/.../project.xml 4 kB
- sample-icefaces-sun-portlet/.../JobApplication.class 7 kB
- sample-icefaces-sun-portlet/.../Edit.properties 0.2 kB
- sample-icefaces-sun-portlet/.../Help.properties 1 kB
- sample-icefaces-sun-portlet/.../JobApplication.properties 2 kB
- sample-icefaces-sun-portlet/.../log4j.xml 14 kB
- sample-icefaces-sun-portlet/.../Override.properties 1 kB
- sample-icefaces-sun-portlet/.../faces-config.xml 3 kB
- sample-icefaces-sun-portlet/.../geronimo-web.xml 0.3 kB
- sample-icefaces-sun-portlet/.../backport-util-concurrent.jar 343 kB
- sample-icefaces-sun-portlet/.../commons-beanutils.jar 184 kB
- sample-icefaces-sun-portlet/.../commons-collections.jar 558 kB
- sample-icefaces-sun-portlet/.../commons-digester.jar 107 kB
- sample-icefaces-sun-portlet/.../commons-fileupload.jar 52 kB
- sample-icefaces-sun-portlet/.../commons-lang.jar 240 kB
- sample-icefaces-sun-portlet/.../commons-logging.jar 52 kB
- sample-icefaces-sun-portlet/.../commons-validator.jar 136 kB
- sample-icefaces-sun-portlet/.../el-api.jar 24 kB
- sample-icefaces-sun-portlet/.../icefaces.jar 651 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Fix revision # 14713
The requestFocus() method has been fixed as well as the default behavior added to the selectInputDate component so the input text will get a focus by default after selecting a date from pop-up calendar.
This appears to be broken again in ICEfaces 1.7RC1
To be more precise, when I select a date from the popup calendar, the input focus is placed on the little popup handle icon, rather than on the input field. I suppose this could be considered correct behavior, but from an end user (usability) perspective, I would think that the date that gets inserted into the text field would be selected in a "select all" kind of manner. Then pressing tab again would send me to the next field.
Note that there is no "failed to set focus" error in the ICEfaces debug window – so this bug is indeed fixed, I guess I'm questioning the correctness of setting input focus on the calendar popup button/handle rather than the text field.
Forgot to mention that I first noticed this problem as of trunk revision 14108 (6/11/2007), which is the version of the JARs you will find in the WEB-INF/lib folder of the attached portlet.