<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Table + row Selection + data paging + popUp anyone can help (error when fill filds in popup)?"]]></title>
		<link>http://www.icefaces.org/JForum/posts/list/15.page</link>
		<description><![CDATA[Latest messages posted in the topic "Table + row Selection + data paging + popUp anyone can help (error when fill filds in popup)?"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Table + row Selection + data paging + popUp anyone can help (error when fill filds in popup)?</title>
				<description><![CDATA[ Hello. (Sorry fo my english...) 
I have a table with rowSelection + data Paging and a menu with 4 buttons:
addCont, editCont, removeCont, refresh.

I select one line of the dataTable and click in editCont... the program open a popup panel with 3 inputText and fill the inputText with the data of the datamodel (the line thtat i select).

Okay it´s work. But when i try to edit a second register of the datatable the inputText of the popup panel comes with the first data select and edited.

The program work only one time, when i try to edit, add or remove ani content of the data the filds comes with the data of the first operation.

I´m using jboss-seam.
If anyone can´t understand my english.. make a queation and i try to ask.
Tahkz!


<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
&lt;f:view xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ice="http://www.icesoft.com/icefaces/component"&gt;

	&lt;ice:outputDeclaration doctypeRoot="HTML"
		doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
		doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" /&gt;

	&lt;html&gt;
	&lt;head&gt;
	&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;&lt;/meta&gt;
	&lt;title&gt;Manter&lt;/title&gt;
	&lt;!--  adiciona os estilos necessarios --&gt;
	&lt;link href="./stylesheet/xp.css" rel="stylesheet" type="text/css" /&gt;
	&lt;link href="./stylesheet/showcase-style.css" rel="stylesheet"
		type="text/css" /&gt;
	&lt;/head&gt;
	&lt;body&gt;


	&lt;ice:form&gt;

		&lt;ice:panelGroup styleClass="formBorderHighlight"&gt;
			&lt;ice:outputText value="Filtro: " /&gt;

			&lt;ice:inputText value="" /&gt;
		&lt;/ice:panelGroup&gt;

		&lt;ice:panelGroup styleClass="formBorderHighlight"&gt;
			&lt;h3&gt;&lt;ice:outputText
				value="#{msgs&#91;'component.dataPaginator.description'&#93;}" /&gt;&lt;/h3&gt;
		&lt;/ice:panelGroup&gt;

		&lt;ice:panelGroup styleClass="formBorderHighlight"&gt;

			&lt;!-- Display counts about the table and the currently displayed page --&gt;
			&lt;!-- Monstra um label com as informacoes do grid --&gt;
			&lt;ice:dataPaginator id="dataScroll_2" for="data"
				rowsCountVar="rowsCount"
				displayedRowsCountVar="displayedRowsCountVar"
				firstRowIndexVar="firstRowIndex" lastRowIndexVar="lastRowIndex"
				pageCountVar="pageCount" pageIndexVar="pageIndex"&gt;
				&lt;ice:outputFormat
					value="{0} persons found, displaying {1} persons, from {2} to {3}. Page {4} / {5}."
					styleClass="standard"&gt;
					&lt;f:param value="#{rowsCount}" /&gt;
					&lt;f:param value="#{displayedRowsCountVar}" /&gt;
					&lt;f:param value="#{firstRowIndex}" /&gt;
					&lt;f:param value="#{lastRowIndex}" /&gt;
					&lt;f:param value="#{pageIndex}" /&gt;
					&lt;f:param value="#{pageCount}" /&gt;
				&lt;/ice:outputFormat&gt;
			&lt;/ice:dataPaginator&gt;

			&lt;!-- ###########POP UP############## --&gt;
			&lt;!-- &lt;f:param name=selectedItem value="#{mmm.selectedRows}" /&gt;      --&gt;
    
			&lt;ice:panelPopup id="popup" 
							visible="#{mmm.showModalPanel}" 
							rendered="#{mmm.showModalPanel}" 
							style="z-index:1001; width: 300px;"&gt;
				&lt;f:facet name="header"&gt;
					&lt;ice:panelGrid width="100%" cellpadding="0" cellspacing="0"
						columns="2" style="text-align: center;"&gt;
						&lt;ice:outputText style="color: #FFFFFF;" value="Entrada de dados" /&gt;
					&lt;/ice:panelGrid&gt;
				&lt;/f:facet&gt;

				&lt;f:facet name="body"&gt;
					&lt;ice:panelGrid width="100%" cellpadding="0" cellspacing="0"
						column="1"&gt;
						&lt;ice:outputText value="Nome: " /&gt;
						&lt;ice:inputText value="#{mmm.selecionada.nome}" partialSubmit="true" required="true" /&gt;
						&lt;ice:outputText value="E-mail: " /&gt;
						&lt;ice:inputText value="#{mmm.selecionada.email}" partialSubmit="true" required="true" /&gt;
						&lt;ice:outputText value="Telefone: " /&gt;
						&lt;ice:inputText value="#{mmm.selecionada.telefone}" partialSubmit="true" required="true" /&gt;
						&lt;ice:commandButton value="Confirmar" id="popConfirmar"
							action="#{mmm.popConfirmar}" immediate="true" /&gt;
						&lt;ice:commandButton value="Fechar" id="popFechar"
							action="#{mmm.popFechar}" immediate="true" 
							actionListener="#{mmm.clearSelections}"/&gt;

					&lt;/ice:panelGrid&gt;
				&lt;/f:facet&gt;

			&lt;/ice:panelPopup&gt;
			&lt;!-- ###########POP UP############## --&gt;


			&lt;ice:panelGrid columns="2"&gt;
				&lt;!-- Layout table columns with column headings and 5 table rows per page --&gt;
				&lt;ice:dataTable id="data" value="#{pessoas}" var="p" rows="5" partialSubmit="true" &gt;
					&lt;ice:column&gt;
						&lt;!-- Seletor de linhas o atributo table.multipleSelection eh definido
					     na clase TableBean, o que permite selecionar mais de uma linha
					     &#40;verificar com marcelo/wilsona necessidade de multiplas linhas --&gt;
						&lt;ice:rowSelector value="#{p.selected}" multiple="false"
							selectedClass="tableRowSelected"
							selectionListener="#{mmm.rowSelection}" /&gt;
						&lt;f:facet name="header"&gt;
							&lt;ice:outputText value="Nome" /&gt;
						&lt;/f:facet&gt;
						&lt;ice:outputText value="#{p.nome}" /&gt;
					&lt;/ice:column&gt;

					&lt;ice:column&gt;
						&lt;f:facet name="header"&gt;
							&lt;ice:outputText value="E-mail" /&gt;
						&lt;/f:facet&gt;
						&lt;ice:outputText value="#{p.email}" /&gt;
					&lt;/ice:column&gt;

					&lt;ice:column&gt;
						&lt;f:facet name="header"&gt;
							&lt;ice:outputText value="Telefone" /&gt;
						&lt;/f:facet&gt;
						&lt;ice:outputText value="#{p.telefone}" /&gt;
					&lt;/ice:column&gt;

				&lt;/ice:dataTable&gt;

				&lt;ice:dataPaginator id="dataScroll_3" for="data" fastStep="3"
					rendered="#{scrollerList.vertical}" pageCountVar="pageCount"
					pageIndexVar="pageIndex" paginator="true" paginatorMaxPages="4"
					vertical="true"&gt;
					&lt;f:facet name="first"&gt;
						&lt;ice:graphicImage
							url="./xmlhttp/css/xp/css-images/arrow-first.gif"
							style="border:none;"
							title="#{msgs&#91;'component.dataPaginator.firstpage'&#93;}" /&gt;
					&lt;/f:facet&gt;
					&lt;f:facet name="last"&gt;
						&lt;ice:graphicImage url="./xmlhttp/css/xp/css-images/arrow-last.gif"
							style="border:none;"
							title="#{msgs&#91;'component.dataPaginator.lastpage'&#93;}" /&gt;
					&lt;/f:facet&gt;
					&lt;f:facet name="previous"&gt;
						&lt;ice:graphicImage
							url="./xmlhttp/css/xp/css-images/arrow-previous.gif"
							style="border:none;"
							title="#{msgs&#91;'component.dataPaginator.previouspage'&#93;}" /&gt;
					&lt;/f:facet&gt;
					&lt;f:facet name="next"&gt;
						&lt;ice:graphicImage url="./xmlhttp/css/xp/css-images/arrow-next.gif"
							style="border:none;"
							title="#{msgs&#91;'component.dataPaginator.nextpage'&#93;}" /&gt;
					&lt;/f:facet&gt;
					&lt;f:facet name="fastforward"&gt;
						&lt;ice:graphicImage url="./xmlhttp/css/xp/css-images/arrow-ff.gif"
							style="border:none;"
							title="#{msgs&#91;'component.dataPaginator.fastforward'&#93;}" /&gt;
					&lt;/f:facet&gt;
					&lt;f:facet name="fastrewind"&gt;
						&lt;ice:graphicImage url="./xmlhttp/css/xp/css-images/arrow-fr.gif"
							style="border:none;"
							title="#{msgs&#91;'component.dataPaginator.fastbackward'&#93;}" /&gt;
					&lt;/f:facet&gt;
				&lt;/ice:dataPaginator&gt;

			&lt;/ice:panelGrid&gt;
		&lt;/ice:panelGroup&gt;

		&lt;ice:dataPaginator id="dataScroll_1" for="data" fastStep="3"
			pageCountVar="pageCount" pageIndexVar="pageIndex" paginator="true"
			paginatorMaxPages="4" rendered="#{!scrollerList.vertical}"&gt;
			&lt;f:facet name="first"&gt;
				&lt;ice:graphicImage url="./xmlhttp/css/xp/css-images/arrow-first.gif"
					style="border:none;"
					title="#{msgs&#91;'component.dataPaginator.firstpage'&#93;}" /&gt;
			&lt;/f:facet&gt;
			&lt;f:facet name="last"&gt;
				&lt;ice:graphicImage url="./xmlhttp/css/xp/css-images/arrow-last.gif"
					style="border:none;"
					title="#{msgs&#91;'component.dataPaginator.lastpage'&#93;}" /&gt;
			&lt;/f:facet&gt;
			&lt;f:facet name="previous"&gt;
				&lt;ice:graphicImage
					url="./xmlhttp/css/xp/css-images/arrow-previous.gif"
					style="border:none;"
					title="#{msgs&#91;'component.dataPaginator.previouspage'&#93;}" /&gt;
			&lt;/f:facet&gt;
			&lt;f:facet name="next"&gt;
				&lt;ice:graphicImage url="./xmlhttp/css/xp/css-images/arrow-next.gif"
					style="border:none;"
					title="#{msgs&#91;'component.dataPaginator.nextpage'&#93;}" /&gt;
			&lt;/f:facet&gt;
			&lt;f:facet name="fastforward"&gt;
				&lt;ice:graphicImage url="./xmlhttp/css/xp/css-images/arrow-ff.gif"
					style="border:none;"
					title="#{msgs&#91;'component.dataPaginator.fastforward'&#93;}" /&gt;
			&lt;/f:facet&gt;
			&lt;f:facet name="fastrewind"&gt;
				&lt;ice:graphicImage url="./xmlhttp/css/xp/css-images/arrow-fr.gif"
					style="border:none;"
					title="#{msgs&#91;'component.dataPaginator.fastbackward'&#93;}" /&gt;
			&lt;/f:facet&gt;
		&lt;/ice:dataPaginator&gt;

		&lt;ice:panelGrid columns="2" styleClass="dataPagingBorderHighlight"&gt;
			&lt;!-- Paginator layout, horizontal/vertical --&gt;


			&lt;!-- Add/remove data from table --&gt;
			&lt;ice:panelGroup&gt;
				&lt;h3&gt;&lt;ice:outputText
					value="#{msgs&#91;'component.dataPaginator.data.description'&#93;}" /&gt;&lt;/h3&gt;
				&lt;ice:commandButton value="Adicionar" id="addContent"
					action="#{mmm.addContent}" immediate="true" /&gt;
				&lt;ice:commandButton value="Editar" id="editarConent"
					action="#{mmm.editContent}" immediate="true" /&gt;
				&lt;ice:commandButton value="Remover" id="removeConent"
					action="#{mmm.removeContent}" immediate="true" /&gt;
				&lt;ice:commandButton value="Refresh" id="refreshConent"
					action="#{scrollerList.removeContent}" immediate="true" /&gt;
			&lt;/ice:panelGroup&gt;
		&lt;/ice:panelGrid&gt;

	&lt;/ice:form&gt;
	&lt;/body&gt;
	&lt;/html&gt;
&lt;/f:view&gt;
</pre>
		</div>

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
package br.com.wapcash.util;

import static org.jboss.seam.ScopeType.SESSION;

import java.util.ArrayList;
import java.util.List;

import javax.ejb.Remove;
import javax.ejb.Stateful;
import javax.faces.event.ActionEvent;
import javax.faces.event.ValueChangeEvent;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.jboss.seam.annotations.Destroy;
import org.jboss.seam.annotations.Factory;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Out;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.annotations.datamodel.DataModel;

import com.icesoft.faces.component.ext.RowSelectorEvent;

@Stateful
@Name&#40;"mmm"&#41;
@Scope&#40;SESSION&#41;
public class Manter2Bean  implements Manter2{

	private boolean remove = false;
	private boolean showModalPanel = false;
	
	@In&#40;required=false&#41;
	@Out&#40;required=false&#41;
	private PessoaEntity selecionada = new PessoaEntity&#40;&#41;;
	
	
	private List&lt;PessoaEntity&gt; selectedRows = new ArrayList&lt;PessoaEntity&gt;&#40;&#41;;
	
	//Selecionar multiplas linhas? 
	private boolean multipleSelection = false;
	
	// enable scrollable property
	private boolean scrollable = true;
	// scrollable height property;
	private String scrollableHeight = "100px";
	
	private Boolean selected = Boolean.FALSE;
	
	@DataModel
	private List&lt;PessoaEntity&gt; pessoas;
		
	@PersistenceContext
	private EntityManager em;
	
	@SuppressWarnings&#40;"unchecked"&#41;
	@Factory&#40;"pessoas"&#41;
	public void dados&#40;&#41; {
		try{
			pessoas = &#40;List&lt;PessoaEntity&gt;&#41; em.createQuery&#40;"from PessoaEntity"&#41;.getResultList&#40;&#41;;
		}catch &#40;Exception e&#41;{
			e.printStackTrace&#40;&#41;;
		} finally {
			System.out.println&#40;"###########################"&#41;;
		}
	}
	


	public void rowSelection&#40;RowSelectorEvent e&#41; {
		selectedRows.clear&#40;&#41;;
		System.out.println&#40;"rowSelection fora do for"+ pessoas.size&#40;&#41;&#41;;
		for &#40;int i = pessoas.size&#40;&#41; - 1; i &gt;= 0; i--&#41; {
			System.out.println&#40;"Pessoa "+ i +" nome pessoa " + pessoas.get&#40;i&#41;.getNome&#40;&#41;&#41;;
			
			if &#40;pessoas.get&#40;i&#41;.getSelected&#40;&#41;.booleanValue&#40;&#41;&#41; {
				System.out.println&#40;"rowSelection "+ pessoas.size&#40;&#41;&#41;;
				selectedRows.add&#40;pessoas.get&#40;i&#41;&#41;;
				System.out.println&#40;"selectedrows size" + selectedRows.size&#40;&#41;&#41;;
				/* pega a pessoa selecionada no grid e atribui o valor
				 * a variavel pessoa.
				 */
				selecionada = pessoas.get&#40;i&#41;;
				System.out.println&#40;"selecionada = " +selecionada.getNome&#40;&#41;&#41;;
			}
		}

	}
	

	
	public void clearSelections&#40;ActionEvent event&#41; {
		System.out.println&#40;"-----clearSelections-----"&#41;;
		selectedRows.clear&#40;&#41;;
		for &#40;int i = pessoas.size&#40;&#41; - 1; i &gt;= 0; i--&#41; {
			pessoas.get&#40;i&#41;.setSelected&#40;new Boolean&#40;false&#41;&#41;;
		}
		selecionada.setCdpessoa&#40;0L&#41;;
		selecionada.setNome&#40;""&#41;;
		selecionada.setTelefone&#40;""&#41;;
		selecionada.setEmail&#40;""&#41;;
	}
	
	
	public boolean isMultipleSelection&#40;&#41; {
		return multipleSelection;
	}

	public void setMultipleSelection&#40;boolean multipleSelection&#41; {
		this.multipleSelection = multipleSelection;
	}

	public void selectionChanged&#40;ValueChangeEvent event&#41; {
		selectedRows.clear&#40;&#41;;
		/*
		Person&#91;&#93; persons = personsList;
		for &#40;int i = 0; i &lt; persons.length; i++&#41; {
			persons&#91;i&#93;.setSelected&#40;Boolean.FALSE&#41;;
		}*/
		for &#40;int i = 0; i &lt; pessoas.size&#40;&#41;; i++&#41; {
			pessoas.get&#40;i&#41;.setSelected&#40;Boolean.FALSE&#41;;
		}
	}

	public boolean isScrollable&#40;&#41; {
		return scrollable;
	}

	public void setScrollable&#40;boolean scrollable&#41; {
		this.scrollable = scrollable;
	}


	public List&lt;PessoaEntity&gt; getPessoasList&#40;&#41; {
		return pessoas;
	}

	public void setPessoasList&#40;List&lt;PessoaEntity&gt; pessoas&#41; {
		this.pessoas = pessoas;
	}

	public String getScrollableHeight&#40;&#41; {
		return scrollableHeight;
	}

	public void setScrollableHeight&#40;String scrollableHeight&#41; {
		this.scrollableHeight = scrollableHeight;
	}
	
    public Boolean getSelected&#40;&#41; {
        return selected;
    }

    public void setSelected&#40;Boolean selected&#41; {
        this.selected = selected;
    }
	
    /**
     * Abre o pop up para adicionar dados
     */
    public void addContent&#40;&#41; {
    	System.out.println&#40;"/n ******addcontent******"&#41;;
    	selecionada.setNome&#40;""&#41;;
    	selecionada.setTelefone&#40;""&#41;;
    	selecionada.setEmail&#40;""&#41;;
    	showModalPanel = true;
    	System.out.println&#40;"Tamanho do pessoas " +pessoas.size&#40;&#41;&#41;;
    	System.out.println&#40;"******Fim do addContent******"&#41;;
		

    }
    
    public void editContent&#40;&#41;{
    	showModalPanel = true;
    }
    
    public void removeContent&#40;&#41;{
    	remove = true;
    	showModalPanel = true;
    	
    }

    
	public boolean isRemove&#40;&#41; {
		return remove;
	}
	public boolean getRemove&#40;&#41;{
		return remove;
	}
	public void setRemove&#40;boolean remove&#41; {
		this.remove = remove;
	}
    
    
    public void popFechar&#40;&#41; {
    	System.out.println&#40;"fechar o pop up"&#41;;
    	/*fecha pop-up visible e rendere = true*/
    	showModalPanel = false;

    	pessoas = &#40;List&lt;PessoaEntity&gt;&#41; em.createQuery&#40;"from PessoaEntity"&#41;.getResultList&#40;&#41;;
    }
    
    public void popConfirmar&#40;&#41; {
    	System.out.println&#40;"/n =====confirmar o pop up===="&#41;;
    	System.out.println&#40;selecionada.getNome&#40;&#41;&#41;;
    	if &#40;remove&#41;{
    		System.out.println&#40;"removendo o registro " + selecionada.getNome&#40;&#41;&#41;;
    		em.remove&#40;em.merge&#40;selecionada&#41;&#41;;
    	} else {
    		System.out.println&#40;"adicionando o registro " + selecionada.getNome&#40;&#41;&#41;;
    		em.merge&#40;selecionada&#41;;
    	}
    	System.out.println&#40;"===== fim confirmar o pop up ===="&#41;;
    }
    
    public boolean isShowModalPanel&#40;&#41; {
        return showModalPanel;
    }

    public void setShowModalPanel&#40;boolean showModalPanel&#41; {
        this.showModalPanel = showModalPanel;
    }
    
	@Destroy
	@Remove
	public void destroy&#40;&#41; {
		pessoas = null;
		selecionada = null;
	}

	

	public PessoaEntity getSelecionada&#40;&#41; {
		return selecionada;
	}

	public void setSelecionada&#40;PessoaEntity selecionada&#41; {
		this.selecionada = selecionada;
	}
}
</pre>
		</div>
]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/3499.page#16241</guid>
				<link>http://www.icefaces.org/JForum/posts/list/3499.page#16241</link>
				<pubDate><![CDATA[Mon, 22 Jan 2007 14:24:28]]> GMT</pubDate>
				<author><![CDATA[ rangelmp]]></author>
			</item>
			<item>
				<title>Re:Table + row Selection + data paging + popUp anyone can help?</title>
				<description><![CDATA[ To help anyone that want to help-me:

Code of the rowSelection:
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
&lt;ice:dataTable id="data" value="#{pessoas}" var="p" rows="5" partialSubmit="true" &gt;
					&lt;ice:column&gt;
						&lt;ice:rowSelector value="#{p.selected}" multiple="false"
							selectedClass="tableRowSelected"
							selectionListener="#{mmm.rowSelection}" /&gt;
...............
</pre>
		</div>

Bean
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
	public void rowSelection&#40;RowSelectorEvent e&#41; {
		selectedRows.clear&#40;&#41;;
		for &#40;int i = pessoas.size&#40;&#41; - 1; i &gt;= 0; i--&#41; {
			System.out.println&#40;"Pessoa "+ i +" nome pessoa " + pessoas.get&#40;i&#41;.getNome&#40;&#41;&#41;;
			
			if &#40;pessoas.get&#40;i&#41;.getSelected&#40;&#41;.booleanValue&#40;&#41;&#41; {
				selectedRows.add&#40;pessoas.get&#40;i&#41;&#41;;

				selecionada = pessoas.get&#40;i&#41;;				
			}
		}
	}
