@guilhermebhte escreveu:
Ao entrar em uma página preciso que execute um metodo no ben, como fazer ?
Pesquisei e achei algumas soluções, porem ao implementar não funcionou.
Achei um agora no site da primefaces, deve ser implementado assim ?
Exemplo:<h:form> <p:remoteCommand name="rc" update="msgs" actionListener="#{remoteCommandView.execute}" /> <p:growl id="msgs" showDetail="true" /> <p:commandButton type="button" onclick="rc()" value="Execute" icon="ui-icon-refresh" /> </h:form>
Ao testar ele entra em um loop infinito
No meu caso ele chama este metodo:
@PostConstruct public void inicializar() { this.tipoBusca = null; this.registro0000 = null; this.registro0100 = null; this.registro0200 = null; this.registro0300 = null; }
Mensagens: 5
Participantes: 2