1 2 Previous Next 23 Replies Latest reply on Dec 14, 2015 4:29 AM by michpetrov Go to original post
      • 15. Re: Moved to RichFaces 4.5 tabPanel & tab won't display
        notify

        Thanks for the link. I updated the names spaces etc but it still doesn't display the RF 4.5 components::

         

        Any further areas to investigate would be appreciated.

         

        Index.xhtml:

         

        <!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:h="http://xmlns.jcp.org/jsf/html"
           xmlns:f="http://xmlns.jcp.org/jsf/core"
           xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
           xmlns:a4j="http://richfaces.org/a4j"
           xmlns:rich="http://richfaces.org/rich">


        web.xml


        <?xml version="1.0" encoding="UTF-8"?>
        <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
           version="3.1">


        The full XHTML:


        <h:head>

           <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

           <title>What the flip is going on</title>

        </h:head>

         

        <f:view>

           <h:body>

           <h:form>

           <strong>External controls for switching the panel:</strong>

           <br/>

           <h:commandLink value="Previous tab">

           <rich:toggleControl targetPanel="tp" targetItem="@prev"/>

           </h:commandLink>

           <h:outputText value=" | "/>

           <h:commandLink value="Next tab">

           <rich:toggleControl targetPanel="tp" targetItem="@next"/>

           </h:commandLink>

           <br/>

           <br/>

           <rich:tabPanel switchType="ajax" id="tp" headerPosition="top" headerLocation="center">

           <rich:tab header="First">

          Here is tab #1

           </rich:tab>

           <rich:tab header="Second">

          Here is tab #2

           </rich:tab>

           <rich:tab header="Third">

          Here is tab #3

           </rich:tab>

           </rich:tabPanel>

         

           </h:form>

           </h:body>

        </f:view>

        </html>


        This still fails to display the Rich Faces components:


        External controls for switching the panel:

        Previous tab | Next tab

         

        FirstSecondThird
        «

         

        »

         

        Here is tab #1

         

        • 16. Re: Moved to RichFaces 4.5 tabPanel & tab won't display
          michpetrov

          Pëtr Andreev wrote:

           

          Oh, then you should consider changing the namespaces in your templates as described in JSF 2.2: New namespaces | JSFlive: Michael Kurz's JSF Weblog since you are targeting JSF 2.2.

          While it wouldn't hurt the old ones are still supported.

           

          notify, where did you put the h:head? If must be inside the ui:composition, everything that's outside is ignored.

          • 17. Re: Moved to RichFaces 4.5 tabPanel & tab won't display
            notify

            Yes, it's inside the ui:composition:

             

            XHTML:

             

            <!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:h="http://xmlns.jcp.org/jsf/html"
               xmlns:f="http://xmlns.jcp.org/jsf/core"
               xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
               xmlns:a4j="http://richfaces.org/a4j"
               xmlns:rich="http://richfaces.org/rich">

             

            <ui:composition>

               <h:head>

               <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

               <title>What the flip is going on still .....</title>

               </h:head>

             

               <f:view>

               <h:body>

               <h:form>

               <strong>External controls for switching the panel:</strong>

               <br/>

               <h:commandLink value="Previous tab">

               <rich:toggleControl targetPanel="tp" targetItem="@prev"/>

               </h:commandLink>

               <h:outputText value=" | "/>

               <h:commandLink value="Next tab">

               <rich:toggleControl targetPanel="tp" targetItem="@next"/>

               </h:commandLink>

               <br/>

               <br/>

               <rich:tabPanel switchType="ajax" id="tp" headerPosition="top" headerLocation="center">

               <rich:tab header="First">

              Here is tab #1

               </rich:tab>

               <rich:tab header="Second">

              Here is tab #2

               </rich:tab>

               <rich:tab header="Third">

              Here is tab #3

               </rich:tab>

               </rich:tabPanel>

             

               </h:form>

               </h:body>

               </f:view>

            </ui:composition>

            </html>

            • 18. Re: Moved to RichFaces 4.5 tabPanel & tab won't display
              notify

              To remove the 'MyFaces' classes not found exceptions, which only displayed when I set the WildFly 8.2 logging to FINE I added:

               

              myfaces-bundle-2.2.8.jar

               

              No exceptions but still displays and does not render the RF Components.

               

              External controls for switching the panel:

              Previous tab | Next tab

               

               

              FirstSecondThird
              «

               

              »

               

              Here is tab #1

               

              • 19. Re: Moved to RichFaces 4.5 tabPanel & tab won't display
                michpetrov

                That's the output from a logger, not an unhandled exception - the exception is from the RichFaces resource tracker trying to find out if your app uses MyFaces or Mojarra, the way to do it is to try to call a MyFaces class which throws an exception if it's not found.

                 

                Can you share the project? Should be easier to find out the problem if I could just deploy the app.

                • 20. Re: Moved to RichFaces 4.5.5 Final (deployed on WildFly 8.2 Final) tabPanel & tab won't display
                  michpetrov

                  If I use your page and web.xml everything works fine. Check the generated HTML, if the <head> doesn't contain your <meta> and <title> then there is a problem with the build. I am afraid the project is of no use since I cannot build a .war from it.

                  • 21. Re: Moved to RichFaces 4.5.5 Final (deployed on WildFly 8.2 Final) tabPanel & tab won't display
                    notify

                    I've recently switched from years of using Eclipse to IntelliJ IDEA. Maybe the Artifacts are incorrect in IntelliJ. I'll have a look.

                     

                    Thanks for the time & effort you've given me.

                    • 22. Re: Moved to RichFaces 4.5.5 Final (deployed on WildFly 8.2 Final) tabPanel & tab won't display

                      Hi there,

                       

                      I have exactly the same issue, all tags from:

                       

                      xmlns:c="http://xmlns.jcp.org/jsf/core"

                          xmlns:h="http://xmlns.jcp.org/jsf/html"

                          xmlns:ui="http://xmlns.jcp.org/jsf/facelets"

                          xmlns:jsf="http://xmlns.jcp.org/jsf"

                       

                      Works well but those ones from richfaces:

                       

                      xmlns:a4j="http://richfaces.org/a4j"

                          xmlns:rich="http://richfaces.org/rich"

                       

                      no.

                       

                      I have no errors or exceptions, the tags are just not visible in the page.

                       

                      When checked the page source code all the richface code was there.

                       

                      As example:

                      For this source code:

                       

                      <html xmlns="http://www.w3.org/1999/xhtml"

                          xmlns:c="http://xmlns.jcp.org/jsf/core"

                          xmlns:h="http://xmlns.jcp.org/jsf/html"

                          xmlns:ui="http://xmlns.jcp.org/jsf/facelets"

                          xmlns:jsf="http://xmlns.jcp.org/jsf"

                          xmlns:a4j="http://richfaces.org/a4j"

                          xmlns:rich="http://richfaces.org/rich">

                       

                          <c:view>

                              <h:head>

                       

                              </h:head>

                              <h:body>

                                  <h:form id="myform">

                                      <rich:panel bodyClass="align">

                                          <rich:dataTable value="#{adminiEvent.employeeSearchResult}"

                                              var="bean">

                                              <rich:column>

                                                  <c:facet name="header">

                                                      <h:outputLabel value="Primeiro Nome" />

                                                  </c:facet>

                                                  <h:outputLink value="clientDetails.jsf" style="color:red">

                                                      #{bean.firstName}

                                                                      </h:outputLink>

                       

                                              </rich:column>

                                          </rich:dataTable>

                                      </rich:panel>

                                  </h:form>

                              </h:body>

                          </c:view>

                      </html>

                       

                      I got this page source code:

                       

                      <head id="j_idt71"></head><body>

                      <form id="myform" name="myform" method="post" action="/GesTenis/index.xhtml" enctype="application/x-www-form-urlencoded">

                      <input name="myform" value="myform" type="hidden">

                       

                                      <rich:panel bodyclass="align">

                                          <rich:datatable value="[Client [id=0]]" var="bean">

                       

                          <c:view>

                              <h:head>

                       

                              </h:head>

                              <h:body>

                                  <h:form id="myform">

                                      <rich:panel bodyclass="align">

                                          <rich:datatable value="#{adminiEvent.employeeSearchResult}" var="bean">

                                              <rich:column>

                                                  <c:facet name="header">

                                                      <h:outputlabel value="Primeiro Nome">

                                                  </h:outputlabel></c:facet>

                                                  <h:outputlink value="clientDetails.jsf" style="color:red">

                                                      #{bean.firstName}

                                                                      </h:outputlink>

                       

                                              </rich:column>

                                          </rich:datatable>

                                      </rich:panel>

                                  </h:form>

                              </h:body>

                          </c:view>

                       

                      </rich:datatable>

                                      </rich:panel><input name="javax.faces.ViewState" id="j_id1:javax.faces.ViewState:0" value="+14BFRvyDkr07JdbqaotKrqE90sb18bc3Jvfx+F/4/aCUB91Bc5MsBCDxGe7aVvE8MucehDhsx7/HGbofh1sb5MOnWCiBoPXSzuuHzUrbQiWyevDuF5pJwz8Z9XeVBAUT8Lykiqv4q0BGvn9KBt0c9EwQNdulxQrUnmfdpPm/ShmRo61Y8tr1rr+qZqEEIh0Cjo45rk0QRpLWN4CclCMTuzMNzrWRcZHmiQh0TpMRNOorOOHQUEBVNUW8kK9QTEZVQnAJEwDjy4yKiyBpxzF4A1O8UeITmVPIZC55uMMU2s=" autocomplete="off" type="hidden">

                      </form>

                      </body>

                       

                      Any idea ?

                      • 23. Re: Moved to RichFaces 4.5.5 Final (deployed on WildFly 8.2 Final) tabPanel & tab won't display
                        michpetrov

                        (Next time please start a new thread and just link to the old one if you find one).

                         

                        You're not going through the FacesServlet (i.e. the part that turns <rich:panel> into HTML), and from the code you're showing it's obvious the "h:" and "c:" aren't working either. Unless you've changed the default setting the URL should look like "example.com/faces/page.xhtml" or "example.com/page.jsf".

                        1 2 Previous Next