Problema com RichFaces e reRender de subview

0 respostas
A

Boa tarde,

Estou com um problema, quando eu faço um reRender de um outputPanel que contém duas subview que estão setadas como rendered=false.
No momento que vou apresentar uma delas troco o rendered=true e faço um reRender do outputPanel e ai vem o meu problema, tudo aparece corretamente proém quando vou utilizar uma tree que esta dentro da subview ele não funciona, fica totalmente sem funcionalidade.

Percebi que após a renderização da subview eu não consigo renderizar os componentes que estão dentro da mesma .

Como faço para renderizar(por AJAX) os componentes filhos da subview que acabei de renderizar por AJAX ?, pois preciso ter uma navegação por ajax.

segue o fontes JSF

<%@ page language=java contentType=text/html; charset=UTF-8"

pageEncoding=“UTF-8”%>

<%@ taglib prefix=f uri=<a href="http://java.sun.com/jsf/core">http://java.sun.com/jsf/core</a>”%>

<%@ taglib prefix=h uri=<a href="http://java.sun.com/jsf/html">http://java.sun.com/jsf/html</a>”%>

<%@ taglib prefix=a4j uri=<a href="http://richfaces.org/a4j">http://richfaces.org/a4j</a>”%>

<%@ taglib prefix=rich uri=<a href="http://richfaces.org/rich">http://richfaces.org/rich</a>”%>

<f:subview id=“cadUser” rendered=”#{indexHandler.viewCadUser}">

<a4j:loadStyle src="./include/css/user.css" />

<a4j:outputPanel id=“pnlTree” styleClass=“pnlTree”>

<a>a4j:form</a>

<rich:tree value="#{userHandler.treeGroup}" var=“group”>

<rich:treeNode icon="./include/image/icon/users.png" iconLeaf="./include/image/icon/user.png" >

<h:outputText value="#{group}" />

</rich:treeNode>

</rich:tree>

</a4j:form>

</a4j:outputPanel>

<rich:spacer height=“30”/>

<rich:panel styleClass=“panelCadUser” header=“Cadastro de Usuário”>

<h:panelGrid columns=“2” cellpadding=“5” style=“padding-left:10px”>

<h:outputText value=“Nome:” />

<h:inputText size=“50” />

<h:outputText value=“Email:” />

<h:inputText size=“35” />

<h:outputText value=“Login:” />

<h:inputText size=“20” />

<h:outputText value=“Senha:” />

<h:inputSecret size=“10” />

<h:outputText value=“Confirme Senha:” />

<h:inputSecret size=“10” />

<h:outputText value=“Status:” />

<h:selectOneMenu>

<f:selectItem itemLabel="" itemValue="" />

<f:selectItem itemLabel=“Ativo” itemValue=“Ativo” />

<f:selectItem itemLabel=“Inativo” itemValue=“Inativo” />

<f:selectItem itemLabel=“Travado” itemValue=“Travado” />

</h:selectOneMenu>

</h:panelGrid>




<rich:separator lineType=“solid” height=“1” />

<%@ page language=“java” contentType="text/html; charset=UTF-8"
pageEncoding=“UTF-8”%>
<%@ taglib prefix=“f” uri=“http://java.sun.com/jsf/core”%>
<%@ taglib prefix=“h” uri=“http://java.sun.com/jsf/html”%>
<%@ taglib prefix=“a4j” uri=“http://richfaces.org/a4j”%>
<%@ taglib prefix=“rich” uri=“http://richfaces.org/rich”%>

<a4j:outputPanel id=“viewMain”>
<jsp:include page="./administrator/cadUser.jsp" />
<jsp:include page=“cadCleint.jsp” />
</a4j:outputPanel>
</f:view>

Criado 18 de outubro de 2009
Respostas 0
Participantes 1