</pre>
		</div>

The action of the edit Button
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
    public void editContent&#40;&#41;{
    	showModalPanel = true;
    }
</pre>
		</div>

The popUp code:
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
&lt;ice:panelPopup id="popup" 
							visible="#{mmm.showModalPanel}" 
							rendered="#{mmm.showModalPanel}" 
							style="z-index:1001; width: 300px;"&gt;
				&lt;f:facet name="header"&gt;
					&lt;ice:panelGrid width="100%" cellpadding="0" cellspacing="0"
						columns="2" style="text-align: center;"&gt;
						&lt;ice:outputText style="color: #FFFFFF;" value="Entrada de dados" /&gt;
					&lt;/ice:panelGrid&gt;
				&lt;/f:facet&gt;

				&lt;f:facet name="body"&gt;
					&lt;ice:panelGrid width="100%" cellpadding="0" cellspacing="0"
						column="1"&gt;
						&lt;ice:outputText value="Nome: " /&gt;
						&lt;ice:inputText value="#{mmm.selecionada.nome}" partialSubmit="true" required="true" /&gt;
						&lt;ice:outputText value="E-mail: " /&gt;
						&lt;ice:inputText value="#{mmm.selecionada.email}" partialSubmit="true" required="true" /&gt;
						&lt;ice:outputText value="Telefone: " /&gt;
						&lt;ice:inputText value="#{mmm.selecionada.telefone}" partialSubmit="true" required="true" /&gt;
						&lt;ice:commandButton value="Confirmar" id="popConfirmar"
							action="#{mmm.popConfirmar}" immediate="true" /&gt;
						&lt;ice:commandButton value="Fechar" id="popFechar"
							action="#{mmm.popFechar}" immediate="true" 
							actionListener="#{mmm.clearSelections}"/&gt;

					&lt;/ice:panelGrid&gt;
				&lt;/f:facet&gt;

			&lt;/ice:panelPopup&gt;
