Rich:componentControl

0 respostas
R

Fala feras

estou tentando montar uma tela no qual quando eu clicar em um link eu possa abrir um pop Up mais montei meu pop Up e não esta dando certo porcausa da tag <rich:componentControl for=“panel” attachTo=“hidelink” operation=“hide” event=“onclick”/> que da um erro

com.sun.facelets.tag.TagException: /paginas/chat/chatCliente.xhtml @26,110 <rich:componentControl> Tag Library supports namespace: http://richfaces.org/rich, but no tag was defined for name: componentControl

ai peguei o exemplo abaixo e coloquei em uma tela .xhtml mais esta dando erro justo nas linhas onde tenho o rich:componentControl alguém sabe o que pode ser

<?xml version="1.0" encoding="ISO-8859-1"?> 
<!DOCTYPE html 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:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:t="http://myfaces.apache.org/tomahawk"
		xmlns:rich="http://richfaces.org/rich"
		xmlns:a4j="http://richfaces.org/a4j">
		<head>
			<a4j:loadStyle src="/resources/css/style.css"></a4j:loadStyle>
		</head>
		<body>
		<f:view>
			<ui:define name="corpo">
				<h:form>
				<rich:modalPanel id="panel" width="350" height="100">
				        <f:facet name="header">
				            <h:panelGroup>
				                <h:outputText value="Modal Panel"></h:outputText>
				            </h:panelGroup>
				        </f:facet>
				        <f:facet name="controls">
				            <h:panelGroup>
				                <h:graphicImage value="/images/modal/close.png" styleClass="hidelink" id="hidelink"/>
				                <rich:componentControl for="panel" attachTo="hidelink" operation="hide" event="onclick"/>
				            </h:panelGroup>
				        </f:facet>
				        <h:outputText value="This panel is called using Component Control Component"></h:outputText>
				        <br/>
				        <h:outputText value="Closure link (X) works also through Component Control"></h:outputText>
				    </rich:modalPanel>
				    <h:outputLink value="#" id="link">
				        Show Modal Panel 
				        <rich:componentControl for="panel" attachTo="link" operation="show" event="onclick"/>
				    </h:outputLink>
				</h:form>
			</ui:define>
		</f:view>	
		</body>
	</html>
Criado 27 de janeiro de 2010
Respostas 0
Participantes 1