Renderizar apenas um pedaço do template Facelets + Richfaces + A4J

1 resposta
andrerios

Boa tarde pessoal

Estou tentando renderizar apenas a parte do conteudo deste template:

<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    </head>
    <body>
         <h:panelGrid columns="2" border="0" width="100%">
             <rich:column width="25%"><ui:insert name="menu"/><ui:include src="/dashboard/menu.xhtml"/></rich:column>
             <rich:column width="75%"><ui:insert name="body"/></rich:column>
         </h:panelGrid>

    </body>

</html>
usando este menu:
<ui:fragment xmlns="http://www.w3.org/1999/xhtml" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html"  xmlns:a4j="http://richfaces.org/a4j" >

    <a4j:form id="formAuthenticated" ajaxSubmit="true" reRender="body">
    	<h:panelGrid columns="1">
    		<rich:panelMenu style="width:200px"  mode="ajax" icon="none">
		        <rich:panelMenuGroup label="#{i18n.text_dashboard}" icon="none"/>
		        <rich:panelMenuGroup label="#{i18n.text_admin_users}" icon="none">
		        	<rich:panelMenuItem label="#{i18n.menu_manage_admin_users}" action="#{listarUsers.listarUsers}" icon="none"/>
		        </rich:panelMenuGroup>
    		</rich:panelMenu>
        </h:panelGrid>
    </a4j:form>

</ui:fragment>

mas está renderizando a pagina tda....

nao queria q "piscasse" a tela entendem?

valeu!

1 Resposta

leootorres

Também estou com o mesmo problema… alguem ai sabe como solucionar?? Obrigado

Criado 7 de maio de 2010
Ultima resposta 7 de mai. de 2011
Respostas 1
Participantes 2