6 Replies Latest reply on Nov 13, 2007 10:09 AM by ilya_shaikovsky

    Frameset-Layout with RichFaces

    pmdo

      How can I realize an ajax-layout with richfaces?
      I want to have a navigation-region and a content-region.
      If I click on a link in the navigation-region, then the new content (jsp)
      will be insert in the content-region (like frame-sets...)
      I still did it with dojo with content pane and javascript-methods...

        • 1. Re: Frameset-Layout with RichFaces
          fabmars

          Facelets, definitely.

          • 2. Re: Frameset-Layout with RichFaces
            ilya_shaikovsky

            el-binding usage in your includes and updates via ajax of such includes - will help also. ;)

            • 3. Re: Frameset-Layout with RichFaces
              pmdo

              I tried it, but without a reason...
              Tomcat: "WARNING: Target component for id content not found"

              <h:form>
               <input type="button" value="lade">
               <a4j:support event="onclick" reRender="content"/>
               </input>
              </h:form>
              
              <div id="content">
               <jsp:include page="#{user.url}" />
              </div>


              Have you got a very small example?!

              How can I use facelets for this usage (example?!) and where are than
              the navigation-rules?? (faces-config.xml??)


              • 4. Re: Frameset-Layout with RichFaces
                dmitry.demyankov

                Use a4j:include instead of jsp:include

                • 5. Re: Frameset-Layout with RichFaces

                  Please look in the developer guide and the live demo to learn the basics. Here you will find a lot of examples. Of course we'll help if you have more specific questions.

                  • 6. Re: Frameset-Layout with RichFaces
                    ilya_shaikovsky

                     

                    "PMDo" wrote:
                    I tried it, but without a reason...
                    Tomcat: "WARNING: Target component for id content not found"

                    <h:form>
                     <input type="button" value="lade">
                     <a4j:support event="onclick" reRender="content"/>
                     </input>
                    </h:form>
                    
                    <div id="content">
                     <jsp:include page="#{user.url}" />
                    </div>


                    Have you got a very small example?!

                    How can I use facelets for this usage (example?!) and where are than
                    the navigation-rules?? (faces-config.xml??)


                    use h:panelGroup with block layout instead of html div element. Because it will be searched for in component tree and will be not found as div - isn't component.