• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsf ui:table component is not supported for different browser

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic