You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Sutapa (JIRA)" <de...@myfaces.apache.org> on 2010/05/28 09:23:36 UTC
[jira] Commented: (TRINIDAD-885) Provide selector to show
navigation bar on bottom of table
[ https://issues.apache.org/jira/browse/TRINIDAD-885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12872885#action_12872885 ]
Sutapa commented on TRINIDAD-885:
---------------------------------
Hi All,
I have a workaround for this issue which I implemented and it is working. Please find it as below:
I created 2 UIComponenet datatypes in my backing bean
UIXTable dataTable;
CoreSelectRangeChoiceBar rangeChoice;
and my rangeListener is as below:
public void onRangeChange(RangeChangeEvent event)
{
logger.info("I am inside rangeChange event");
FacesContext fc = FacesContext.getCurrentInstance();
//If "Show All" navigation option is selected
if(event.getNewEnd() == dataTable.getRowCount())
{
dataTable.setShowAll(true);
rangeChoice.setShowAll(true);
logger.info("When Show All");
}
else
{
//Forcefully setting showAll as false when user selects other navigation range
if(dataTable.isShowAll() || rangeChoice.isShowAll())
{
dataTable.setShowAll(false);
rangeChoice.setShowAll(false);
}
//Setting the first row as given by the event's new Start
logger.info("When not Show All");
}
dataTable.setFirst(event.getNewStart());
rangeChoice.setFirst(event.getNewStart());
dataTable.setRendered(true);
rangeChoice.setRendered(true);
}
and my page i updated as
<tr:table id="SearchListData"rows="50" var="resultItem" binding="#{BackingBean.dataTable}" partialTriggers="rangeChoice" value="#{BackingBean.searchResults}" rangeChangeListener="#{BackingBean.onRangeChange}">
..........................
.......................
</tr:table>
<tr:selectRangeChoiceBar id="rangeChoice" binding="#{BackingBean.rangeChoice}" value="#{BackingBean.searchResults}" rangeChangeListener="#{BackingBean.onRangeChange}" rows="50" partialTriggers="SearchListData">
</tr:selectRangeChoiceBar>
And now it works!!!
> Provide selector to show navigation bar on bottom of table
> -----------------------------------------------------------
>
> Key: TRINIDAD-885
> URL: https://issues.apache.org/jira/browse/TRINIDAD-885
> Project: MyFaces Trinidad
> Issue Type: Wish
> Reporter: Frank Nimphius
> Assignee: Matt Cooper
> Priority: Minor
> Fix For: 2.0.0.2-core
>
>
> In ADF Faces there exist a selector -ora-repeat-control-bar that could be used to show the table navigation bar on top and at the bottom of the table (instead of on top only)
> af|table{ -ora-repeat-control-bar: true; }
> A comparable selector is missing in Trinidad, which may become a problem fro ADF Faces customers that migrate to Trinidad in JDeveloper 11. For a smooth migration from ADF Faces to Trinidad it is highly desirable to have this selector added to Trinidad
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.