Estou com um problema na utilização da tag rich:datascroller no NetBeans.
Meu objetivo é usar a tag datascroller onde so apareça o numero atual da pagina e o ultimo.
Exemplo << < 8/10 > >> (Onde 8 é a pagina atual e 10 é a ultima pagina da lista).
Pelo que eu li no Pratical RichFaces o codigo seria semelhante a este:
Vc está usando JSP como linguagem de templates? Se ñ me engano JSP realmente ñ suporta o uso de EL dentro das views JSF se essas ñ estiverem tb dentro de um componente. Se esse for o seu caso tente o seguinte:
Olá Rafael, tudo bem? Como poderia aplicar esta solucao em meu código. Tenho os mesmo problema nas linhas 18,20,28,35,42 e 51. Obrigado!
<%@pagecontentType="text/html; charset=ISO-8859-1"pageEncoding="ISO-8859-1"%><%@taglibprefix="f"uri="http://java.sun.com/jsf/core"%><%@taglibprefix="h"uri="http://java.sun.com/jsf/html"%><html><head><title>Consultadecontas-${pageTitle}</title><linkrel="stylesheet"type="text/css"href="../CSS/estilo.css"/></head><body><f:view><h:formid="frm"><h1><h:outputTextvalue="Consulta de contas"/></h1><h:messageslayout="table"showSummary="true"showDetail="false"globalOnly="true"styleClass="msgErro"infoClass="msgInfo"style="font-weight: bold"/><rich:dataTablevalue="#{consultaContaBean.contas}"var="item"width="790px"><rich:columnsortBy="#{item.tipo}"width="20px"style="text-align: center"><f:facetname="header"><h:outputTextvalue="Tipo"/></f:facet><h:graphicImagevalue="/imagens/receita.png"title="Conta a receber"rendered="#{item.tipo eq 'RECEITA'}"/><h:graphicImagevalue="/imagens/despesa.png"title="Conta a pagar"rendered="#{item.tipo eq 'DESPESA'}"/></rich:column><rich:columnsortBy="#{item.pessoa.nome}"width="200px"><f:facetname="header"><h:outputTextvalue="Pessoa"/></f:facet><h:outputTextvalue="#{item.pessoa.nome}"/></rich:column><rich:columnsortBy="#{item.descricao}"><f:facetname="header"><h:outputTextvalue="Descrição"/></f:facet><h:outputTextvalue="#{item.descricao}"/></rich:column><rich:columnsortBy="#{item.valor}"width="100px"style="text-align: center"><f:facetname="header"><h:outputTextvalue="Valor"/></f:facet><h:outputTextvalue="#{item.valor}"style="color: #{item.tipo eq 'RECEITA' ? 'blue' : 'red'}"><f:convertNumberminFractionDigits="2"currencyCode="BRL"type="currency"/></h:outputText></rich:column><rich:columnsortBy="#{item.dataVencimento}"width="100px"style="text-align: center"><f:facetname="header"><h:outputTextvalue="Vencimento"/></f:facet><h:outputTextvalue="#{item.dataVencimento}"><f:convertDateTimepattern="dd/MM/yyyy"/></h:outputText></rich:column><rich:columnwidth="80px"style="text-align: center"><f:facetname="header"><h:outputTextvalue="Aberta"/></f:facet><h:outputTextvalue="#{item.dataBaixa == null ? 'Sim' : 'Não'}"/></rich:column><rich:columnwidth="40px"style="text-align: center"><f:facetname="header"><h:outputTextvalue="Ações"/></f:facet><h:commandLinkaction="#{consultaContaBean.excluir}"><f:setPropertyActionListenervalue="#{item}"target="#{consultaContaBean.contaExclusao}"/><h:graphicImagevalue="/imagens/excluir.png"title="Excluir"styleClass="imagemLink"/></h:commandLink><h:commandLinkaction="cadastroConta"><f:setPropertyActionListenervalue="#{item}"target="#{cadastroContaBean.contaEdicao}"/><h:graphicImagevalue="/imagens/editar.png"title="Editar"styleClass="imagemLink"/></h:commandLink></rich:column></rich:dataTable><br/><h:commandLinkaction="#{cadastroContaBean.inicializar}"styleClass="linkComEspaco"><h:outputTextvalue="Nova conta"/></h:commandLink><h:commandLinkaction="menu"><h:outputTextvalue="Menu do sistema"/></h:commandLink></h:form></f:view></body></html>
dev.rafael
Kra, vc tem certeza q esse é o seu problema? Pq eu ñ pude ver em seu código nenhuma ocorrência de EL fora dos componentes do JSF.
PS.: Antes q alguém venha me dizer qualquer coisa é importante lembrar q quando vc usa JSP como linguagem de templates em views JSF vc ñ pode usar el do tipo #{…} fora de componentes do JSF. Mas vc ainda pode usar ${…} se assim desejar.