Confirm Dialog

1 resposta
R

Meu Command button funciona perfeitamente... Segue o Codigo

<p:commandLink id="excluir" value="Excluir"
							action="#{carroMB.doExcluirAction}" ajax="false">
							<f:setPropertyActionListener target="#{carroMB.carro}"
								value="#{carro}" />
						</p:commandLink>

Tentei Adptar para o Confirm Dialog e nao estou conseguindo... Saberiam me dizer onde estou errando...

<p:confirmDialog message="Deletar Registro?" severity="alert"
							widgetVar="confirmDeleteClient" visible="false"
							appendToBody="true">
							<h:form>
								<p:commandButton value="Yes" immediate="true"
									oncomplete="confirmDeleteClient.hide()"
									actionListener="#{carroMB.doExcluirAction}">
									<f:setPropertyActionListener target="#{carro.id}" value="#{carro}" />
								</p:commandButton>
								<p:commandButton value="No" onclick="confirmDeleteClient.hide()"
									type="button" />
							</h:form>
						</p:confirmDialog>
						<p:commandButton value="Delete2"
							onclick="confirmDeleteClient.show()" type="button" ajax="false">

						</p:commandButton>

1 Resposta

R

Galera concertz algum de vcs ja usou o confirm dialog… help me…

Criado 23 de janeiro de 2013
Ultima resposta 24 de jan. de 2013
Respostas 1
Participantes 1