Quantcast
Channel: Programação - GUJ
Viewing all articles
Browse latest Browse all 33093

Problema Primefaces DataTable

$
0
0

@fabiodsilva escreveu:

Pessoal, bom dia,

Estou quebrando a cabeça com um problema no DataTable do PrimeFaces:

<html 
    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:p="http://primefaces.org/ui">

    
    <f:view>
        <h:head>

            <title>Listar Suspensões</title>
            <link rel="stylesheet" href="css/principal.css" type="text/css" />
            <link rel="stylesheet" href="css/formulario.css" type="text/css" />
            

        </h:head>
        
<h:form  id="formu" >
            <div id="wrapper">
                <div id="topo"></div>
                <div id="conteudo_principal">

                    <h2>Listar Suspensões</h2>
                    <br />

                    


                        <p:dataTable id="tabela" value="#{suspensaoMB.suspensoes}" style="margin-top:60px;" paginatorPosition="bottom"
                                     var="suspensao" paginator="true" rows="48">



                            <p:column headerText="Dia" >
                                <h:outputText value="#{suspensao.dia}" />
                            </p:column>

                            <p:column headerText="Alterar" style="width:40px">
                               **<p:commandButton   ajax="false" icon="ui-icon-search" action="#{suspensaoMB.buscar(suspensao.idSuspensao)}">**
                                                 
                                </p:commandButton>
                            </p:column>



                        </p:dataTable>

                   


                </div>
                <div id="nav">
                    <ui:include src="menu.xhtml"/>
                </div>
                <div id="rodape"><p class="copyright">Justiça Federal da Bahia, SEMAD/SECAD</p></div>
            </div>
 </h:form>


 </f:view>       
    
</html>

O não funciona de jeito nenhum, não chama o método "buscar" em suspensaoMB.
Alguém poderia dar um luz, já estou pensando em voltar para o jsf 1.2 ou tentar trabalhar com o primefaces 4.5.0

Mensagens: 2

Participantes: 1

Ler tópico completo


Viewing all articles
Browse latest Browse all 33093


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>