This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF DATA TABLE NAVIGATION PROBLEM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF DATA TABLE NAVIGATION PROBLEM" Watch "JSF DATA TABLE NAVIGATION PROBLEM" New topic
Author

JSF DATA TABLE NAVIGATION PROBLEM

Bhavesh Thakkar
Greenhorn

Joined: Mar 04, 2007
Posts: 21
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

Joined: Jun 11, 2002
Posts: 140
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

Joined: Mar 04, 2007
Posts: 21
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JSF DATA TABLE NAVIGATION PROBLEM