voyent
Data Paging  XML
Forum Index -> Components
Author Message
vladb

Joined: 10/Apr/2006 00:00:00
Messages: 2
Offline


I am using the data table and paginator with java.util.List<MyType> for raw data. Everything works except the pages links (1 2 3) in the paginator. When I click them nothing happens and no exceptions received.
Where is the link between that HtmlCommandLinks and the method that updates the table ?
[Email]
gregory_m

Joined: 17/Jan/2005 00:00:00
Messages: 130
Offline


Clicking on a paginator commandLink will queue a navigation event using the page index assigned to the clicked commandLink.

This event is submitted to the server via a call to the ICEfaces javascript library.

Are you seeing any Javascript errors ?

Please upload your page and I'll take a look to it.

Thanks,
-- Greg McCleary
vladb

Joined: 10/Apr/2006 00:00:00
Messages: 2
Offline


> I am using the data table and paginator with
> java.util.List<MyType> for raw data. Everything works
> except the pages links (1 2 3) in the paginator. When
> I click them nothing happens and no exceptions
> received.
> Where is the link between that HtmlCommandLinks and
> the method that updates the table ?

I get no JS errors. Here is the portion of the page with the table and paginator :

// main table (good types)
<code>
ice:panelGrid columns="1">
ice:dataTable id="data" var="goodType"
styleClass="tableBorder"
value="#{goodTypes.objects}" rows="10"
sortColumn="#{goodTypes.sorting.sort}"
sortAscending="#{goodTypes.sorting.ascending}">

//column id
ice:column>
f:facet name="header">
ice:panelGrid columns="1">
ice:panelGrid columns="2">
ice:commandLink value=">" rendered="#{goodTypes.showFilters}"
actionListener="#{goodTypes.filters['id'].actionExpand}"/>
<ice:commandSortHeader columnName="Id" arrow="true">
id
/ice:commandSortHeader>
/ice:panelGrid>
ice:panelGrid columns="1" rendered="#{goodTypes.filters['id'].expanded}">
ice:selectOneMenu value="#{goodTypes.filters['id'].type}"
rendered="#{goodTypes.filters['id'].showValue1}">
f:selectItems value="#{goodTypes.filters['id'].filterModesInt}"/>
/ice:selectOneMenu>
ice:inputText value="#{goodTypes.filters['id'].value1}"
rendered="#{goodTypes.filters['id'].showValue1}"/>
/ice:panelGrid>
/ice:panelGrid>
/f:facet>
ice:panelGroup style="width:20px;">
ice:outputText value="#{goodType.id}"/>
/ice:panelGroup>
/ice:column>

// column name
ice:column>
f:facet name="header">
ice:panelGrid columns="1">
ice:panelGrid columns="2">
ice:commandLink value=">" rendered="#{goodTypes.showFilters}"
actionListener="#{goodTypes.filters['name'].actionExpand}"/>
ice:commandSortHeader columnName="Name" arrow="true">
Name
/ice:commandSortHeader>
/ice:panelGrid>
ice:panelGrid columns="1" rendered="#{goodTypes.filters['name'].expanded}">
ice:selectOneMenu value="#{goodTypes.filters['name'].filterModeString}"
rendered="#{goodTypes.filters['name'].showValue1}">
f:selectItems value="#{goodTypes.filters['name'].filterModesString}"/>
/ice:selectOneMenu>
ice:inputText value="#{goodTypes.filters['name'].value1}"
rendered="#{goodTypes.filters['name'].showValue1}"/>
/ice:panelGrid>
/ice:panelGrid>
/f:facet>
ice:panelGroup style="width:80px;background-color:darkturquoise;"
draggable="true" dragOptions="revert,ghosting,solid" dropValue="1:#{goodType.id}"
dragMask="dragging,drag_cancel,hover_start,hover_end"
dropMask="dragging,drag_cancel,hover_start,hover_end">
ice:outputText value="#{goodType.name}"/>
/ice:panelGroup>
/ice:column>

// column cargoType.name
ice:column>
f:facet name="header">
ice:panelGrid columns="1">
ice:panelGrid columns="2">
ice:commandLink value=">" rendered="#{goodTypes.showFilters}"
actionListener="#{goodTypes.filters['cargoType.name'].actionExpand}"/>
ice:commandSortHeader columnName="CargoType.Name" arrow="true">
Cargo Type
/ice:commandSortHeader>
/ice:panelGrid>
ice:panelGrid columns="1" rendered="#{goodTypes.filters['cargoType.name'].expanded}">
ice:selectOneMenu value="#{goodTypes.filters['cargoType.name'].filterModeString}"
rendered="#{goodTypes.filters['cargoType.name'].showValue1}">
f:selectItems value="#{goodTypes.filters['cargoType.name'].filterModesString}"/>
/ice:selectOneMenu>
ice:inputText value="#{goodTypes.filters['cargoType.name'].value1}"
rendered="#{goodTypes.filters['cargoType.name'].showValue1}"/>
/ice:panelGrid>
/ice:panelGrid>
/f:facet>
ice:panelGroup style="width:80px;">
ice:outputText value="#{goodType.cargoType.name}"/>
/ice:panelGroup>
/ice:column>
/ice:dataTable>

// the paging component for the above table
ice:dataPaginator id="dataScroll"
for="data" fastStep="3"
pageCountVar="pageCount" pageIndexVar="pageIndex" paginator="true"
paginatorMaxPages="4"
styleClass="formBorderHighlight">
f:facet name="first">
ice:graphicImage style="border:none;"
url="./xmlhttp/css/xp/css-images/arrow-first.gif"/>
/f:facet>
f:facet name="last">
ice:graphicImage style="border:none;"
url="./xmlhttp/css/xp/css-images/arrow-last.gif"/>
/f:facet>
f:facet name="previous">
ice:graphicImage style="border:none;"
url="./xmlhttp/css/xp/css-images/arrow-previous.gif"/>
/f:facet>
f:facet name="next">
<ice:graphicImage style="border:none;"
url="./xmlhttp/css/xp/css-images/arrow-next.gif"/>
/f:facet>
f:facet name="fastforward">
ice:graphicImage style="border:none;"
url="./xmlhttp/css/xp/css-images/arrow-ff.gif"/>
/f:facet>
f:facet name="fastrewind">
ice:graphicImage style="border:none;"
url="./xmlhttp/css/xp/css-images/arrow-fr.gif"/>
/f:facet>
/ice:dataPaginator>
</code>

The paginator at above works just fine, except for the page links. Any help will be apreciated.

Thank you
[Email]
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team