</pre>
		</div>

Thankz for everone.!]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/3499.page#16242</guid>
				<link>http://www.icefaces.org/JForum/posts/list/3499.page#16242</link>
				<pubDate><![CDATA[Mon, 22 Jan 2007 14:30:42]]> GMT</pubDate>
				<author><![CDATA[ rangelmp]]></author>
			</item>
			<item>
				<title>Re:Table + row Selection + data paging + popUp anyone can help?</title>
				<description><![CDATA[ Did someone found any solution or any explain? ]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/3499.page#16337</guid>
				<link>http://www.icefaces.org/JForum/posts/list/3499.page#16337</link>
				<pubDate><![CDATA[Wed, 24 Jan 2007 10:01:06]]> GMT</pubDate>
				<author><![CDATA[ rangelmp]]></author>
			</item>
			<item>
				<title>Re:Table + row Selection + data paging + popUp anyone can help (error when fill filds in popup)?</title>
				<description><![CDATA[ Hi,

I'am having exactly the same kind of problem, and I've searched all over the forum for a solution, but unfortunatelly wasn't able to find it. The only solution I came by was to use binding attribute on inputtext components and to set submited values of the backing bean to null in case of insert or to concreate values in case of update or delete. 

However this requires a lot of work(creating backing beans for binding and setting their subbmited values by hand). Is this the only way to make it work or there is more elegant solution.]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/3499.page#16370</guid>
				<link>http://www.icefaces.org/JForum/posts/list/3499.page#16370</link>
				<pubDate><![CDATA[Thu, 25 Jan 2007 03:18:32]]> GMT</pubDate>
				<author><![CDATA[ keny]]></author>
			</item>
			<item>
				<title>Re:Table + row Selection + data paging + popUp anyone can help (error when fill filds in popup)?</title>
				<description><![CDATA[ Kenny. Can you post a example of your solution? A code of your backing beans for binding  or something that can help-me? I try to do this have 4 days...

Thankz for your help!]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/3499.page#16373</guid>
				<link>http://www.icefaces.org/JForum/posts/list/3499.page#16373</link>
				<pubDate><![CDATA[Thu, 25 Jan 2007 03:56:30]]> GMT</pubDate>
				<author><![CDATA[ rangelmp]]></author>
			</item>
			<item>
				<title>Re:Table + row Selection + data paging + popUp anyone can help (error when fill filds in popup)?</title>
				<description><![CDATA[ Hi,

this is method in ContactBackingBean class. I'am calling this method every time I want to inset, update or delete the contact. If I'm inserting data then this method receive new empty contact.
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
public Contact copyProperties&#40;Contact contact&#41;{
		
		if&#40;contactFirstNameUIInput!=null&#41;{
			contactFirstNameUIInput.setSubmittedValue&#40;contact.getContactFirstName&#40;&#41;&#41;;
			contactFirstNameUIInput.setValue&#40;contact.getContactFirstName&#40;&#41;&#41;;
		}
		if&#40;contactLastNameUIInput!=null&#41;{
			contactLastNameUIInput.setSubmittedValue&#40;contact.getContactLastName&#40;&#41;&#41;;
			contactLastNameUIInput.setValue&#40;contact.getContactLastName&#40;&#41;&#41;;
		}
		if&#40;contactPositionUIInput!=null&#41;{
			contactPositionUIInput.setSubmittedValue&#40;contact.getContactPosition&#40;&#41;&#41;;
			contactPositionUIInput.setValue&#40;contact.getContactPosition&#40;&#41;&#41;;
		}
		if&#40;contactTelefon1UIInput!=null&#41;{
			contactTelefon1UIInput.setSubmittedValue&#40;contact.getContactTelefon1&#40;&#41;.getMediaValue&#40;&#41;&#41;;
			contactTelefon1UIInput.setValue&#40;contact.getContactTelefon1&#40;&#41;.getMediaValue&#40;&#41;&#41;;
		}
		if&#40;contactTelefon2UIInput!=null&#41;{
			contactTelefon2UIInput.setSubmittedValue&#40;contact.getContactTelefon2&#40;&#41;.getMediaValue&#40;&#41;&#41;;
			contactTelefon2UIInput.setValue&#40;contact.getContactTelefon2&#40;&#41;.getMediaValue&#40;&#41;&#41;;
		}
		if&#40;contactMobileUIInput!=null&#41;{
			contactMobileUIInput.setSubmittedValue&#40;contact.getContactMobile&#40;&#41;.getMediaValue&#40;&#41;&#41;;
			contactMobileUIInput.setValue&#40;contact.getContactMobile&#40;&#41;.getMediaValue&#40;&#41;&#41;;
		}
		if&#40;contactFaxUIInput!=null&#41;{
			contactFaxUIInput.setSubmittedValue&#40;contact.getContactFax&#40;&#41;.getMediaValue&#40;&#41;&#41;;
			contactFaxUIInput.setValue&#40;contact.getContactFax&#40;&#41;.getMediaValue&#40;&#41;&#41;;
		}
		if&#40;contactEmailUIInput!=null&#41;{
			contactEmailUIInput.setSubmittedValue&#40;contact.getContactEmail&#40;&#41;.getMediaValue&#40;&#41;&#41;;
			contactEmailUIInput.setValue&#40;contact.getContactEmail&#40;&#41;.getMediaValue&#40;&#41;&#41;;
		}
		if&#40;contactSalutationUIInput!=null&#41;{
			contactSalutationUIInput.setSubmittedValue&#40;contact.getContactSalutation&#40;&#41;&#41;;
			contactSalutationUIInput.setValue&#40;contact.getContactSalutation&#40;&#41;&#41;;
		}
		if&#40;contactTitleUIInput!=null&#41;{
			contactTitleUIInput.setSubmittedValue&#40;contact.getContactTitle&#40;&#41;&#41;;
			contactTitleUIInput.setValue&#40;contact.getContactTitle&#40;&#41;&#41;;
		}
		return contact;
	}	


and this is one inputtext.

&lt;h:inputText binding="#{customerSession.contactBackingBean.contactEmailUIInput}" id="saEmail" value="#{customerSession.contact.contactEmail.mediaValue}"/&gt;
</pre>
		</div>

I hope this helps and if you need further assistance or clarification of the code provided here don't hesitate to ask. However I'm uncertain that this is a good solution-it just provide me the behaviour I need.]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/3499.page#16375</guid>
				<link>http://www.icefaces.org/JForum/posts/list/3499.page#16375</link>
				<pubDate><![CDATA[Thu, 25 Jan 2007 04:09:59]]> GMT</pubDate>
				<author><![CDATA[ keny]]></author>
			</item>
			<item>
				<title>Re:Table + row Selection + data paging + popUp anyone can help (error when fill filds in popup)?</title>
				<description><![CDATA[ Keny. In a topic (<a href='http://www.icefaces.org/JForum/posts/list/3508.page' target='_new' rel="nofollow">http://www.icefaces.org/JForum/posts/list/3508.page</a>) a person have a similar proglem and solve it using:

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
PersistentFacesState state = PersistentFacesState.getInstance&#40;&#41;;
					state.render&#40;&#41;;
				} catch &#40;Exception e1&#41; {
					e1.printStackTrace&#40;&#41;;
				}
</pre>
		</div>

But this solution don´t work for me but can work for you keny. When i try it i got a error:

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
17:04:53,140 ERROR &#91;TxPolicy&#93; IllegalStateException while setting transaction for rollback only
java.lang.IllegalStateException: Transaction has terminated TransactionImpl:XidImpl&#91;FormatId=257, Global
chQual=, localId=16&#93;
        at org.jboss.tm.TransactionImpl.lock&#40;TransactionImpl.java:834&#41;
        at org.jboss.tm.TransactionImpl.setRollbackOnly&#40;TransactionImpl.java:669&#41;
        at org.jboss.aspects.tx.TxPolicy.setRollbackOnly&#40;TxPolicy.java:212&#41;
        at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx&#40;Ejb3TxPolicy.java:87&#41;
        at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx&#40;TxPolicy.java:130&#41;
        at org.jboss.aspects.tx.TxInterceptor$Required.invoke&#40;TxInterceptor.java:201&#41;
        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext&#40;MethodInvocation.java:101&#41;
        at org.jboss.aspects.tx.TxPropagationInterceptor.invoke&#40;TxPropagationInterceptor.java:76&#41;
        at org.jboss.aop.joinpoint.MethodInvocation.invokeNext&#40;MethodInvocation.java:101&#41;
</pre>
		</div>

Keny i never use the binding attribute can you can post your back bean for:
#{customerSession.contactBackingBean.contactEmailUIInput}
#{customerSession.contact.contactEmail.mediaValue}

Tahnkz.]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/3499.page#16409</guid>
				<link>http://www.icefaces.org/JForum/posts/list/3499.page#16409</link>
				<pubDate><![CDATA[Thu, 25 Jan 2007 13:44:40]]> GMT</pubDate>
				<author><![CDATA[ rangelmp]]></author>
			</item>
	</channel>
</rss>
