[RESOLVIDO] Como chamar um rich:panelBarItem com um a:commandLink

2 respostas
Romildo_Paiter

Ola pessoal, estou com uma dificuldade e não encontrei nada que funciona-se.

Meu problema é:

Eu tenho uma lista de atividades com link(a:commandLink), e ao clicar quero que seja aberto o painel do panelBarItem.

<rich:column style="text-align:center;">
	<a:commandLink id="linkEditarAtividade" 
			   onclick="#{rich:component('panelBarItemEditarAtividade')}.show();}">
		<h:graphicImage alt="Editar Atividade" value="/img/icones/edit.gif" />

	</a:commandLink>
	<rich:toolTip for="linkEditarAtividade">Editar Atividade</rich:toolTip>
</rich:column>
<rich:panelBarItem id="panelBarItemEditarAtividade"
	label="Editar Atividade">
	The framework is implemented using a component library. The library set Ajax 
	functionality into existing pages, so there is no need to write any JavaScript 
	code or to replace existing components with new Ajax one. Ajax4jsf enables page-wide 
	Ajax support instead of the traditional component-wide support and it gives the 
	opportunity to define the event on the page. An event invokes an Ajax request and areas 
	of the page which are synchronized with the JSF Component Tree after changing the data 
	on the server by Ajax request in accordance with events fired on the client.
</rich:panelBarItem>

Mas minhas tentativas não tiveram muito exito.

Valeu pessoal, Obrigado

__
Romildo Paiter

2 Respostas

Hebert_Coelho

Teria como você postar a página toda?

Romildo_Paiter

Ola Jakefrog. Obrigado pela iniciativa.

A solução é simples e no mesmo caminho que estava. O negócio é ficar testando!!! Para quem um dia tiver a mesma ideia.

Pode solucionar isso com apenas esta simples linha.

<a:commandLink id="linkEditarAtividade"
	onclick="switchToPanel(#{rich:element('panelBarItemEditarAtividade')});return false;" >

Obrigado pessoal

att

Romildo Paiter.

Criado 3 de janeiro de 2012
Ultima resposta 4 de jan. de 2012
Respostas 2
Participantes 2