I replaced all AJAX4JSF tags for non-ajax Tags and it remains with the same
behavior.
The stranger is that the list of dataTable (# {questionarios.resultList}) is
loaded before calling the method # {questionarioHome.removeChecked}.
I am making made a mistake?
My Non-Ajax Page is Listed below.
Any help is very appreciated.
Thanks in Advanced
|
| <?xml version="1.0" encoding="ISO-8859-1"?>
| <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <html 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:s="http://jboss.com/products/seam/taglib"
| xmlns:rich="http://richfaces.ajax4jsf.org/rich"
| xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
| template="template.xhtml">
|
| <head>
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
| <title>Questionario List</title>
| <link href="css/screen.css" rel="stylesheet" type="text/css" />
| <script language="JavaScript" src="js/JSCookMenu.js"
| type="text/javascript" />
| <script language="JavaScript" src="js/theme.js" />
| <link rel="stylesheet" href="css/theme.css" type="text/css" />
| </head>
| <body>
| <div class="body">
|
| <h1>Questionário - Pesquisa</h1>
|
|
|
|
| <h:form id="searchform">
|
| <h:messages styleClass="message" />
|
| <!-- search box -->
|
| <div class="dialog"><span class="prop"> <span class="name">Descricao
| :</span> <span class="value"><h:inputText
| value="#{questionarioSearch.descricao}" /></span> </span> <br />
| <span class="prop"> <span class="name">Exercicio :</span> <span
| class="value"><h:inputText
| value="#{questionarioSearch.exercicio}" /></span> </span> <br />
|
| <div class="actionButtons">
|
| <s:link view="/searchQuestionario.xhtml" value="Pesquisar" />
|
| <s:link view="/editQuestionario.xhtml" value="Incluir" /></div>
| </div>
|
| <!-- search results -->
|
| <rich:dataTable value="#{questionarios.resultList}"
var="questionario"
| id="table">
| <f:facet name="header">
| <rich:columnGroup>
| <rich:column>
| Seleção
| </rich:column>
|
| <rich:column>
| <h:commandLink value="-" >
| <f:param
name="querySorting" value="descricao" />
| </h:commandLink>
| <h:outputText value="Descrição"
/>
| </rich:column>
| <rich:column>
| <h:commandLink value="-" >
| <f:param
name="querySorting" value="exercicio" />
| </h:commandLink>
| <h:outputText value="Exercício"
/>
| </rich:column>
| </rich:columnGroup>
| </f:facet>
|
|
| <rich:column>
| <h:selectBooleanCheckbox
value="#{questionarioHome.selection[questionario.idQuestionario]}" />
| </rich:column>
|
| <rich:column>
| <s:link view="/viewQuestionario.xhtml"
| value="#{questionario.descricao}">
| <f:param name="questionarioId"
|
value="#{questionario.idQuestionario}" />
| </s:link>
| </rich:column>
|
| <rich:column>
| <h:outputText value="#{questionario.exercicio}"
/>
| </rich:column>
|
| </rich:dataTable>
|
| <h:outputText
| value="Não há questionários para seram exibidos."
| rendered="#{empty questionarios.resultList}"
class="message" />
|
|
| <div class="tableControl"><h:outputText
| value="Total de Registros:
${questionarios.resultCount}" />
|
| <!-- Pagination Buttons -->
|
| <h:commandLink
| value="<<"
| rendered="#{questionarios.previousExists}">
| <f:param name="firstResult" value="0" />
| <f:param name="querySorting"
value="#{questionarios.order}" />
| </h:commandLink>
|
| <h:commandLink value="<"
| rendered="#{questionarios.previousExists}">
| <f:param name="firstResult"
| value="#{questionarios.previousFirstResult}" />
| <f:param name="querySorting"
value="#{questionarios.order}" />
| </h:commandLink>
|
| <h:commandLink value=">"
| rendered="#{questionarios.nextExists}">
| <f:param name="firstResult"
value="#{questionarios.nextFirstResult}" />
| <f:param name="querySorting"
value="#{questionarios.order}" />
| </h:commandLink>
|
| <h:commandLink value=">>"
| rendered="#{questionarios.nextExists}">
| <f:param name="firstResult"
value="#{questionarios.lastFirstResult}" />
| <f:param name="querySorting"
value="#{questionarios.order}" />
| </h:commandLink></div>
|
|
| <div class="actionButtons">
| <!-- Delete Button -->
| <h:commandLink
action="#{questionarioHome.removeChecked}" value="Excluir" >
| <f:param name="firstResult" value="0" />
| <f:param name="querySorting"
value="#{questionarios.order}" />
| </h:commandLink>
|
| </div>
|
| </h:form>
|
| </div>
|
| </body>
| </html>
|
|
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040733#4040733
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040733
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user