Olá,
Estou estudando Jboss seam, e parti para a parte de ajax, o problema e que quando clico no link para deletar ele deleta mas não reenderiza, so se eu deletar outro ai ele atualiza, eu gostaria que ao fim do deletar ele atualizasse a lista.
Esta assim:
1º SELECT
2º DELETE
Eu quero:
1º DELETE
2º SELECT
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j" template="layout/template2.xhtml">
<ui:define name="body">
<rich:panel>
<f:facet name="header">Estados</f:facet>
<a4j:form ajaxSubmit="true">
<a4j:outputPanel id="lst01" ajaxRendered="true">
<h:dataTable id="tbl01" value="#{estadoList.resultList}" var="_estado">
<h:column>
<f:facet name="header">
<h:outputText value="Nome" />
</f:facet>
<h:outputText value="#{_estado.nome}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Excluir" />
</f:facet>
<a4j:commandLink value="Excluir" action="#{estadosHome.remove}"
reRender="lst01">
<f:param id="estadoId" name="estadoId" value="#{_estado.id}" />
</a4j:commandLink>
</h:column>
</h:dataTable>
<h:messages />
</a4j:outputPanel>
</a4j:form>
</rich:panel>
</ui:define>
</ui:composition>
Gostaria que fosse como no velho Struts 1.x + JQuery, tudo na mão, mas funciona.
Obrigado.