Pessoal, estou dando murro em ponta de faca a quase duas semanas e estou quase desistindo de usar este incrível framework com facelets, porém não sei se é problema de configuração dele ou do facelets...
Sempre que tento utilizar um componente tipo modelpanel, togglespanel me gera um erro de javascript na tela, segue exemplo
Detalhes dos erros da página da Web
Agente de Usuário: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET4.0C; .NET4.0E)
Carimbo de data/hora: Tue, 13 Apr 2010 12:21:09 UTC
Mensagem: O objeto não dá suporte para a propriedade ou método
Linha: 55
Caractere: 399
Código: 0
URI: http://localhost:8080/Teste/a4j/g/3_3_3.CR1org.ajax4jsf.javascript.PrototypeScript.jsf
Mensagem: 'this.panels.get(...)' é nulo ou não é um objeto
Linha: 16
Caractere: 65
Código: 0
URI: http://localhost:8080/Teste/a4j/g/3_3_3.CR1scripts/simpleTogglePanel.js.jsf
Sendo que o mesmo erro ocorre com outros componentes...
O Estranho é que estou utilizando outros componentes rich como panelgride outros na mesma página, dentro destes containers e os mesmos funciona normalmente, porem os containers nao funcionam...
<?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:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:t="http://myfaces.apache.org/tomahawk"
xmlns:rich="http://richfaces.org/rich">
<body>
<ui:composition template="/templates/maintemplate.xhtml">
<ui:define name="content">
<h:form id="main">
<t:panelGrid columns="1" style="text-align:center;">
<rich:panel style=" width : 250px;" headerClass="header" bodyClass="corpo">
<f:facet name="header">
<h:outputText value="Grupos de Veículos" />
</f:facet>
<t:saveState value="#{vehicleGroupBean.group}"></t:saveState>
<t:panelGrid columns="1" style="text-align:left;">
<h:outputText id="lblempresa" value="Empresa (matrizes)" styleClass="label"/>
<h:selectOneMenu id="cmbempresa" value="#{vehicleGroupBean.group.branchId}" styleClass="campo_obrigatorio_200"> <f:selectItem itemValue="-1" itemLabel="Selecione um item"/>
<f:selectItems value="#{vehicleGroupBean.comboCustomers}"/> </h:selectOneMenu >
<h:outputText id="lblgrupos" value="Grupos" styleClass="label"/>
<h:selectOneMenu id="cmbgroup" value="#{vehicleGroupBean.group.groupId}" styleClass="campo_obrigatorio_200">
<f:selectItem itemValue="-1" itemLabel="Selecione um item"/>
<f:selectItems value="#{vehicleGroupBean.groups}"/>
</h:selectOneMenu>
<h:outputLink value="#" id="link">
<h:outputText value="Grupo não existe? Cadastre-o agora." />
<rich:componentControl for="panel" attachTo="link" operation="show" event="onclick"/>
</h:outputLink>
</t:panelGrid>
</rich:panel>
</t:panelGrid>
</h:form>
<h:form id="modal">
<rich:simpleTogglePanel switchType="client" label="Add AJAX capability to existing JSF applications">
<t:panelGrid columns="1" style="text-align:left;">
<h:outputText id="lblempresa" value="Empresa (matrizes)" styleClass="label"/>
<h:selectOneMenu id="cmbempresa2" value="#{groupBean.group.branchId}" styleClass="campo_obrigatorio_200">
<f:selectItem itemValue="-1" itemLabel="Selecione um item"/>
<f:selectItems value="#{groupBean.comboCustomers}"/>
</h:selectOneMenu>
<h:outputText id="lblgrupo" value="Grupo" styleClass="label"/>
<h:inputText id="txtgroup" value="#{groupBean.group.groupName}" styleClass="campo_obrigatorio_190"/>
<h:outputText id="lblcores" value="Cores" styleClass="label"/>
<h:selectOneMenu id="cmbcolours" value="#{groupBean.group.colour.id}" styleClass="campo_obrigatorio_200">
<f:selectItem itemValue="-1" itemLabel="Selecione uma cor" />
<f:selectItems value="#{groupBean.comboColours}"/>
</h:selectOneMenu>
<h:outputText value=" " /> <t:panelGroup colspan="1" style="text-align:right;">
<h:commandButton value="Cancelar" action="#{groupBean.cancelInsertGroup}"/>
<h:commandButton value="Salvar" action="#{groupBean.insertGroup}" id="command">
<rich:componentControl for="panel" attachTo="link" operation="command" event="onclick"/>
</h:commandButton>
</t:panelGroup>
</t:panelGrid>
</rich:simpleTogglePanel>
</h:form>
</ui:define>
</ui:composition>
</body>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>facelets.SKIP_COMMENTS</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>classic</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
<param-value>com.sun.facelets.FaceletViewHandler</param-value>
</context-param>
<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>
index.html
</welcome-file>
</welcome-file-list>
</web-app>
<?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:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:t="http://myfaces.apache.org/tomahawk"
xmlns:a4j="http://richfaces.org/a4j">
<head>
<a4j:loadStyle src="/css/generic.css"/>
</head>
<body>
<ui:debug/>
<div id="header">
<ui:insert name="header">
Inserir Novo Cabeçalho
</ui:insert>
</div>
<div id="menu">
<ui:insert name="menu">
<ui:include src="../pages/menu.xhtml" />
</ui:insert>
</div>
<div id="content">
<ui:insert name="content">
Inserir Novo Corpo
</ui:insert>
</div>
<div id="footer">
<ui:insert name="footer">
Inserir Novo Rodapé
</ui:insert>
</div>
</body>
</html>
Fico no aguardo e obrigado....
