Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsf ui:table component is not supported for different browser

 
imtiyaz momin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18276
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
imtiyaz momin
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18276
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

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

Thanks
 
Olgun Kaya
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think most of the guys experiencing the same issue just like me. If you browse into the page source actually the table is there. Problem is jsf creates a style attribute hidden="" which makes chrome and firefox to not to show it.

simply you need to somehow add display="block" into the style of tables.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic