Autocomplete + parametros

0 respostas
paulofernandesjr

opa!

tenho o seguinte código

<h:form id="suggestionbox_form">
						<h:panelGrid columns="2" width="100%">
							<h:panelGroup>
								<label jsfc="h:outputLabel" for="text">Nome Cliente</label>
								<h:inputText value="#{controleAgendamento.cliente}" id="text" immediate="true" />
					                
								<rich:suggestionbox id="suggestionBoxId" for="text" tokens=",[]"
					                    suggestionAction="#{controleAgendamento.autocomplete}" var="result"
					                    fetchValue="#{result.nomeCliente}" rows="10"
					                    first="#{suggestionBox.intFirst}"
					                    minChars="1"
					                    shadowOpacity="4"
					                    border="1" width="250"
					                    height="150"
					                    shadowDepth="4"
					                    cellpadding="2"
					                    nothingLabel="Nenhum cliente encontrado" columnClasses="center"
					                    usingSuggestObjects="true" 
					                    immediate="true">
									<h:column>
										<h:outputText value="#{result.nomeCliente}" />
									</h:column>
									<h:column>
										<h:outputText value="#{result.cpf}" />
									</h:column>
									<a4j:support event="onselect" immediate="true">
										<f:setPropertyActionListener value="#{result}" target="#{controleAgendamento.client}" />
									</a4j:support> 
								</rich:suggestionbox>
							</h:panelGroup>
							<h:panelGroup>
								<input class="medio ml175" type="submit" action="#{controleAgendamento.telaAgenda}" jsfc="h:commandButton" id="botao" value="Buscar" />
							</h:panelGroup>
						</h:panelGrid>
					</h:form>

mas quando eu seleciono ele não esta mandando o objeto que está configurado, alguem sabe o porque?

obrigado

Criado 6 de maio de 2009
Respostas 0
Participantes 1