Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.2-EE-GA_P01
-
Fix Version/s: 1.8.3, 1.8.2-EE-GA_P02
-
Component/s: ICE-Components
-
Labels:None
-
Environment:-
Description
<ice:panelGroup>
<ice:outputText value="#{myColumn}"/>
</ice:panelGroup>
</ice:commandSortHeader>
produces the content shown in the two attached screen shots.
-
Hide
- SC9298-nullSortHeader.zip
- 221 kB
- yip.ng
-
- SC9298-nullSortHeader/.classpath 3 kB
- SC9298-nullSortHeader/.DS_Store 6 kB
- SC9298-nullSortHeader/.../faces-config.pageflow 0.2 kB
- SC9298-nullSortHeader/.project 1.0 kB
- SC9298-nullSortHeader/.../.jsdtscope 0.4 kB
- SC9298-nullSortHeader/.../org.eclipse.jdt.core.prefs 0.3 kB
- SC9298-nullSortHeader/.../org.eclipse.jst.jsf.designtime.appmgr.prefs 0.1 kB
- SC9298-nullSortHeader/.../org.eclipse.wst.common.component 0.5 kB
- SC9298-nullSortHeader/.../org.eclipse.wst.common.project.facet.core.prefs.xml 0.5 kB
- SC9298-nullSortHeader/.../org.eclipse.wst.common.project.facet.core.xml 0.5 kB
- SC9298-nullSortHeader/.../org.eclipse.wst.jsdt.ui.superType.container 0.0 kB
- SC9298-nullSortHeader/.../org.eclipse.wst.jsdt.ui.superType.name 0.0 kB
- SC9298-nullSortHeader/.../ListBean$LocalDataModel.class 1 kB
- SC9298-nullSortHeader/.../ListBean.class 13 kB
- SC9298-nullSortHeader/.../ObjectBean.class 0.8 kB
- SC9298-nullSortHeader/.../TableColumn.class 2 kB
- SC9298-nullSortHeader/.../TableColumnDataModel.class 1 kB
- SC9298-nullSortHeader/.../TableDefinition.class 4 kB
- SC9298-nullSortHeader/.../TableSettings.class 5 kB
- SC9298-nullSortHeader/.../TableSettingsByTableAndUser.class 0.5 kB
- SC9298-nullSortHeader/.../UserBean.class 2 kB
- SC9298-nullSortHeader/.../UserListBean.class 5 kB
- SC9298-nullSortHeader/build/.../UserVO.class 0.8 kB
- SC9298-nullSortHeader/.../DataPage.class 1 kB
- SC9298-nullSortHeader/.../DataSource.class 2 kB
- SC9298-nullSortHeader/.../PagedListDataModel.class 3 kB
- SC9298-nullSortHeader/src/.../ListBean.java 23 kB
- SC9298-nullSortHeader/.../ObjectBean.java 1 kB
- SC9298-nullSortHeader/.../TableColumn.java 3 kB
- SC9298-nullSortHeader/.../TableColumnDataModel.java 2 kB
-
- 9298_firebug.jpg
- 55 kB
-
- 9298_screen.jpg
- 24 kB
-
- screenshot-03.png
- 244 kB
-
- screenshot-04.png
- 244 kB
-
- screenshot-05.png
- 248 kB
-
- screenshot-06.png
- 205 kB
-
- screenshot-07.png
- 77 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
By looking at the html ouput, problem shouldn't be caused by "the fact that the dataTable header is actually an html table header". There is a nested table inside the header cell just to render the column header text and the arrow. (I suspect a table was used because alignment and spacing would be easier.)
See screenshot 3 for rendering without panelGroup nesting; see screenshot 4 for rendering with panelGroup nesting. With panelGroup nesting the text is rendered in a different place (although it still appears the same in the web page) and an extra "null" is rendered. The quick fix is to add a null checking (see screenshot 5 for the result), but this doesn't seem to be a robust fix.
See screenshot 6. By the time it gets to the sort header rendering, the parent nodes (<a>, <div>, <span>) are already rendered? The sort header just appends the text and the arrow? So, the error in step in/out/over, if any, is not in the sort header rendering itself?
Quick fix (screenshot 6, lines 85, 87) works for user test app. See screenshot 7. The xp.css (css/xp/xp.css) used by the app. is not exactly the same as ours. You need to add the following:
.iceCmdSrtHdr table
{ display: inline; }Is it possible to verify that the server dom structure is correct, with all the elements that we expect, in the correct places? Then, once we're sure if this is just a styling issue, can we add this style to each of the themes?
Dom tree looks correct. Here is the log output:
root = [a: null]
child = [div: null]
child.getNodeType() = 1
child = [span: null]
The required CSS entry is already in our theme stylesheets. The user seems to be using an outdated copy of the theme stylesheet in the web application itself, not from icefaces.jar.
You can have a dataTable with commandSortHeader, and that works find, but as soon as you put a panelGroup inside the commandSortHeader, it stops working. My theory is that the commandSortHeader's renderer is not doing the d2d stepIn/stepOut/stepOver code right. It works ok when it has a leaf node component inside it, but not another container. It might be something else altogether, but that's where I'd start.