Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-2.0.0.GA
-
Fix Version/s: EE-2.0.0.GA_P01
-
Component/s: ACE-Components
-
Labels:None
-
Environment:ICEfaces EE 2.0 SF 10754
Description
-
- Case10754Example2.zip
- 21 kB
- Arran Mccullough
-
Hide
- Case10754Example2.war
- 9.06 MB
- Arran Mccullough
-
- META-INF/MANIFEST.MF 0.1 kB
- META-INF/context.xml 0.1 kB
- WEB-INF/classes/com/.../example/Tab.class 1 kB
- WEB-INF/classes/.../example/TestBean.class 3 kB
- WEB-INF/lib/commons-beanutils.jar 226 kB
- WEB-INF/lib/commons-collections.jar 558 kB
- WEB-INF/lib/commons-digester.jar 140 kB
- WEB-INF/lib/commons-logging.jar 52 kB
- WEB-INF/lib/icefaces-ee-ace.jar 2.40 MB
- WEB-INF/lib/icefaces-ee-compat.jar 2.67 MB
- WEB-INF/lib/icefaces-ee-composite.jar 357 kB
- WEB-INF/lib/icefaces-ee.jar 206 kB
- WEB-INF/lib/jsf-api.jar 611 kB
- WEB-INF/lib/jsf-impl.jar 1.85 MB
- WEB-INF/lib/jstl.jar 20 kB
- WEB-INF/web.xml 2 kB
- css/style.css 0.1 kB
- tabControl.xhtml 1 kB
- tabFour.xhtml 0.5 kB
- tabOne.xhtml 0.5 kB
- tabThree.xhtml 0.5 kB
- tabTwo.xhtml 0.5 kB
- welcomeICEfaces.xhtml 2 kB
-
- screenshot-3.png
- 216 kB
-
- screenshot-2.png
- 221 kB
-
- screenshot-1.png
- 119 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Can't apply changes to icefaces-ee-2.0.0-dev branch. Versions in icefaces-ee-2.0.0-dev too different. Looks like some other JIRA changes haven't been applied there yet.
From Arran:
The latest issue they are having now is that when the client-side tab is changed and they try and make a tab change on the server side, the server-side action isn't displayed on the client side.
Try something like this:
function selectTabFromServer(clientId, index) {
var callback = function (tabset)
;
ice.component.tabset.getInstance(clientId, callback);
}
But there may be problems if client side obejcts and states (e.g. JSContext) are not kept in sync.
From Arran:
Perfect, that works much better, thanks. This looks to help the latest issue they have.
From Arran:
The customer has found an issue when they are disabling or enabling a tab and also trying to select it or another tab in the same call. When this occurs it throws a JavaScript error: "tabset is undefined". This seems to occur only when they are also toggling the disabled attribute. It doesn't seem to cause the component from working correctly after though, at least in my tests so far.
Step 1 done. No need to change JS (ours or Yahoo's) so far. Just changed renderer to add disabled style class to Tab (<li>) element when a tab is disabled. When creating from pre-rendered HTML, YUI uses style classes (among other things) as config. params. (We were already using the disabled style class, but only when the whole tabset was disabled.) See screenshot-1.
The default for active index and active tab is null. (See screenshot-2.) And YUI won't let you activate a disabled tab. (See sceenshot-3.) So in this case it doesn't matter what active index you are trying to set. It just has no effect.
Note that in the test case the tab contents flash first because clientSide="true".
Modified: C:\svn\ossrepo\icefaces-ee\patches\icefaces-ee-sf-10754\icefaces\ace\component\src\org\icefaces\component\tab\TabSetRenderer.java
Completed: At revision: 27359