This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSF and the fly likes jsf ui:table component is not supported for different browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "jsf ui:table component is not supported for different browser" Watch "jsf ui:table component is not supported for different browser" New topic
Author

jsf ui:table component is not supported for different browser

imtiyaz momin
Greenhorn

Joined: Feb 08, 2012
Posts: 2
I am using Sun Java Studio Creator 2 Update 1 for jsf component, i have suffering big problem for jsf <ui:table> component. This component is not supported for above firefox 8.0, chrome etc.what is the solution of that problem.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

Never mind the IDE and the browser. I've never heard of a Facelets ui:table tag type.

For most cases, the best way to present tabular or grid data on a JSF View is to use the ui:dataTable tag or one of its extensions.

Whatever you do, DON'T use JSTL looping tags.


Customer surveys are for companies who didn't pay proper attention to begin with.
imtiyaz momin
Greenhorn

Joined: Feb 08, 2012
Posts: 2
Sir,
We are Sun studio creator for creating the table, please see below code generate by Creator ,

<ui:table augmentTitle="false" binding="#{Page1.table1}" deselectMultipleButton="true" id="table1" lite="true" paginateButton="true"
paginationControls="true" selectMultipleButton="true" title="Calorie Calculator" width="701">

<ui:tableRowGroup binding="#{Page1.tableRowGroup1}" id="tableRowGroup1" rows="10" selected="#{Page1.currentRowSelected}"
sourceData="#{SessionBean1.foodListDataProvider}" sourceVar="currentRow">
<ui:tableColumn binding="#{Page1.tableColumn6}" headerText="Category" id="tableColumn6" width="68">
<ui:staticText binding="#{Page1.staticText6}" id="staticText6" text="#{Page1.catDesc}"/>
</ui:tableColumn>
<ui:tableColumn binding="#{Page1.tableColumn2}" headerText="Description" id="tableColumn2" sort="desc">
<ui:staticText binding="#{Page1.staticText2}" id="staticText2" text="#{currentRow.value['desc']}"/>
</ui:tableColumn>
<ui:tableColumn align="right" binding="#{Page1.tableColumn3}" headerText="Carb %" id="tableColumn3" sort="carbPct">
<ui:staticText binding="#{Page1.staticText3}" id="staticText3" text="#{currentRow.value['carbPct']}"/>
</ui:tableColumn>
<ui:tableColumn align="right" binding="#{Page1.tableColumn4}" headerText="Fat %" id="tableColumn4" sort="fatPct">
<ui:staticText binding="#{Page1.staticText4}" id="staticText4" text="#{currentRow.value['fatPct']}"/>
</ui:tableColumn>
<ui:tableColumn align="right" binding="#{Page1.tableColumn5}" headerText="Protein %" id="tableColumn5" sort="proteinPct">
<ui:staticText binding="#{Page1.staticText5}" id="staticText5" text="#{currentRow.value['proteinPct']}"/>
</ui:tableColumn>

</ui:table>

Sun Studio creator just like drag drop component.
We are using core html. datatable is refer as<h:datatable>
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

You have a bigger problem, it appears. The "ui" namespace these days is normally occupied by the Facelets tags. Apparently you have some sort of alternative tagset assigned to the XML namespace named "ui". This can lead to possible conflicts and can definitely lead to confusion.
Jonay Benito
Greenhorn

Joined: Oct 31, 2012
Posts: 1
Hi.

I have the same problem and I solved it uncommenting line 268 (table.hidden = "hidden"; // Hidden style class.) in file table.js in defaultheme.jar in my project lib directory

The path in the jar is /com/sun/rave/web/ui/defaulttheme/javascript/table.js

Everything works oks in new browser

Sorry for my english

Regards
Nancy Zhu
Greenhorn

Joined: Jul 23, 2013
Posts: 1
Hi there,

I've run into the same problem in my work. Can I know how you resolve this?

Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jsf ui:table component is not supported for different browser