Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF DATA TABLE NAVIGATION PROBLEM

 
Bhavesh Thakkar
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using ADF faces in my project i am having a problem like this.

I am having a data table where in i am setting the "rows" attribute for the same to 100, so at a time only 100 records will be displayed in the grid.

The navigation part appears fine on the top of the data table. I want the same to be also appearing at the Bottom of the data table.

I am using the "selection" facet and tableSelectOne tag of adf in the data table.

There are links which say that it is possible to display the same at the top as well as at the bottom, but i am not able to figure out a way for the same.

My code goes as follows :

<af:table var="cpt" width="100%"
bandingInterval="1" banding="row"
value="# {mo_counterpartySearchManager.counterpartyDetailList}"
summary="Counterparty Summary"
styleClass="standard"
rendered="#{mo_counterpartySearchManager.visible}"
binding="#{mo_counterpartySearchManager.detailTable}">

<f:facet name="selection">
<af:tableSelectOne>
<af:commandButton id="cmd_deal_details"
styleClass="align:center;" text="Deal Details" action="#
{mo_counterpartySearchManager.doDealDetails}"/>
</af:tableSelectOne>
</f:facet>

<af:column sortProperty="id"
sortable="#mo_counterpartySearchManager.sortable}" >
<f:facet name="header">
<afutputText value="Counterparty Id"/>
</f:facet>
<afutputText value="#{cpt.id}" />
</af:column>
</af:table>

I have been working on this for quite a long time now.

Your help is highly appreciated.

Thank you,
Regards,
Bhavesh Thakkar
 
Darryl Nortje
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bhavesh,

Firstly, please don't post your posting using capital letters. It is considered rude. And you'll find that although it does highlight your problem on the forum front page, that you'll actually get fewer responses.

That said, Have you tried <h:facet name="footer">
 
Bhavesh Thakkar
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am sorry for putting my subject like in capital and will mark it for my futuer communications.

yes i have tried it with "footer" facet too, but it is not giving me the desired output.

Actually ADF comes with three default skin implementations namely :
1.Oracle
2.Minimal
3.Simple.

The Oracle skin of adf displays the ontrol bar at the bottom as well at the top.

But when ever we write a custom skin of our own, adf overrides the simple skin and the simple skin of adf implementation has no support for displaying the control bar at the bottom. Also i was not able to find a way in which i can set my application to overide the Oracle skin which is provided by adf faces implementation.

Thank you,
regards,
Bhavesh Thakkar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic