rich:dataScroller with rich:dataTable works only in IE
vict0r Jun 19, 2012 6:10 PMrich:dataScroller with rich:dataTable works only in IE, in Chrome/Firefox fails.
Can anyone please help me
---
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:fn="http://java.sun.com/jsp/jstl/functions">
<h:form id="form">
<rich:dataTable value="#{sistemasBean.sistemas}" var="sistema"
iterationStatusVar="it" id="table" rows="3">
<rich:column
filterExpression="#{fn:startsWith(sistema[1], sistemasBean.sistemaFilter)}">
<f:facet name="header">
<h:panelGroup>
<h:outputText value="Busca: " />
<h:inputText value="#{sistemasBean.sistemaFilter}">
<a4j:ajax event="blur" render="table" execute="@this" />
</h:inputText>
</h:panelGroup>
</f:facet>
<h:outputText value="#{sistema[1]}" />
</rich:column>
<f:facet name="footer">
<rich:dataScroller id="scroller" page="#{sistemasBean.page}"
for="table" rendered="true" boundaryControls="hide"
fastControls="hide" render="table"/>
</f:facet>
</rich:dataTable>
</h:form>
</ui:composition>
---
---
@ManagedBean
@SessionScoped
public class SistemasBean implements Serializable {
private static final long serialVersionUID = 1L;
@PersistenceContext(unitName="MOL") EntityManager manager;
@EJB SistemasRepository repository;
private List<Object[]> sistemas;
private List<SelectItem> itensSistemas;
private int currentSistemaIndex;
private Object[] sistemaSelecionado;
private int page = 1;
private String sistemaFilter;
@PostConstruct
public void init() {
repository.setManager(manager);
}
public List <SelectItem> getItensSistemas () {
sistemas = new ArrayList<Object[]>();
sistemas = repository.getList ();
itensSistemas = new ArrayList<SelectItem> ( sistemas.size() );
for ( Object[] sistema : sistemas ) {
itensSistemas.add ( new SelectItem ( sistema[0], (String) sistema[1], (String) sistema[2] ) );
}
return itensSistemas;
}
... getters and setters
---
Thanx a lot.