Rich:panel com um f:facet

2 respostas
R

Hi, estou tentando criar um rich:panel conforme o exemplo em:
http://livedemo.exadel.com/richfaces-demo/richfaces/panel.jsf;jsessionid=D59372921FCF1677A49CF6DEFCC3CB9E?c=panel

O problema é que o f:facet não funciona, alguem sabe se precisa de algum style ?
Segue código abaixo:

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@taglib uri="http://richfaces.org/rich" prefix="rich"%> 

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>te devo uma</title>
        <link rel="stylesheet" type="text/css"href="/timesheet-war/css/default.css"/>
    </head>
    
    <body>
        <f:view>
            <h:form id="home">
                <rich:panel>
                    <f:facet name="header">
                        Write your own custom rich components with built-in AJAX support
                    </f:facet>
                    The CDK includes a code-generation facility and a
                    templating facility using a JSP-like syntax. These capabilities help
                    to avoid a routine process of a component creation. The component factory
                    works like a well-oiled machine allowing the creation of first-class
                    rich components with built-in Ajax functionality even more easily than
                    the creation of simpler components by means of the traditional coding
                    approach.
                </rich:panel>
            </h:form>
        </f:view> 
    </body>
</html>

2 Respostas

Leozin

a diferença é que os caras lá estão utilizando facelets (e pelo jeito você não) e por isso não funciona

experimenta fazer assim:

<h:form id="home"> <rich:panel> <f:facet name="header"> <h:outputText value="Write your own custom rich components with built-in AJAX support" /> </f:facet> <h:outputText value="The CDK includes a code-generation facility and a templating facility using a JSP-like syntax. These capabilities help to avoid a routine process of a component creation. The component factory works like a well-oiled machine allowing the creation of first-class rich components with built-in Ajax functionality even more easily than the creation of simpler components by means of the traditional coding approach." /> </rich:panel> </h:form>

Ps.: Hellsing rula as teta

R

Leozin:
a diferença é que os caras lá estão utilizando facelets (e pelo jeito você não) e por isso não funciona

Sim funcionou, obrigado.
Sobre os facelets, é sobre isso que vc esta falando ?
http://www.devmedia.com.br/articles/viewcomp.asp?comp=5332

PS: Eu vi na sua assinatura que vc esta procurando do livro core j2ee patterns. Se quiser eu mando por sedex.

Criado 18 de janeiro de 2008
Ultima resposta 18 de jan. de 2008
Respostas 2
Participantes 2