Duvida como configurar JSF para usar RichFaces

Olá,

peguei um exemplo de menu para executar com JSF 2.0 conforme abaixo.
Mais tenho duvida do que preciso pra executar esse menu pois só tenho os jars rerefrente ao JSF 2.0

Minha duvida quais jars preciso e onde configurar como web.xml .

Se alguém tiver algum exemplo que me possa dar como exemplo.

abs

<ui:composition 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:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich">

    <style>
    .pic {
        margin-bottom: -4px;
        margin-right: 2px;
    }
    .search .rich-menu-item-hover{
        background-color: transparent;
        border-color: transparent;
    }
    </style>
    
    <h:form>

        <rich:toolBar>

            <rich:dropDownMenu>
                <f:facet name="label"> 
                    <h:panelGroup>
                        <h:graphicImage value="/images/icons/copy.gif" styleClass="pic"/>
                        <h:outputText value="File"/>
                    </h:panelGroup>
                </f:facet>
                <rich:menuItem submitMode="ajax" value="New"
                    action="#{ddmenu.doNew}" icon="/images/icons/create_doc.gif">
                </rich:menuItem>
                <rich:menuItem submitMode="ajax" value="Open"
                    action="#{ddmenu.doOpen}" icon="/images/icons/open.gif" />
                <rich:menuGroup value="Save As...">
                    <rich:menuItem submitMode="ajax" value="Save" 
                        action="#{ddmenu.doSave}" icon="/images/icons/save.gif" />
                    <rich:menuItem submitMode="ajax" value="Save All"
                        action="#{ddmenu.doSaveAll}">
                        <f:facet name="icon">
                            <h:graphicImage value="/images/icons/save_all.gif" />
                        </f:facet>
                    </rich:menuItem>
                </rich:menuGroup>
                <rich:menuItem submitMode="ajax" value="Close"
                    action="#{ddmenu.doClose}" />
                <rich:menuSeparator id="menuSeparator11" />
                <rich:menuItem submitMode="ajax" value="Exit"
                    action="#{ddmenu.doExit}" />

            </rich:dropDownMenu>

            <rich:dropDownMenu>

                <f:facet name="label">
                    <h:panelGrid cellpadding="0" cellspacing="0" columns="2"
                        style="vertical-align:middle">
                        <h:outputText value="Links" />
                    </h:panelGrid>
                </f:facet>

                <rich:menuItem submitMode="none"
                    onclick="document.location.href='http://labs.jboss.com/jbossrichfaces/'">
                    <h:outputLink value="http://labs.jboss.com/jbossrichfaces/">
                        <h:outputText value="RichFaces Home Page"></h:outputText>
                    </h:outputLink>
                </rich:menuItem>

                <rich:menuItem submitMode="none"
                    onclick="document.location.href='http://jboss.com/index.html?module=bb&op=viewforum&f=261'">
                    <h:outputLink
                        value="http://jboss.com/index.html?module=bb&op=viewforum&f=261">
                        <h:outputText value="RichFaces Forum"></h:outputText>
                    </h:outputLink>
                </rich:menuItem>

            </rich:dropDownMenu>
            <rich:toolBarGroup location="right">
                <rich:dropDownMenu value="Search" direction="bottom-left" jointPoint="br" styleClass="search">
                    <rich:menuItem submitMode="none">
                        <h:inputText value="" id="searchinput"/>
                        <button type="button">Search</button>
                    </rich:menuItem>
                    <rich:menuItem value="Enter your search criteria here" disabled="true"></rich:menuItem>
                </rich:dropDownMenu>
            </rich:toolBarGroup>
        </rich:toolBar>
    </h:form>
    <rich:spacer width="1" height="5"/>
    <br />
    &lt;a4j:outputPanel ajaxRendered="true"&gt;
        &lt;h:outputText value="Current Selection: "&gt;&lt;/h:outputText&gt;
        &lt;h:outputText style="font-weight:bold" value="#{ddmenu.current}"&gt;&lt;/h:outputText&gt;
    &lt;/a4j:outputPanel&gt;
    <br />
    &lt;rich:spacer width="1" height="25" /&gt;

&lt;/ui:composition&gt;

Vai irá precisar dos .jars do RichFaces ->

richfaces-api, impl e ui além dos commons que funcionam em conjunto com ele -> commons-logging, beanutils, digester e collections somando 7 .jars no total.

Detalhe: os mesmos acima foram utilizados em projeto com JSF 1.2 todavia acredito que não terá diferença no JSF 2.0.

Tenta aí e fala se funciona…

Obrigado.

tem que configurar o web.xml se sim qual seria essa configuração…

abs

http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/GettingStarted.html

andredecotia:
esses componentes que tu passo e suas dependencias sao pra JSF 1.2 ( richfaces 3.3.3)
richfaces 3.3.3 tem suporte ao JSF 2 MAS tu teria que desabilitar o Facelets nativo senao ele nao vai funcionar… pra 2.0 completo tem que ser o 4.0 do rich.

leia isso por favor.
RichFaces 3.3.3 and JSF 2.0

e quanto ao paribe, por favor ler a resposta do rrccpp, ele tem a resposta que tu perguntou. e da proxima vez que for pegar um jar diferente leia o getting started referente ao mesmo pra agilizar as coisas.

Obrigado pela resposta.