Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.7
-
Component/s: ICE-Components
-
Labels:None
-
Environment:n/a
-
Affects:Documentation (User Guide, Ref. Guide, etc.)
Description
Adding this feature would address two current deficiencies with ICEfaces focus mgmt.:
1. It's not currently possible to setFocus on a component without resorting to component binding.
2. Even with component binding, setting the initial focus (when the page is first loaded) is not dependable.
-
- bodyFocus.diff
- 6 kB
- Philip Breau
-
Hide
- Test_ComponentShowcase.war
- 9.81 MB
- Philip Breau
-
- WEB-INF/classes/.../common/Employee.class 1 kB
- WEB-INF/classes/com/.../common/Person.class 3 kB
- WEB-INF/classes/.../AutoCompleteBean.class 4 kB
- WEB-INF/.../AutoCompleteDictionary$1.class 1 kB
- WEB-INF/.../AutoCompleteDictionary.class 3 kB
- WEB-INF/classes/.../autocomplete/City.class 2 kB
- WEB-INF/.../ButtonsAndLinksBean.class 1 kB
- WEB-INF/.../SelectInputDateBean.class 1.0 kB
- WEB-INF/classes/.../AxisChartBean.class 2 kB
- WEB-INF/classes/com/.../charts/Chart.class 2 kB
- WEB-INF/classes/.../ChartFactory.class 5 kB
- WEB-INF/classes/.../ChartMediator.class 7 kB
- WEB-INF/classes/.../CombinedChartBean.class 6 kB
- WEB-INF/classes/.../DynamicPieChart.class 5 kB
- WEB-INF/classes/.../PieChartBean.class 4 kB
- WEB-INF/classes/com/.../charts/Sales.class 2 kB
- WEB-INF/classes/.../dragDrop/CartBean.class 5 kB
- WEB-INF/classes/.../dragDrop/CartItem.class 4 kB
- WEB-INF/classes/.../StoreTable.class 2 kB
- WEB-INF/classes/.../AppearFadeBean.class 3 kB
- WEB-INF/classes/.../effects/Effects.class 8 kB
- WEB-INF/classes/.../HighlightBean.class 4 kB
- WEB-INF/classes/.../effects/MoveBean.class 4 kB
- WEB-INF/classes/.../PulsateBean.class 2 kB
- WEB-INF/classes/.../SalesGroupRecord.class 1 kB
- WEB-INF/.../SalesGroupRecordBean.class 3 kB
- WEB-INF/classes/.../SalesRecord.class 2 kB
- WEB-INF/.../SalesRecordsManager.class 4 kB
- WEB-INF/classes/.../InputFileBean.class 4 kB
- WEB-INF/classes/com/.../gmap/Bean.class 2 kB
-
Hide
- ICE-3121.war
- 6.28 MB
- Adnan Durrani
-
- META-INF/MANIFEST.MF 0.0 kB
- index.jsp 0.1 kB
- WEB-INF/lib/xercesImpl.jar 1.15 MB
- WEB-INF/classes/test/Bean.java 0.2 kB
- WEB-INF/lib/icefaces-comps.jar 1.90 MB
- WEB-INF/lib/commons-collections.jar 558 kB
- WEB-INF/lib/backport-util-concurrent.jar 319 kB
- WEB-INF/lib/commons-beanutils.jar 226 kB
- WEB-INF/lib/commons-logging.jar 52 kB
- WEB-INF/lib/jstl.jar 20 kB
- main.jspx 3 kB
- WEB-INF/.../krysalis-jCharts-1.0.0-alpha-1.jar 151 kB
- WEB-INF/web.xml 2 kB
- WEB-INF/lib/xml-apis.jar 190 kB
- WEB-INF/lib/commons-digester.jar 140 kB
- WEB-INF/lib/jsf-api.jar 356 kB
- WEB-INF/lib/jsf-impl.jar 778 kB
- WEB-INF/lib/commons-fileupload.jar 56 kB
- WEB-INF/faces-config.xml 0.5 kB
- WEB-INF/classes/test/Bean.class 0.5 kB
- WEB-INF/lib/icefaces.jar 1.07 MB
Issue Links
- is duplicated by
-
ICE-2729 <ice:focus/> nested tag for focusing on page entry
- Closed
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Test case (comp showcase):
- navigate to text entry content
- enter a component id in the 'focus' inputText
focus attribute added to the ice:outputBody component.
Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\ext\OutputBody.java
Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\ice_properties\ice-outputBody-props.xml
Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\core\src\com\icesoft\faces\application\D2DViewHandler.java
Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\core\src\com\icesoft\faces\application\D2DViewHandler.java
Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\ice_properties\ice-outputBody-props.xml
Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\ext\OutputBody.java
Completed: At revision: 18386
Demo added for new focus attribute.
Changes made so the component would not find a component, if the "clientId" was specified. So now the component would find the component only if "id" was specified.
Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\ext\OutputBody.java
Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\ext\OutputBody.java
Completed: At revision: 18496
Updated description:
-------------------------
There is a new attribute "focus" added to the ice:outputBody component, which allows to focus to a component by just setting the "id" or the "clientId" of the component. It also avoids the need of component binding. The value of the focus attribute can be bind to the bean using the value binding. So application can dynamically change the focus.
Note:
- To focus the elements inside the UIData type of components, the element can not be focused using the "id", the clientId has to be used instead.
- The focus would only be requested when there is a value change on the focus attribute.
- If you setting the initial focus, the focused component must be rendered on first render call, if not then set the focus attribute only when component gets renders.
Tld docs updated for focus attribute.
Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\components\ice-outputBody-renderer.xml
Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\ice_properties\ice-outputBody-props.xml
Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\components\ice-outputBody-renderer.xml
Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\ice_properties\ice-outputBody-props.xml
Completed: At revision: 18497
suggested impl